#33442 [NEW]: basename execution exceeds 30s
| From: | david dot perianghendra at gmail dot com | Date: | Thu, 23 Jun 2005 04:00:06 +0000 |
| Subject: | #33442 [NEW]: basename execution exceeds 30s | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-80860@lists.php.net to get a copy of this message | ||
From: david dot perianghendra at gmail dot com
Operating system: Linux
PHP version: 5.0.3
PHP Bug Type: Apache related
Bug description: basename execution exceeds 30s
Description:
------------
i use Linux 2.4.20, PHPv5.0.3, Apache v1.3.33
When i use basename function, its execution exceed 30s when i run it on my
browser used 100% of CPU usage when i run it. But when i run it on console
it works fine
Reproduce code:
---------------
<?php
$driver_file = '/home/kambing/hohoho.php';
if ( file_exists( $driver_file ) ) {
echo "\nFile Exists: $driver_file";
echo "<br>basename: ".basename( $driver_file );
}
else
echo "\nFile Doesn't exists";
echo "\n";
?>
Expected result:
----------------
hohoho.php
Actual result:
--------------
Fatal error: Maximum execution time of 30 seconds exceeded in
/var/htdocs/kgblogger.com/html/testing/phpbase.php on line 5
--
Edit bug report at http://bugs.php.net/?id=33442&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33442&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=33442&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=33442&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=33442&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=33442&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=33442&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=33442&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=33442&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=33442&r=support
Expected behavior: http://bugs.php.net/fix.php?id=33442&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=33442&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=33442&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=33442&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33442&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=33442&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=33442&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=33442&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=33442&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=33442&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=33442&r=mysqlcfg