mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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:
parent
dd144da0e1
commit
dc9887a2ca
1 changed files with 9 additions and 6 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue