colder Sun May 27 09:46:31 2007 UTC
Modified files:
/phpdoc/en/language control-structures.xml
Log:
Fix #41486 (include_path not used for the script's dir)
http://cvs.php.net/viewvc.cgi/phpdoc/en/language/control-structures.xml?r1=1.138&r2=1.139&diff_format=u
Index: phpdoc/en/language/control-structures.xml
diff -u phpdoc/en/language/control-structures.xml:1.138
phpdoc/en/language/control-structures.xml:1.139
--- phpdoc/en/language/control-structures.xml:1.138 Mon May 7 09:33:54 2007
+++ phpdoc/en/language/control-structures.xml Sun May 27 09:46:31 2007
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.138 $ -->
+<!-- $Revision: 1.139 $ -->
<chapter id="language.control-structures">
<title>Control Structures</title>
@@ -1302,10 +1302,10 @@
</simpara>
<simpara>
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 <literal>.</literal>, current working directory is <filename
class="directory">/www/</filename>,
+ and then in the directory of the current script. E.g. if your include_path
+ is <literal>libraries</literal>, current working directory is <filename
class="directory">/www/</filename>,
you included <filename>include/a.php</filename> and there is
<literal>include "b.php"</literal>
- in that file, <filename>b.php</filename> is first looked in <filename
class="directory">/www/</filename>
+ in that file, <filename>b.php</filename> is first looked in <filename
class="directory">/www/libraries/</filename>
and then in <filename class="directory">/www/include/</filename>.
If filename begins with <literal>./</literal> or <literal>../</literal>, it
is looked only in include_path relative to the current working directory.