PHP 4.0 Bug #8945: include, require, et al.

From: Date: Fri, 26 Jan 2001 23:58:49 +0000
Subject: PHP 4.0 Bug #8945: include, require, et al.
Groups: php.dev 
Request: Send a blank email to php-dev+get-45111@lists.php.net to get a copy of this message
From: Jason@hspace.net Operating system: Windows 2000 PHP version: 4.0.4pl1 PHP Bug Type: Performance problem Bug description: include, require, et al. I discovered that the include(), require() or include_only(), require_only() functions have a profound effect on performance. I use conditional statements to conditionally require files, however, it seems that the PHP interpreter has a performance problem with this. Commenting out all the require() or include() code shows that performance improved by 200%. Web Stressing the app and PHP, I have found that PHP can sometimes crash with an Access Violation at 12345 and CPU usage maxing at 100%. Memory leaks very much when CPU usage is at maximum threshold. Zend Optimizer seems to reduce performance by a noticeable amount. It does not seem to reduce CPU usage, unfortunately. I got the best performance from PHP using page cacheing. Results seem to show that it's faster than static HTML... -- Edit Bug report at: http://bugs.php.net/?id=8945&edit=1

« previous php.dev (#45111) next »