- marked as minor
Windows support ?
Hi,
Awesome package but windows support would be awesome. Is that hard to support windows on PHP 7 version because of some fork / signals handlers in source code ?
Comments (11)
-
repo owner -
True servers are running Linux but developers may run Windows in dev environment :p Thank you for your answer, I will try your extension in prod server once the development of the project I'm going to start will be ready. It uses icicle with websocket packages to handle async PHP tasks and the lib owner highly recommend the use of pecl-ev extension.
-
repo owner From what I learnt, Windows support is rather limited in Libev. Althought, for temporary(development) purposes should do.
I've added necessary files for Windows, and it's almost done. "Almost" - because I don't understand why MSVC14's linker fails to resolve symbols from php7/ev.c:
fe.obj : error LNK2001: unresolved external symbol _zimEvLoop_timer ...
I haven't worked on Windows for more than 8 years, so I won't mind if somebody drops a pull request for this thing.
-
Unfortunately I am quite busy those days, did you try other Microsoft Visual Studio version to compile? Normally it should be the same version as the one used to build the PHP version. Anyway thanks for working on a Windows support.
-
repo owner - changed status to resolved
-
repo owner Note, that Windows support is very limited, as it is said on libev's official documentation
-
repo owner - changed status to open
Something went wrong with the PECL autobuild.
-
repo owner I don't know why PECL's remote server fails to compile it: http://windows.php.net/downloads/pecl/releases/ev/1.0.0rc9/logs/ I've managed to build PHP7 version successfully on my local Windows 7, x86, MSVC14. Now I don't feel like proceeding - the whole thing on Windows rather looks like dancing with a tambourine, just like good old school days, huh.
-
Hi, to test compiling your extension on windows, steps are:
Getting MSVC14 cloning the repo cd to the repo
then what's the command to start the compilation ? Or you browse the repo with MSVC14 and run the compilation in the IDE ?
-
repo owner Hi, steps are here. You'll probably build it successfully. The problem is that the build fails on the PECL server.
-
repo owner - changed status to resolved
Windows binaries are now available at https://pecl.php.net/package/ev
- Log in to comment
Hi,
the lack of Windows support is due to the lack of necessity. Most servers are running Linux.
It's not difficult to introduce Windows support, as both PHP and libev APIs are cross-platform. I think I'll do that someday =)