On 12 September 2013 15:32, Momchil Bozhinov <momchil@xxxxxxxxxxxx> wrote: > Hi Anatol, > Thanks for the fast reply > The code from trunk worked.But it only worked because I used it to install > the service and then start it > which created two DWORD values that I did not have > before[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\<Service>]WOW64 > = 1BasePriority = 20 > Once I added those to my service it started no problem. > Before that I used "sc create" to create the service > All best,Momchil > On Thu, 09/12/2013 01:57 PM, Anatol Belski <ab@xxxxxxx> wrote: > > Hi, > > > > On Thu, September 12, 2013 14:26, Momchil Bozhinov wrote: > > > Hello, > > > I'm trying to migrate from 5.3 to 5.4, but I hit a road block > > > I'm using this > > > ext:http://windows.php.net/downloads/pecl/releases/win32service/0.1.0/ > > > According to the > > > documentation:http://www.php.net/manual/bg/win32service.constants.php > > > This one should exist: > > > WIN32_ERROR_CALL_NOT_IMPLEMENTED > > > but I get this:Notice: Use of undefined constant > > > WIN32_ERROR_CALL_NOT_IMPLEMENTED - assumed > > > 'WIN32_ERROR_CALL_NOT_IMPLEMENTED' in C:\xxx\win32_service.php on line > 70 > > > Unfortunately none of the example code works > > > either: > http://www.php.net/manual/bg/function.win32-set-service-status.php > > > The service won't start even after I replace > > > WIN32_ERROR_CALL_NOT_IMPLEMENTED with WIN32_SERVICE_RUNNING > > > Can anyone please test this ? > > > ThanksMomchil > > > > That constant is indeed not implemented. > > > > Did you try the sample from tgz? > > http://svn.php.net/viewvc/pecl/win32service/trunk/sample.php?view=markup > > > > Please attach the code snippet you have an issue with. > > > > I've also set Richard, the author of this ext, on CC. > > > > Regards > > > > Anatol > Hello all. A few things. Firstly, I'm sorry to say that I'm not in a position to maintain this extension any more. I no longer work with windows (Mac now). Secondly, the English documentation matches the trunk. There was a LOT of rewriting, especially around the error reporting. >From memory, the error code you are asking for was never returned, but, if you need it, you can use ... define('WIN32_ERROR_CALL_NOT_IMPLEMENTED', 120); The last time the code was used it was on a Windows 2008 server. -- Richard Quadling Twitter : @RQuadling