From dc9887a2ca1a585d8ad4d9d8ad9bb249a95e6c99 Mon Sep 17 00:00:00 2001 From: Adam Harvey Date: Wed, 15 Sep 2010 06:54:32 +0000 Subject: [PATCH] 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 --- language/control-structures/include.xml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/language/control-structures/include.xml b/language/control-structures/include.xml index 9a96bb53be..d7d60a96bf 100644 --- a/language/control-structures/include.xml +++ b/language/control-structures/include.xml @@ -11,12 +11,15 @@ The documentation below also applies to require. - Files are included based on the file path given or, if none is given, the - include_path specified. The - include construct will emit a - warning if it - cannot find a file; this is different behavior from require, - which will emit a + Files are included based on the file path given or, if none is given, the + include_path specified. If the file + isn't found in the include_path, + include will finally check in the calling script's own + directory before failing. The include construct will + emit a + warning if + it cannot find a file; this is different behavior from + require, which will emit a fatal error.