#35748 [Opn->Fbk]: is_dir function always returns false on FreeBSD.

From: Date: Tue, 20 Dec 2005 17:02:43 +0000
Subject: #35748 [Opn->Fbk]: is_dir function always returns false on FreeBSD.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-90743@lists.php.net to get a copy of this message
ID: 35748 Updated by: sniper@php.net 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

« previous php.bugs (#90743) next »