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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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: Sun Dec 22 03:01:28 2024 UTC