php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33442 basename execution exceeds 30s
Submitted: 2005-06-23 06:00 UTC Modified: 2005-07-01 01:00 UTC
From: david dot perianghendra at gmail dot com Assigned:
Status: No Feedback Package: Apache related
PHP Version: 5.0.3 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
39 + 26 = ?
Subscribe to this entry?

 
 [2005-06-23 06:00 UTC] david dot perianghendra at gmail dot com
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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-06-23 10:47 UTC] tony2001@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip


 [2005-07-01 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 00:01:28 2024 UTC