From: waboring at 3gstech dot com Operating system: Redhat 9 PHP version: 5CVS-2004-02-10 (dev) PHP Bug Type: Performance problem Bug description: include in php5 is very slow
Description: ------------ I am the maintainer of phphtmllib. I just got the latest php5 from cvs built and working, but have noticed a serious performance issue with just doing includes. reproduce: download phphtmllib from http://phphtmllib.newsblob.com/downloads/download.php?version=2.4.0 tar -zxvf phptmllib-2.4.0.tgz into your favorite location create a simple script that does nothing but include the library include file. "phphtmllib-2.4.0/include.inc" The execution of which takes over 1 second to complete. This script takes 0.075 to complete in php 4.3.2 Reproduce code: --------------- <?php $phphtmllib = "/location/where/you/installed/it"; include_once($phphtmlib."/includes.inc"); //Those 2 lines take over 1 second ?> Expected result: ---------------- expected the simple include script to return in under .1 ms Actual result: -------------- The script took over 1 second to execute. -- Edit bug report at http://bugs.php.net/?id=27215&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27215&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27215&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=27215&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=27215&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=27215&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=27215&r=needscript Try newer version: http://bugs.php.net/fix.php?id=27215&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=27215&r=support Expected behavior: http://bugs.php.net/fix.php?id=27215&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=27215&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=27215&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=27215&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27215&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=27215&r=dst IIS Stability: http://bugs.php.net/fix.php?id=27215&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=27215&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=27215&r=float