Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MsgPack TS non TS fail #167

Closed
DevHeaven opened this issue Sep 26, 2022 · 5 comments
Closed

MsgPack TS non TS fail #167

DevHeaven opened this issue Sep 26, 2022 · 5 comments
Labels

Comments

@DevHeaven
Copy link

DevHeaven commented Sep 26, 2022

Hello

I know this isn't a support forum but I'm at the end, can't seem to find a solution no matter what I try.

I've tried setting up MsgPack on my local machine (Windows 10 , PHP 8.1.9)
I've downloaded multiple versions of the DLL from https://pecl.php.net/package/msgpack/2.1.2/windows

But no matter which I try (TS, no-TS, x86 , x64 ...) I always get an error trying to execute a PHP script.

PHP Warning: PHP Startup: Unable to load dynamic library 'php_msgpack.dll' (tried: ext\php_msgpack.dll (The specified module could not be found), ext\php_php_msgpack.dll.dll (The specified module could not be found)) in Unknown on line 0

If there's anybody with a golden tip, I'd appreciate it soo much!

@m6w6 m6w6 added the question label Sep 26, 2022
@m6w6
Copy link
Collaborator

m6w6 commented Sep 26, 2022

I can't really help on Windows, but here are some hints anyway:
The error message says it cannot find the file "php_msgpack.dll", so:

  • Is the file name right?
  • Do you load other extensions dynamically?
  • Where are they located?
  • Is the msgpack extension in the same directory?

@DevHeaven
Copy link
Author

@m6w6 Thank you nonetheless for your response !

The filename is correct, and it is in the /ext folder.
I load several other extensions like rdkafka etcetera which work fine.
All extensions are in my C:\PHP8\EXT folder

I would expect such a message when trying a non compatible dll for the specific OS and version , but this doesn't seem to be the case here.

@DevHeaven
Copy link
Author

PS : when trying the latest PHP 8. version for Threadsafe X64 (which is my machine version of PHP) I get a dialogue error

The procedure entry point zval_get_long_func@88 could not be located in the dynamic link library

@m6w6
Copy link
Collaborator

m6w6 commented Sep 26, 2022

Not sure, but reading your initial comment again, I noticed you're running 8.1 and probably downloaded the extension for 8.0.

Try the 8.1 from here: https://windows.php.net/downloads/pecl/releases/msgpack/2.2.0rc1/

@DevHeaven
Copy link
Author

😱 how could I have missed that .... walks the walk of shame

Thanks so much !!!! 👍

@m6w6 m6w6 closed this as completed Sep 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants