Skip to content

Commit

Permalink
Update error info for require (#4362)
Browse files Browse the repository at this point in the history
  • Loading branch information
kamil-tekiela authored Jan 14, 2025
1 parent a8b6f4d commit 30c0106
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions language/control-structures/require.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@

<para>
<literal>require</literal> is identical to <function>include</function>
except upon failure it will also produce a fatal <constant>E_COMPILE_ERROR</constant>
level error. In other words, it will halt the script whereas
<function>include</function> only emits a warning
(<constant>E_WARNING</constant>) which allows the script to continue.
except upon failure it will also produce an <classname>Error</classname>
exception (<constant>E_COMPILE_ERROR</constant> level error prior to
PHP 8.0.0) whereas <function>include</function> will only produce a warning
(<constant>E_WARNING</constant> level error).
</para>
<para>
See the <function>include</function> documentation for how this works.
Expand Down

0 comments on commit 30c0106

Please sign in to comment.