zeromq / zeromq4-x

ØMQ 4.x stable release branch - bug fixes only
GNU General Public License v3.0
458 stars 196 forks source link

php zeromq extension: Unable to load dynamic library php_zmq.dll #126

Closed kirensiva closed 7 years ago

kirensiva commented 9 years ago

I have XAMPP with PHP Version 5.6.8. I want to install zeromq extension. Tried the following dlls from http://pecl.php.net/package/zmq/1.1.2/windows. Of course I have extension=php_zmq.dll in \xampp\php\php.ini

php_zmq-1.1.2-5.6-nts-vc11-x64 php_zmq-1.1.2-5.6-ts-vc11-x64

php_zmq-1.1.2-5.6-nts-vc11-x86 php_zmq-1.1.2-5.6-ts-vc11-x86

Getting the error

PHP Warning: PHP Startup: Unable to load dynamic library 'C:\xampp\php\ext\php_zmq.dll' - %1 is not a valid Win32 application.in Unknown on line 0

lajosbencz commented 8 years ago

Make sure you have libzmq.dll next to your php.exe (not in the ext folder)

andrew-za commented 7 years ago

I finally got it working: Download the http://pecl.php.net/package/zmq/1.1.2/windows "5.6 Thread Safe (TS) x86" version.

Copy the php_zmq.dll to php/ext directory

Then copy the libzmq.dll to the xamp/ root directory

RESTART apache.

bluca commented 7 years ago

Thanks for reporting a solution.

Closing the issue now given there's a solution and it's not related to code in this repository.