From af9be65b129f12776167c4b4c2dea628377d8efe Mon Sep 17 00:00:00 2001 From: Mehdi Achour 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 @@ - + Control Structures @@ -1223,9 +1223,8 @@ print_r(profile(TRUE)); require and include - are identical in every way except how they handle failure. - include produces a - Warning while + are identical in every way except how they handle failure. They both + produce a Warning, but require results in a Fatal Error. In other words, don't hesitate to use require if you want a missing file to halt processing @@ -1291,8 +1290,8 @@ require ('somefile.txt'); The documentation below also applies to require. The two constructs are identical in every way except how they handle - failure. include produces a - Warning while require + failure. They both produce a + Warning, but require results in a Fatal Error. In other words, use require if you want a missing file to halt processing of the page. include does