ID: 41741
Comment by: michael at chunkycow dot com dot au
Reported By: tobi at byte23 dot net
Status: Open
Bug Type: *Directory/Filesystem functions
Operating System: NetBSD 3.1.0 stable
PHP Version: 5.2.3
New Comment:
<quote>For example: in file /foo/subdir/alpha.php I want to include
/foo/beta.php the following error occurs:</quote>
Works fine here on CentOS4.5, kubuntu Fiesty and latest debian
linuxes.
Can you include files from a subdirectory of the current one aka
/foo/subdir/subsubdir/ ?
Previous Comments:
------------------------------------------------------------------------
[2007-06-19 20:25:14] tobi at byte23 dot net
NetBSD 3.1.0 not 3.0.1
sorry, it's my first bug report ;)
------------------------------------------------------------------------
[2007-06-19 20:17:19] tobi at byte23 dot de
I should add the following: The errors don not only occur on self
written codes but on every Wordpress and Typo3 installation on this
server.
------------------------------------------------------------------------
[2007-06-19 20:11:38] tobi at byte23 dot net
Description:
------------
Since the last update of my NetBSD system to PHP 5.2.3 all includes of
the type include("../file.php") are denied.
For example: in file /foo/subdir/alpha.php I want to include
/foo/beta.php the following error occurs:
---
Warning: require(../beta.php) [function.require]: failed to open
stream: Permission denied in /foo/subdir/alpha.php on line 2
Fatal error: require() [function.require]: Failed opening required
'../beta.php' (include_path='.') in /foo/subdir/alpha.php on line 2
---
Following things are checked twice: The filepermissions are OK, Apache
(and every other user) can execute and read them. Directory permissions
are aswell OK.
PHP Configuration is set to default settings. As I said everything
worked totally fine since the latest update.
Thanks to everyone!
Reproduce code:
---------------
in /foo/subdir/alpha.php :
require("../beta.php");
Expected result:
----------------
Should include the file...
Actual result:
--------------
Permission denied, whereas all permissions are set totally OK and
configuration is set to default settings.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=41741&edit=1