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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
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

Add a Patch

Pull Requests

Add a Pull Request

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: Fri Mar 29 15:01:28 2024 UTC