php-windows Digest 18 Sep 2013 19:54:35 -0000 Issue 4153

Topics (messages 31178 through 31181):

Re: win32service on php 5.4
        31178 by: Anatol Belski
        31179 by: Momchil Bozhinov
        31180 by: Richard Quadling

Re: Apache or IIS???
        31181 by: Jorge Hernandez

Administrivia:

To subscribe to the digest, e-mail:
        php-windows-digest-subscr...@lists.php.net

To unsubscribe from the digest, e-mail:
        php-windows-digest-unsubscr...@lists.php.net

To post to the list, e-mail:
        php-wind...@lists.php.net


----------------------------------------------------------------------
--- Begin Message ---
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

--- End Message ---
--- Begin Message ---
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 &lt;a...@php.net&gt; 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
> 
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 

--- End Message ---
--- Begin Message ---
On 12 September 2013 15:32, Momchil Bozhinov <momc...@bojinov.info> 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 &lt;a...@php.net&gt; 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

--- End Message ---
--- Begin Message ---
After careful examination of my configuration files (httpd.conf and
php.ini) I could get it to run as Apache Module with these results:

PHP version : 5.5.3
Platform : WINNT
--------------------------------------
test_math                 : 1.059 sec.
test_stringmanipulation   : 2.210 sec.
test_loops                : 0.773 sec.
test_ifelse               : 0.479 sec.
--------------------------------------
Total time:               : 4.521 sec.

CGI (NTS) might be faster, but that's damn close than my previous
results, so at this point I don't think it's Windows Server 2012.


On Tue, Sep 10, 2013 at 2:39 PM, br...@chalopin.fr <br...@chalopin.fr> wrote:
> Le 10 sept. 2013 à 19:15, Jorge Hernandez <jfh...@gmail.com> a écrit :
>
>> Hey guys,
>>
>> Has anybody run this test, I'm in the middle of it and have found that
>> PHP runs faster as CGI-nts (IIS) than Module-ts (Apache), as per
>> Windows Server 2008 R2 running PHP 5.5.3 x64 with Apache 2.4 x64 I was
>> getting benchmarks of over 15 secs, I just ran the same benchmark on
>> Windows Server 2012 x64 and Apache 2.4 x64 with PHP 5.5.3 x64 and got
>> this:
>>
>> PHP version : 5.5.3
>> Platform : WINNT
>> --------------------------------------
>> test_math                 : 1.093 sec.
>> test_stringmanipulation   : 2.106 sec.
>> test_loops                : 0.772 sec.
>> test_ifelse               : 0.477 sec.
>> --------------------------------------
>> Total time:               : 4.448 sec.
>>
>> This doesn't make sense to me:
>>
>> Win 2008 R2 + Apache 2.4 x64 => over 15 seconds for the total time of 
>> benchmark
>> Win 2012 + Apache 2.4 x64 => less than 5 secs
>>
>> If both servers are using the same Apache and the same PHP, shouldn't
>> they be similar?
>>
>> Also, when I tried CGI over Apache I got 3.x seconds which tells me
>> that it should run faster on IIS (CGI-nts)
>>
>> Or:
>>
>> PHP NTS (for IIS) runs faster than TS (For Apache) even though Apache
>> has always been the main server for PHP.
>>
>> Any ideas?
>>
>> --
>>
>> Jorge Hernandez
>
> Hi,
>
> As far as I know NTS version will always be faster than TS ones as handling 
> the safety of thrreads require more treatments.
> Now I can't explain this difference between 2012 and 2008. perhaps 2012 is 
> highly optimized ;-)
>
> Btw, on all bench i've made so far, IIS is always faster and more stable than 
> apache on windows. (On heavy load tests I easily crash apache where IIS is 
> fine)
>
> Regards,
>
> Bruno
>



-- 

Jorge Hernandez



165 East 115th Street #4B
New York, NY 10029

jfh...@gmail.com

tel:
fax:
mobile:

646-403-9802
646-519-4352
646-262-1908

--- End Message ---

Reply via email to