|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22610 is_file() safe mode restrictions on "." and ".."
Submitted: 2003-03-08 13:32 UTC Modified: 2003-03-10 09:25 UTC
From: mark_ford_uk at yahoo dot co dot uk Assigned:
Status: Not a bug Package: Directory function related
PHP Version: 4.3.1 OS: Red Hat Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: mark_ford_uk at yahoo dot co dot uk
New email:
PHP Version: OS:


 [2003-03-08 13:32 UTC] 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() []: 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?



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-03-10 09:25 UTC]

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Jul 18 02:01:29 2024 UTC