|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-06-23 10:47 UTC] tony2001@php.net
[2005-07-01 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 13:00:01 2025 UTC |
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