php.net |  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 Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
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() [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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-03-10 09:25 UTC] sniper@php.net
No.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 13:01:31 2024 UTC