note 104505 added to function.is-file
| From: | Anonymous at osu1 dot php dot net | Date: | Sun, 19 Jun 2011 06:47:33 +0000 |
| Subject: | note 104505 added to function.is-file | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-180663@lists.php.net to get a copy of this message | ||
is_file doesn't recognize files whose filenames contain strange characters like czech ů or
russian characters in general.
I've seen many scripts that take it for granted that a path is a directory when it fails
is_file($path). When trying to determine whether a path links to a file or a dir, you should always
use is_dir after getting false from is_file($path). For cases like described above, both will fail.
----
Server IP: 69.147.83.197
Probable Submitter: 190.133.128.51
----
Manual Page -- http://www.php.net/manual/en/function.is-file.php
Edit -- https://master.php.net/note/edit/104505
Del: integrated -- https://master.php.net/note/delete/104505/integrated
Del: useless -- https://master.php.net/note/delete/104505/useless
Del: bad code -- https://master.php.net/note/delete/104505/bad+code
Del: spam -- https://master.php.net/note/delete/104505/spam
Del: non-english -- https://master.php.net/note/delete/104505/non-english
Del: in docs -- https://master.php.net/note/delete/104505/in+docs
Del: other reasons-- https://master.php.net/note/delete/104505
Reject -- https://master.php.net/note/reject/104505
Search -- https://master.php.net/manage/user-notes.php