From af9be65b129f12776167c4b4c2dea628377d8efe Mon Sep 17 00:00:00 2001 From: Mehdi Achour <didou@php.net> Date: Mon, 22 Jan 2007 01:20:23 +0000 Subject: [PATCH] Fix #38024: require also produces an E_WARNING git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@227809 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/control-structures.xml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/language/control-structures.xml b/language/control-structures.xml index 76ff65ec90..03fd81dfc3 100644 --- a/language/control-structures.xml +++ b/language/control-structures.xml @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.135 $ --> +<!-- $Revision: 1.136 $ --> <chapter id="language.control-structures"> <title>Control Structures</title> @@ -1223,9 +1223,8 @@ print_r(profile(TRUE)); </simpara> <simpara> <function>require</function> and <function>include</function> - are identical in every way except how they handle failure. - <function>include</function> produces a - <link linkend="internal.e-warning">Warning</link> while + are identical in every way except how they handle failure. They both + produce a <link linkend="internal.e-warning">Warning</link>, but <function>require</function> results in a <link linkend="internal.e-error"> Fatal Error</link>. In other words, don't hesitate to use <function>require</function> if you want a missing file to halt processing @@ -1291,8 +1290,8 @@ require ('somefile.txt'); <simpara> The documentation below also applies to <function>require</function>. The two constructs are identical in every way except how they handle - failure. <function>include</function> produces a - <link linkend="internal.e-warning">Warning</link> while <function>require</function> + failure. They both produce a + <link linkend="internal.e-warning">Warning</link>, but <function>require</function> results in a <link linkend="internal.e-error">Fatal Error</link>. In other words, use <function>require</function> if you want a missing file to halt processing of the page. <function>include</function> does