Re: Surprises with PHP4/IIS?

From: Date: Thu, 10 May 2001 13:51:53 +0000
Subject: Re: Surprises with PHP4/IIS?
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-7457@lists.php.net to get a copy of this message
The stability of a modules (actually used) on a specific website have impact on the stability of PHP. The CGI version has a short life span, it services one request then vanishes. The SAPI version lives much longer. On IIS it may live the entire lifespan of the IIS process. Apache can be set to a specific number of requests before a child is terminated. The re-use among other things is why the SAPI versions are much faster then CGI and also contributes to why they are less stable. When a bug is encounter in SAPI, if it does not generate a Segmentation Fault (or Illegeal Operation) memory corruption may occur causing subsequent page requests to have unexpected results and more likely to then incurr a Segmentation Fault. Even though CGI may not perform as many Illegeal Operations, SAPI modules and CGI share the same code base, they share the same bugs. CGI runs through program initialization for each page request, so it is less likely to suffer from a bug encounter last page request, that does not save it from a bug encountered during it's page request. SAPI modules don't initialize from scratch every page request, so a bug encounterd last time around may affect this or the next page request. Although CGI implementations may not be affected as frequently by a bugs, as page sources grow, so does the chance of encountering bugs. The hardest part is to determining what is causes a bug to appear. Once that has been accomplished, the bug will likely be exterminated by bringing it to a developers attention or fixing it yourself (gotta love open-source for this ability). -Joe ""Phil Driscoll"" <phil@dialsolutions.co.uk> wrote in message news:00a001c0d930$880bb4a0$0c01a8c0@philsntserver... > Your experiences with the CGI version under IIS are not typical - I've been > running PHP on several production NT boxes since version 4.0 without a > single problem. > > Cheers > -- > Phil Driscoll > Dial Solutions > +44 (0)113 294 5112 > http://www.dialsolutions.com > http://www.dtonline.org > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net > For additional commands, e-mail: php-windows-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.windows (#7457) next »