From c18a0025fb373524815bb63dc9cc078b59d5716b Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Fri, 26 Nov 2004 14:40:48 +0000 Subject: [PATCH] include(../) searches only from current dir (bug #30881) git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@173536 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/control-structures.xml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/language/control-structures.xml b/language/control-structures.xml index 11ec91ab55..160e383cd1 100644 --- a/language/control-structures.xml +++ b/language/control-structures.xml @@ -1,5 +1,5 @@ - + Control Structures @@ -1290,6 +1290,8 @@ require ('somefile.txt'); you included include/a.php and there is include "b.php" in that file, b.php is first looked in /www/ and then in /www/include/. + If filename begins with ../, it is looked only in + include_path relative to the current working directory. When a file is included, the code it contains inherits the