ID: 35482 Updated by: [EMAIL PROTECTED] Reported By: tobias-bender at web dot de -Status: Open +Status: Assigned Bug Type: Filesystem function related Operating System: Windows XP Professional PHP Version: 5.1.1 -Assigned To: +Assigned To: wez New Comment:
Wez, can you check this out, it's mainly your code anyway. :) Previous Comments: ------------------------------------------------------------------------ [2005-12-02 05:26:18] tobias-bender at web dot de I know but a difference of 1:9 is not normal. This might be not a real bug but has to be kept in mind when working on the code. I think there could be done a lot of optimization. Where to put an issue like that when the bug db is not the right place? ------------------------------------------------------------------------ [2005-12-01 13:11:28] [EMAIL PROTECTED] Comparing PHP 5 with PHP 4 is like comparing apples and oranges. This is inherent problem in Windows, not a bug. ------------------------------------------------------------------------ [2005-12-01 00:03:12] tobias-bender at web dot de I think this has to be analysed on a Windows platform ------------------------------------------------------------------------ [2005-11-30 10:30:11] [EMAIL PROTECTED] 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. ------------------------------------------------------------------------ [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