Fix doc bug #51569 (Documentation of include missing fallback to calling

script's cwd) by adding clarifying note about the final fallback when including
a file.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@303380 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Adam Harvey 2010-09-15 06:54:32 +00:00
parent dd144da0e1
commit dc9887a2ca

View file

@ -11,12 +11,15 @@
The documentation below also applies to <function>require</function>.
</simpara>
<simpara>
Files are included based on the file path given or, if none is given, the
<link linkend="ini.include-path">include_path</link> specified. The
<function>include</function> construct will emit a
<link linkend="errorfunc.constants.errorlevels.e-warning">warning</link> if it
cannot find a file; this is different behavior from <function>require</function>,
which will emit a
Files are included based on the file path given or, if none is given, the
<link linkend="ini.include-path">include_path</link> specified. If the file
isn't found in the <link linkend="ini.include-path">include_path</link>,
<function>include</function> will finally check in the calling script's own
directory before failing. The <function>include</function> construct will
emit a
<link linkend="errorfunc.constants.errorlevels.e-warning">warning</link> if
it cannot find a file; this is different behavior from
<function>require</function>, which will emit a
<link linkend="errorfunc.constants.errorlevels.e-error">fatal error</link>.
</simpara>
<simpara>