php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #42099 wrong ownership detecttion => safe_mode error
Submitted: 2007-07-25 10:42 UTC Modified: 2007-08-02 01:00 UTC
From: bgs at bgs dot hu Assigned:
Status: No Feedback Package: Filesystem function related
PHP Version: 5.2.3 OS: 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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: bgs at bgs dot hu
New email:
PHP Version: OS:

 

 [2007-07-25 10:42 UTC] bgs at bgs dot hu
Description:
------------
We occasionally but regularly get errors like this: Warning: realpath() [function.realpath]: SAFE MODE Restriction in effect. The script whose uid/gid is 99/99 is not allowed to access /path/to/dir owned by uid/gid 0/0 .....

The problem is that the directory in the error message is actually owned by 99/99. 

The bug looks similar to #18500, but that one looks like Solaris only.

Reproduce code:
---------------
Anything that uses realpath. 

Expected result:
----------------
The script should run :) 
safe_mode now stops it.

Actual result:
--------------
The above type of error message.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-08-02 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 13:01:30 2024 UTC