-
Notifications
You must be signed in to change notification settings - Fork 119
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
PHP 8.1 windows builds? #223
Comments
I'm forced to use php7 because ZMQ doesn't work for php 8 on windows. Any news on this one? |
Hi, for anyone still looking for these, I added a PR with build instructions for Windows (b38670d). There's currently a compilation error when building zmq from master against php 8.x on Windows, there's a fix for that in the PR as well (9a98785). You can also find prebuilt x64 binaries for 8.1 and 8.2 here: https://github.com/stijnvdb88/php-zmq/releases/tag/v4.3.4 |
Strange. Not working on PHP8.1 Is this build for TS or NTS PHP version? |
@igoriok1994 The build instructions (b38670d) use default parameters so I'm assuming it is TS. Also, you need to make sure your using the same version of PHP as the lib is built against, even same minor version. The 8.2 build is built against 8.2.4.0, the 8.1 build is 8.1.17.0 |
@ClosetMonkey |
Did any of you have zmq working with PHP 8.2.X on Windows? I tried the binaries provided in this thread and I got a " Unable to load dynamic library " error even though libzmq.dll and php_zmq.dll were present in the right places. |
@ajayrai can you be more specific? Also, libzmq.dll needs to be renamed back to 'libzmq-v142-mt-4_3_4.dll' (assuming you used libzmq-v142-x64-4_3_4.zip as suggested in the build instructions) This literally took me over 3 hours to hunt down. |
@ClosetMonkey When I used the provided binaries, I did rename the libzmq.dll back to 'libzmq-v142-mt-4_3_4.dll' . I got the same error but I will try again. But while building, I had renamed 'libzmq-v142-mt-4_3_4.dll' to libzmq.dll since in the zmq package, it was 'libzmq-v142-mt-4_3_4.dll'. This was in the line "Download libzmq: https://github.com/zeromq/libzmq/releases (eg. libzmq-v142-x64-4_3_4.zip)" Should I have left it as is? is that why "--with-zmq" option maybe was being ignored? |
@ClosetMonkey I downloaded 'libzmq-v142-mt-4_3_4.dll' directly from https://github.com/zeromq/libzmq/releases and did NOT rename it, and the binaries worked. Thank you so much. It would be helpful to know if you or anyone had an idea how I can debug "--with-zmq" error while trying to build. Thanks |
@ajayrai Have you tried
If not I'd guess you need to use |
Anyone was able to build PHP 8.X Non Thread Safe with zmq?
When running |
If anyone is able/willing to build a version of this for PHP 8.2, Non Thread Safe, I would be willing to make a monetary contribution for your effort. |
zmq-php-8.2.10-NTS.zip |
Guys, as you can see i was able to build php_zmq.dll, but i was not able to generate libzmq.lib. |
Your NTS build is working for me on Windows IIS, thanks! For libzmq.lib, I think you actually need libzmq-v142-mt-4_3_4.dll' from here https://github.com/zeromq/libzmq/releases/download/v4.3.4/libzmq-v142-x64-4_3_4.zip |
Hi @billroland glad to hear that! TO me it just don't work, and i dont know why. |
I just put libzmq-v142-mt-4_3_4.dll in the main PHP directory. So your php_zmq.dll goes in the EXT folder and libzmq-v142-mt-4_3_4.dll goes in the main PHP folder. It worked for me. |
WOW!! Thank you!!!!!!!!! it worked! |
I made a new ZIP with the instructions and the correct files to everyone! ZMQ-4.3.4_x64_PHP8.2.10-NTS.zip :D Later, i'll share with you how i was able to do that, and solve the problem with
(i'ts not too difficult.. but the instrucions here was not clear!) |
hi @paulocesarborges, thank you for your file! |
@paulocesarborges thank you very much. You the man! |
Here are the clearest instructions regarding this
Than, run:
*This will built those folders structure: *Than, you will need to Download source code of the PHP version you're building for: https://windows.php.net/download/
Open the PHP Source code folder, and create a "zmq" folder in the "ext" folder, than extract the files that we just downloaded: Than, back again in the VS2019 command prompt:
IF you needing a PHP NTS (Non Thread Safe) version, it's almost the same, but you need to add
Again, when you see: Please, test it and tell me if it work for you! |
Attached is binaries built for PHP 8.0. Tested working on Windows 11 with XAMPP (xampp-windows-x64-8.0.30-0-VS16-installer). For those who choose to build binaries from sources, please be aware of your visual c++ version. If you upgraded to Visual Studio 2019 from earlier versions of VS, VC++ might be of a version that has backward compatibility. That version may not be able to compile the latest PHP source code. I ended up having to completely remove entire VS2019 installation and re-install from scratch. |
Thanks you, it works to me. |
Do you have NTS (non-thread safe) version ? |
Unfortunately no. Is NTS for IIS? Maybe you can try to build it from source. It is not as daunting as it seems. |
Yes, for PHP 8.2.10 https://github.com/zeromq/php-zmq/files/12610669/ZMQ-4.3.4_x64_PHP8.2.10-NTS.zip |
amigos tengo un problema con php 8.1.9 trate de hacerlo con la 8.2 y 8.0.30 y no me ha funcionado algunome podria ayudar |
Hi. Anyone has / use and can share some PHP 8.1.3 windows builds?
Thanks.
The text was updated successfully, but these errors were encountered: