php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #35748 is_dir function always returns false on FreeBSD.
Submitted: 2005-12-20 17:35 UTC Modified: 2005-12-22 03:18 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 1 (0.0%)
From: hml at uraroji dot com Assigned:
Status: Closed Package: Directory function related
PHP Version: 4.4.1 OS: FreeBSD 4.11
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
45 - 43 = ?
Subscribe to this entry?

 
 [2005-12-20 17:35 UTC] 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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-12-22 03:18 UTC] hml at uraroji dot com
I tried CVS snapshot.
I think it runs satisfactory.

Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 15:01:32 2024 UTC