File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
language/control-structures Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 7
7
8
8
<para >
9
9
<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) .
14
14
</para >
15
15
<para >
16
16
See the <function >include</function > documentation for how this works.
You can’t perform that action at this time.
0 commit comments