php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #77834 Service running PHP script fails to start
Submitted: 2019-04-02 21:14 UTC Modified: -
From: aboeger at gmail dot com Assigned:
Status: Open Package: win32service (PECL)
PHP Version: 7.1.27 OS: Win Server 2012 R2
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2019-04-02 21:14 UTC] aboeger at gmail dot com
Description:
------------
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!


Patches

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sat May 25 23:01:27 2019 UTC