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 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: 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

Pull Requests

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: Sat Dec 21 16:01:28 2024 UTC