#22610 [Opn->Bgs]: is_file() safe mode restrictions on "." and ".."
| From: | sniper@php.net | Date: | Mon, 10 Mar 2003 15:25:19 +0000 |
| Subject: | #22610 [Opn->Bgs]: is_file() safe mode restrictions on "." and ".." | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-35266@lists.php.net to get a copy of this message | ||
ID: 22610
Updated by: sniper@php.net
Reported By: mark_ford_uk at yahoo dot co dot uk
-Status: Open
+Status: Bogus
Bug Type: Directory function related
Operating System: Red Hat Linux
PHP Version: 4.3.1
New Comment:
No.
Previous Comments:
------------------------------------------------------------------------
[2003-03-08 13:32:45] mark_ford_uk at yahoo dot co dot uk
As of version 4.3, security was improved with regards to functions like
is_file(). In particular, badly set file permissions will cause errors
similar to the following:
Warning: is_file() [function.is-file]: SAFE MODE Restriction in
effect. The script whose uid is 10014 is not allowed to access
./filename/.....
What I have discovered is, if I use is_file() on the filenames "." and
".." my script will break with errors like those above. Is this a
bug?
Thanks.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=22610&edit=1