php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #34870 404 ErrorDocument in safe mode
Submitted: 2005-10-14 11:54 UTC Modified: 2005-10-17 07:29 UTC
From: petr at kodytek dot net Assigned:
Status: Closed Package: Safe Mode/open_basedir
PHP Version: 5.1.0RC1 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: petr at kodytek dot net
New email:
PHP Version: OS:

 

 [2005-10-14 11:54 UTC] petr at kodytek dot net
Description:
------------
If Apache server uses PHP script as 404 ErrorDocument returns following error message when 404 Error invoked. Previous versions of PHP are gone OK. Direct access to the script is OK and it's running fine accessing by URL.

Expected result:
----------------
running script

Actual result:
--------------
Warning: Unknown: SAFE MODE Restriction in effect. The script whose uid is 2286 is not allowed to access /path/to/404.phtml owned by uid 23708 in Unknown on line 0

Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0

Warning: Unknown: Failed opening '/path/to/404.phtml' for inclusion (include_path='.') in Unknown on line 0

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-10-14 12:05 UTC] tony2001@php.net
The eror message is quite clear, isn't it ?
 [2005-10-14 12:53 UTC] petr at kodytek dot net
I think that it's not OK, i can't find way to run ErrorDocument script on 404 error. UID of script who calls 404.phtml is different in each access.
 [2005-10-14 13:04 UTC] tony2001@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip

Works perfectly fine here.
 [2005-10-14 13:13 UTC] petr at kodytek dot net
OK, I'll try to use it and I'll send a report.

Thanx.
 [2005-10-17 07:29 UTC] petr at kodytek dot net
5.1.0RC2-dev looks to be OK. So I'm closing this BUG.

Thanx.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 10:01:31 2024 UTC