php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17837 PHP 'handles' permission problems rather than letting Apache do it
Submitted: 2002-06-19 09:49 UTC Modified: 2002-07-24 07:29 UTC
From: acm at tweakers dot net Assigned:
Status: Wont fix Package: Apache related
PHP Version: 4.2.1 OS: Linux, various
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 — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
22 + 6 = ?
Subscribe to this entry?

 
 [2002-06-19 09:49 UTC] acm at tweakers dot net
The bug is the same as: http://bugs.php.net/bug.php?id=8638
But is still there in php-4.2.1 and 4.1.2 on various apache/linux platforms.

Try this:
Create a .php-file with chmod 644, open it in your browser.
It'll work.
chmod it to 000, and you'll give you a "Warning: Failed opening '/path/to/file.php' for inclusion (include_path='') in Unknown on line 0"

Then try a .html-file, chmod 644, chmod 000 etc.
Will give a nice 403 error message.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-19 09:53 UTC] negotiator at tweakers dot net
I'm experiencing exact the same problem in a Windows 2000 Server / IIS 5.0  environment.
 [2002-07-24 07:29 UTC] hholzgra@php.net
expected behavior
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 02:01:29 2024 UTC