php.net |  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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: matt at wootkit dot com
New email:
PHP Version: OS:

 

 [2011-05-18 13:21 UTC] matt at wootkit dot com
Description:
------------
According to http://www.php.net/manual/en/function.win32-set-service-status.php 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

Patches

Pull Requests

History

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

This was packaged in 
http://svn.php.net/viewvc/pecl/win32service/tags/

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 
built.
 [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-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 14:01:32 2024 UTC