#18869 [NEW]: include and include_once fail under load in iPlanet/NSAPI

From: Date: Mon, 12 Aug 2002 16:27:51 +0000
Subject: #18869 [NEW]: include and include_once fail under load in iPlanet/NSAPI
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-16547@lists.php.net to get a copy of this message
From: fillmore@NRCan.gc.ca Operating system: Solaris 8 PHP version: 4.2.2 PHP Bug Type: Scripting Engine problem Bug description: include and include_once fail under load in iPlanet/NSAPI 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 -- Edit bug report at http://bugs.php.net/?id=18869&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=18869&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=18869&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=18869&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=18869&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=18869&r=support Expected behavior: http://bugs.php.net/fix.php?id=18869&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=18869&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=18869&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=18869&r=globals

« previous php.bugs (#16547) next »