ID:               41822
 User updated by:  ian at onlineloop dot com
 Reported By:      ian at onlineloop dot com
-Status:           Feedback
+Status:           Open
 Bug Type:         *Directory/Filesystem functions
 Operating System: Solaris 10
 PHP Version:      5.2.3
 New Comment:

CVS version still produces the error.


Previous Comments:
------------------------------------------------------------------------

[2007-06-27 13:27:02] [EMAIL PROTECTED]

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

Reply via email to