From: [EMAIL PROTECTED]
Operating system: winnt 4.0
PHP version: 4.0.4
PHP Bug Type: *Directory/Filesystem functions
Bug description: filename ends with �
this prints out 'crap' because is_dir() and is_file() return null instead of a boolean
if the filename ends with a �.
yes, the file in the example is a valid windows filename.
$fullPath = realpath("c:/{}d % test.txt {} _-d��+@�#�&()=~^`�'$�");
if (is_dir($fullPath) == null) echo 'crap';
-fab
--
Edit Bug report at: http://bugs.php.net/?id=9697&edit=1
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]