ID:               35748
 Updated by:       [EMAIL PROTECTED]
 Reported By:      hml at uraroji dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         Directory function related
 Operating System: FreeBSD 4.11
 PHP Version:      4.4.1
 New Comment:

Please try using this CVS snapshot:

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




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

[2005-12-20 17:35:04] hml at uraroji dot com

Description:
------------
php 4.4.1 is_dir() function always returns false on FreeBSD.
php 4.4.0 was working normally.

Reproduce code:
---------------
<?php
clearstatcache();

$dirs = array("/", "./", "../", "/usr");

foreach($dirs as $dir){
        if(is_dir($dir)==true){
                echo "dir $dir\n";
        }else{
                echo "non dir $dir\n";
        }
}
?>

Expected result:
----------------
dir /
dir ./
dir ../
dir /usr


Actual result:
--------------
non dir /
non dir ./
non dir ../
non dir /usr



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=35748&edit=1

Reply via email to