#41822 [Opn->Asn]: includes produce permission denied errors (bug #39351 not fixed on SPARC)
| From: | tony2001@php.net | Date: | Wed, 27 Jun 2007 13:55:19 +0000 |
| Subject: | #41822 [Opn->Asn]: includes produce permission denied errors (bug #39351 not fixed on SPARC) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-114335@lists.php.net to get a copy of this message | ||
ID: 41822
Updated by: tony2001@php.net
Reported By: ian at onlineloop dot com
-Status: Open
+Status: Assigned
Bug Type: *Directory/Filesystem functions
Operating System: Solaris 10
PHP Version: 5.2.3
-Assigned To:
+Assigned To: tony2001
Previous Comments:
------------------------------------------------------------------------
[2007-06-27 13:46:06] ian at onlineloop dot com
CVS version still produces the error.
------------------------------------------------------------------------
[2007-06-27 13:27:02] tony2001@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows (zip):
http://snaps.php.net/win32/php5.2-win32-latest.zip
For Windows (installer):
http://snaps.php.net/win32/php5.2-win32-installer-latest.msi
------------------------------------------------------------------------
[2007-06-27 13:17:44] ian at onlineloop dot com
Description:
------------
When including files in directories that have access only permissions
(no read or write), includes fail with a permission denied when trying
things like
include ('../include_me.inc');
Directory permissions for the webserver process are access only (--x).
When including an absolute path, or relative path descending into the
directory tree, include works ok eg:
include ('access_only/level2/include_me.inc');
The return value of "is_readable('../include_me.inc');" returns true,
however include() fails.
Everything works find up to and including PHP 5.1.6, as of PHP 5.2.0
this problem occurs.
Anthony D. has access to our SPARC system and a test area in which this
bug is reproduced has been set up. He should contact me at my work
email address for further information.
Expected result:
----------------
The files should be included, as they were in versions prior to and in
5.1.6.
Actual result:
--------------
Warning: include(../include_me.inc) [function.include]: failed to open
stream: Permission denied in /access_only/level2/index.php on line 15
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=41822&edit=1