Bug #73674 [Nab]: Unable to load dynamic library 'c:/wamp/bin/php/php7.0.10/ext/php_zmq.dll'
| From: | cmb@php.net | Date: | Thu, 08 Dec 2016 11:38:21 +0000 |
| Subject: | Bug #73674 [Nab]: Unable to load dynamic library 'c:/wamp/bin/php/php7.0.10/ext/php_zmq.dll' | ||
| References: | 1 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-14332@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=73674&edit=1
ID: 73674
Updated by: cmb@php.net
Reported by: benoit dot rousselle at gmail dot com
Summary: Unable to load dynamic library
'c:/wamp/bin/php/php7.0.10/ext/php_zmq.dll'
Status: Not a bug
Type: Bug
Package: PECL
Operating System: win 32 / win 64
PHP Version: 7.1.0
Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
> but not with release php_zmq-1.1.3-7.1-ts-vc14-x86.zip
This zmq package is supposed to work with PHP 7.1, but not 7.0.
From the Wamp forum discussion:
| [07-Dec-2016 17:45:32 UTC] PHP Warning: PHP Startup: zmq: Unable to initialize module
| Module compiled with module API=20160303
| PHP compiled with module API=20151012
This has nothing to do with the VC compiler, but rather that this PHP is 7.0, but the extension is
for 7.1.
Previous Comments:
------------------------------------------------------------------------
[2016-12-08 10:45:50] benoit dot rousselle at gmail dot com
php_zmq works with wamp3 if I use php_zmq-1.1.3-7.0-ts-vc14-x86.zip
but not with release php_zmq-1.1.3-7.1-ts-vc14-x86.zip
we talk about this problem these last days (in french) :
http://forum.wampserver.com/read.php?1,144324
------------------------------------------------------------------------
[2016-12-07 14:33:47] kalle@php.net
Minor note here cmb, you should rather put the libsodium.dll in the root of php directory instead of
polluting the ext/ directory, though it works.
The Windows error for being unable to load a dynamic link library is usually vague when a dependency
is missing (like noted). Despite it saying the module is not found, it is not always clear which
module is not found, but in cases like these it means that a dependency that is linked to an
extension was not found in a path within the PATH env variable.
------------------------------------------------------------------------
[2016-12-07 14:09:56] cmb@php.net
Now I have downloaded and installed
wampserver3.0.6_x86_apache2.4.23_mysql5.7.14_php5.6.25-7.0.10.exe, started Wampserver, switched to
PHP 7.0.10, put php_zmq.dll into the ext/ folder, put libsodium.dll and libzmq.dll into C:\Windows,
added extension=php_zmq.dll to php.ini, restarted Wampserver, and everything is okay.
There may be issues for you (and others) due to wrong dependencies being picked up, but there
doesn't seem to be a bug, so I'm closing this ticket. See <http://php.net/support.php> for some appropriate support
channels.
------------------------------------------------------------------------
[2016-12-07 13:04:43] benoit dot rousselle at gmail dot com
The problem occurs on wamp for php 7. Some people on the forum has got the same problem : http://forum.wampserver.com/read.php?1,144324
For php 7.1.0 / VC14 / X64 => KO
Pour php 7.0.13 / VC14 X64 => KO
Pour php 5.6.28 / VC11 / X86 => OK, it works
I try to do this on wamp (php7) :
put php_zmq.dll into the extension directory, and libzmq.dll and libsodium.dll somewhere in the
PATH.
=> KO on my wamp php7
------------------------------------------------------------------------
[2016-12-07 12:03:27] cmb@php.net
The following works for me: put php_zmq.dll into the extension directory, and libzmq.dll and
libsodium.dll somewhere in the PATH. I haven't tested this with WAMP, though.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=73674
--
Edit this bug report at https://bugs.php.net/bug.php?id=73674&edit=1