#41741 [Com]: include/require fails for ../file

From: Date: Tue, 19 Jun 2007 20:17:19 +0000
Subject: #41741 [Com]: include/require fails for ../file
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-113938@lists.php.net to get a copy of this message
ID: 41741 Comment by: tobi at byte23 dot de Reported By: tobi at byte23 dot net Status: Open Bug Type: *Directory/Filesystem functions Operating System: NetBSD 3.0.1 stable PHP Version: 5.2.3 New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#113938) next »