|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-08-12 12:32 UTC] rasmus@php.net
[2002-08-13 08:53 UTC] fillmore at NRCan dot gc dot ca
[2002-08-13 08:55 UTC] kalowsky@php.net
[2002-08-14 20:31 UTC] zeev@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 15 06:00:01 2025 UTC |
A site was developed with scripts that use "include" and "include_once", and it worked fine until the client load increased. The symptoms include various parser errors that seem to indicate that code from an include file was truncated or corrupted. The errors are reproduceable using a web load generator. Assuming that the problem may be caused by code that is not thread-safe, I configured iPlanet web server to limit the number of threads for PHP to 1 - this fixed the problem. However, PHP should really be thread-safe when running in an iPlanet 4.1/NSAPI environment. Here are the obj.conf changes to fix the problem: Init fn="thread-pool-init" name="php-thread-pool" MinThreads="1" MaxThreads="1" QueueSize="300" Init fn="load-modules"funcs="php4_init,php4_close,php4_execute,php4_auth_trans" shlib="/suitespot/bin/libphp4.so" pool="php-thread-pool" Here is the config call: CC=gcc ./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/ph p/etc --with-nsapi=/suitespot --enable-libgcc --enable-dbase --with-xml Thanks, Bob Fillmore