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 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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 01 00:01:36 2025 UTC