From: ian at onlineloop dot com
Operating system: Solaris 10
PHP version: 5.2.3
PHP Bug Type: *Directory/Filesystem functions
Bug description: includes produce permission denied errors (bug #39351 not
fixed on SPARC)
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 bug report at http://bugs.php.net/?id=41822&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=41822&r=trysnapshot44
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=41822&r=trysnapshot52
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=41822&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=41822&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=41822&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=41822&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=41822&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=41822&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=41822&r=support
Expected behavior: http://bugs.php.net/fix.php?id=41822&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=41822&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=41822&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=41822&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41822&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=41822&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=41822&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=41822&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=41822&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=41822&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=41822&r=mysqlcfg