go to bug id or search bugs for
PECL Win32 service DLL 0.4.0
Non thread safe, 64bit
PHP Version 7.1.7
PEAR - not installed
I'm trying to use PECL's create win32 service function to run a PHP script as a service. The service gets created and from what I can see it's executing the PHP script... but -- windows is timing out the attempt to start the service. >>> A timeout was reached (30000 milliseconds) while waiting for the APMT_PHP_Test2 service to connect. <<< This particular script does not "finish"; it starts an endless while() loop that listens for incoming socket connections. Is that why I'm having a problem, because the service/windows is expecting a conclusion of sorts from the script? Halp!
Add a Patch
Add a Pull Request
Do you have used this sample to understand how the service run ?
This example split more the scope of all functions available in this extension.
Otherwise, you can use the library
Or if you have a Symfony project this Bundle :