File tree Expand file tree Collapse file tree 1 file changed +28
-4
lines changed Expand file tree Collapse file tree 1 file changed +28
-4
lines changed Original file line number Diff line number Diff line change 46
46
<refsect1 role =" returnvalues" >
47
47
&reftitle.returnvalues;
48
48
<para >
49
- Returns the value of the constant, or &null; if the constant is not
50
- defined.
49
+ Returns the value of the constant.
51
50
</para >
52
51
</refsect1 >
53
52
54
53
<refsect1 role =" errors" >
55
54
&reftitle.errors;
56
55
<para >
57
- An <constant >E_WARNING</constant > level error is generated if the
58
- constant is not defined.
56
+ An <classname >Error</classname > exception is thrown,
57
+ if the constant is not defined. Prior to PHP 8.0.0,
58
+ an <constant >E_WARNING</constant > level error was generated in that case.
59
59
</para >
60
60
</refsect1 >
61
61
62
+ <refsect1 role =" changelog" >
63
+ &reftitle.changelog;
64
+ <informaltable >
65
+ <tgroup cols =" 2" >
66
+ <thead >
67
+ <row >
68
+ <entry >&Version; </entry >
69
+ <entry >&Description; </entry >
70
+ </row >
71
+ </thead >
72
+ <tbody >
73
+ <row >
74
+ <entry >8.0.0</entry >
75
+ <entry >
76
+ If the constant is not defined, <function >constant</function > now throws an
77
+ <classname >Error</classname > exception; previously an <constant >E_WARNING</constant >
78
+ was generated, and &null; was returned.
79
+ </entry >
80
+ </row >
81
+ </tbody >
82
+ </tgroup >
83
+ </informaltable >
84
+ </refsect1 >
85
+
62
86
<refsect1 role =" examples" >
63
87
&reftitle.examples;
64
88
<para >
You can’t perform that action at this time.
0 commit comments