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 Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
36 - 6 = ?
Subscribe to this entry?

 
 [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 Apr 19 12:01:27 2024 UTC