From a1fc8613606959f1825082c7f7b6296d12617d13 Mon Sep 17 00:00:00 2001 From: Etienne Kneuss Date: Sun, 27 May 2007 09:46:31 +0000 Subject: [PATCH] Fix #41486 (include_path not used for the script's dir) git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@236434 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/control-structures.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/language/control-structures.xml b/language/control-structures.xml index b0deefa400..a75fdfeee6 100644 --- a/language/control-structures.xml +++ b/language/control-structures.xml @@ -1,5 +1,5 @@ - + Control Structures @@ -1302,10 +1302,10 @@ require ('somefile.txt'); Files for including are first looked in include_path relative to the current working directory - and then in include_path relative to the directory of current script. E.g. if your include_path - is ., current working directory is /www/, + and then in the directory of the current script. E.g. if your include_path + is libraries, current working directory is /www/, you included include/a.php and there is include "b.php" - in that file, b.php is first looked in /www/ + in that file, b.php is first looked in /www/libraries/ and then in /www/include/. If filename begins with ./ or ../, it is looked only in include_path relative to the current working directory.