Bug #9697 Updated: filename ends with £
| From: | sniper@php.net | Date: | Sun, 21 Oct 2001 01:11:42 +0000 |
| Subject: | Bug #9697 Updated: filename ends with £ | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-68523@lists.php.net to get a copy of this message | ||
ID: 9697
Updated by: sniper
Reported By: fabiankessler@usa.net
Old Status: Open
Status: Feedback
Bug Type: Filesystem function related
Operating System: winnt 4.0
PHP Version: 4.0.4
New Comment:
Does this happen with PHP 4.0.6 ?
--Jani
Previous Comments:
------------------------------------------------------------------------
[2001-03-12 03:48:55] fabiankessler@usa.net
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 this bug report at http://bugs.php.net/?id=9697&edit=1