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