Skip to content

Commit 30c0106

Browse files
Update error info for require (#4362)
1 parent a8b6f4d commit 30c0106

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

language/control-structures/require.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77

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

0 commit comments

Comments
 (0)