ID:               35482
 Updated by:       [EMAIL PROTECTED]
 Reported By:      tobias-bender at web dot de
-Status:           Open
+Status:           Bogus
 Bug Type:         Filesystem function related
 Operating System: Windows XP Professional
 PHP Version:      5.1.1
 New Comment:

Comparing PHP 5 with PHP 4 is like comparing apples and oranges. This
is inherent problem in Windows, not a bug.


Previous Comments:
------------------------------------------------------------------------

[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

Reply via email to