|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-11-30 10:30 UTC] tony2001@php.net
[2005-12-01 00:03 UTC] tobias-bender at web dot de
[2005-12-01 13:11 UTC] sniper@php.net
[2005-12-02 05:26 UTC] tobias-bender at web dot de
[2005-12-02 09:48 UTC] sniper@php.net
[2010-12-20 14:15 UTC] jani@php.net
-Package: Feature/Change Request
+Package: Filesystem function related
-Assigned To: wez
+Assigned To: pajoye
[2013-01-08 07:18 UTC] pajoye@php.net
[2013-10-15 12:12 UTC] pajoye@php.net
-Status: Assigned
+Status: Closed
[2013-10-15 12:12 UTC] pajoye@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 20:00:01 2025 UTC |
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;