svn: /phpdoc/en/trunk/language/control-structures/ include.xml
| From: | Adam Harvey | Date: | Wed, 15 Sep 2010 03:55:24 +0000 |
| Subject: | svn: /phpdoc/en/trunk/language/control-structures/ include.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-7108@lists.php.net to get a copy of this message | ||
aharvey Wed, 15 Sep 2010 03:55:24 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=303377
Log:
Fix doc bug #52845 (Documentation wrong re includes with relative paths) by
adding clarifying text on what we actually mean by full and relative paths.
Bug: http://bugs.php.net/52845 (Assigned) Documentation
wrong re includes with relative paths
Changed paths:
U phpdoc/en/trunk/language/control-structures/include.xml
Modified: phpdoc/en/trunk/language/control-structures/include.xml
===================================================================
--- phpdoc/en/trunk/language/control-structures/include.xml 2010-09-15 03:47:21 UTC (rev 303376)
+++ phpdoc/en/trunk/language/control-structures/include.xml 2010-09-15 03:55:24 UTC (rev 303377)
@@ -20,10 +20,13 @@
<link linkend="errorfunc.constants.errorlevels.e-error">fatal error</link>.
</simpara>
<simpara>
- If a path is defined (full or relative), the
- <link linkend="ini.include-path">include_path</link> will be ignored
altogether.
- For example, if a filename begins with <literal>../</literal>, the parser will
- look in the parent directory to find the requested file.
+ If a path is defined — whether absolute (starting with a drive letter
+ on Windows, or <literal>/</literal> on Unix/Linux systems) or relative to
+ the current directory (starting with <literal>.</literal> or
+ <literal>..</literal>) — the
+ <link linkend="ini.include-path">include_path</link> will be ignored
+ altogether. For example, if a filename begins with <literal>../</literal>,
+ the parser will look in the parent directory to find the requested file.
</simpara>
<simpara>
For more information on how PHP handles including files and the include path,