|  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:
Solve the problem:
35 - 18 = ?
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() []: 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-2023 The PHP Group
All rights reserved.
Last updated: Wed Mar 29 20:03:46 2023 UTC