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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: hml at uraroji dot com
New email:
PHP Version: OS:

 

 [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-2021 The PHP Group
All rights reserved.
Last updated: Wed Aug 04 01:01:24 2021 UTC