|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-12-20 18:02 UTC] sniper@php.net
[2005-12-22 03:18 UTC] hml at uraroji dot com
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 10:00:02 2025 UTC |
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