|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59772 win32_set_service_status only takes a single argument
Submitted: 2011-05-18 13:21 UTC Modified: 2011-05-19 10:22 UTC
From: matt at wootkit dot com Assigned: rquadling (profile)
Status: Not a bug Package: win32service (PECL)
PHP Version: 5.3.5 OS: Windows 2003 Standard Server
Private report: No CVE-ID: None
 [2011-05-18 13:21 UTC] matt at wootkit dot com
According to you can provide a second argument to win32_set_service_status to set the checkpoint for a pending service.  However when trying to use that argument PHP returns an warning that the function only takes a single argument.

Reproduce code:
Assuming you have a service called 'testservice'...

win32_start_service_ctrl_dispatcher( 'testservice' );
win32_set_service_status( WIN32_SERVICE_START_PENDING, 0 );

Expected result:
I expect the checkpoint to be set properly and the function to return TRUE without a warning.

Actual result:
PHP Warning:  win32_set_service_status() expects exactly 1 parameter, 2 given in test.php on line 70


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2011-05-19 05:33 UTC] RQuadling at GMail dot com
The checkpoint option was added
ce.c?r1=304480&r2=304485 (October 2010).

This was packaged in

I'm guessing you have an old version of the extension.
 [2011-05-19 08:34 UTC] matt at wootkit dot com
Hm, it appears so.  Is there a dll download available that has the updated codes in it?
 [2011-05-19 08:47 UTC] RQuadling at GMail dot com
Unfortunately not. I'm building with 5.3, VC9, x96, nts only 
(I use IIS+FastCGI and CLI, so no need for ts).

If that is suitable for you, then I can supply the file I've 
 [2011-05-19 08:52 UTC] matt at wootkit dot com
That sounds like the exact configurartion I'm using.  I just need the php_win32service.dll to put into the extensions directory and I'll be good to go.  If you can provide the file it'd be awesome.
 [2011-05-19 10:22 UTC] RQuadling at GMail dot com
Personal build supplied.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Mon Dec 11 17:01:30 2023 UTC