#35482 [Opn->Fbk]: Bad performance of filesystem functions
ID: 35482
Updated by: tony2001@php.net
Reported By: tobias-bender at web dot de
-Status: Open
+Status: Feedback
Bug Type: Filesystem function related
Operating System: Windows XP Professional
PHP Version: 5.1.1
New Comment:
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php
If you can provide more information, feel free to add it
to this bug and change the status back to "Open".
Thank you for your interest in PHP.
Can't reproduce on Linux.
Previous Comments:
------------------------------------------------------------------------
[2005-11-30 01:25:57] tobias-bender at web dot de
Description:
------------
All filesystem functions got much slower with PHP 5.x.
With short relative paths PHP 4 is about twice as fast as PHP 5. PHP 5
is nearly 10 times slower when using absolute paths compared to PHP 4.
Reproduce code:
---------------
function getMicrotime(){
list($usec, $sec) = explode(' ', microtime());
return ((float)$usec + (float)$sec);
}
$iTime = getMicrotime();
$rHandle = opendir('C:/Apache2/htdocs/phpXplorer/test/vollvoll');
while (false !== ($sName = readdir($rHandle))) {
if (is_dir('C:/Apache2/htdocs/phpXplorer/test/vollvoll/' . $sName)){
echo 'C:/Apache2/htdocs/phpXplorer/test/vollvoll/' . $sName .
'<br/>';
}
}
echo getMicrotime() - $iTime;
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=35482&edit=1
Thread (8 messages)