reference/errorfunc/ini.xml
d4d5216e7a965ca194f6b1c9dee84cecab2674e5
...
...
@@ -19,19 +19,19 @@
19
19
<row>
20
20
<entry><link linkend="ini.error-reporting">error_reporting</link></entry>
21
21
<entry>NULL</entry>
22
-
<entry>PHP_INI_ALL</entry>
22
+
<entry><constant>INI_ALL</constant></entry>
23
23
<entry></entry>
24
24
</row>
25
25
<row>
26
26
<entry><link linkend="ini.display-errors">display_errors</link></entry>
27
27
<entry>"1"</entry>
28
-
<entry>PHP_INI_ALL</entry>
28
+
<entry><constant>INI_ALL</constant></entry>
29
29
<entry></entry>
30
30
</row>
31
31
<row>
32
32
<entry><link linkend="ini.display-startup-errors">display_startup_errors</link></entry>
33
33
<entry>"1"</entry>
34
-
<entry>PHP_INI_ALL</entry>
34
+
<entry><constant>INI_ALL</constant></entry>
35
35
<entry>
36
36
Prior to PHP 8.0.0, the default value was <literal>"0"</literal>.
37
37
</entry>
...
...
@@ -39,103 +39,109 @@
39
39
<row>
40
40
<entry><link linkend="ini.log-errors">log_errors</link></entry>
41
41
<entry>"0"</entry>
42
-
<entry>PHP_INI_ALL</entry>
42
+
<entry><constant>INI_ALL</constant></entry>
43
43
<entry></entry>
44
44
</row>
45
45
<row>
46
46
<entry><link linkend="ini.log-errors-max-len">log_errors_max_len</link></entry>
47
47
<entry>"1024"</entry>
48
-
<entry>PHP_INI_ALL</entry>
49
-
<entry></entry>
48
+
<entry><constant>INI_ALL</constant></entry>
49
+
<entry>Had no effect as of PHP 8.0.0, removed as of PHP 8.1.0.</entry>
50
50
</row>
51
51
<row>
52
52
<entry><link linkend="ini.ignore-repeated-errors">ignore_repeated_errors</link></entry>
53
53
<entry>"0"</entry>
54
-
<entry>PHP_INI_ALL</entry>
54
+
<entry><constant>INI_ALL</constant></entry>
55
55
<entry></entry>
56
56
</row>
57
57
<row>
58
58
<entry><link linkend="ini.ignore-repeated-source">ignore_repeated_source</link></entry>
59
59
<entry>"0"</entry>
60
-
<entry>PHP_INI_ALL</entry>
60
+
<entry><constant>INI_ALL</constant></entry>
61
61
<entry></entry>
62
62
</row>
63
63
<row>
64
64
<entry><link linkend="ini.report-memleaks">report_memleaks</link></entry>
65
65
<entry>"1"</entry>
66
-
<entry>PHP_INI_ALL</entry>
66
+
<entry><constant>INI_ALL</constant></entry>
67
67
<entry></entry>
68
68
</row>
69
69
<row>
70
70
<entry><link linkend="ini.track-errors">track_errors</link></entry>
71
71
<entry>"0"</entry>
72
-
<entry>PHP_INI_ALL</entry>
72
+
<entry><constant>INI_ALL</constant></entry>
73
73
<entry>Deprecated as of PHP 7.2.0, removed as of PHP 8.0.0.</entry>
74
74
</row>
75
75
<row>
76
76
<entry><link linkend="ini.html-errors">html_errors</link></entry>
77
77
<entry>"1"</entry>
78
-
<entry>PHP_INI_ALL</entry>
78
+
<entry><constant>INI_ALL</constant></entry>
79
79
<entry></entry>
80
80
</row>
81
81
<row>
82
82
<entry><link linkend="ini.xmlrpc-errors">xmlrpc_errors</link></entry>
83
83
<entry>"0"</entry>
84
-
<entry>PHP_INI_SYSTEM</entry>
84
+
<entry><constant>INI_SYSTEM</constant></entry>
85
85
<entry></entry>
86
86
</row>
87
87
<row>
88
88
<entry><link linkend="ini.xmlrpc-error-number">xmlrpc_error_number</link></entry>
89
89
<entry>"0"</entry>
90
-
<entry>PHP_INI_ALL</entry>
90
+
<entry><constant>INI_ALL</constant></entry>
91
91
<entry></entry>
92
92
</row>
93
93
<row>
94
94
<entry><link linkend="ini.docref-root">docref_root</link></entry>
95
95
<entry>""</entry>
96
-
<entry>PHP_INI_ALL</entry>
96
+
<entry><constant>INI_ALL</constant></entry>
97
97
<entry></entry>
98
98
</row>
99
99
<row>
100
100
<entry><link linkend="ini.docref-ext">docref_ext</link></entry>
101
101
<entry>""</entry>
102
-
<entry>PHP_INI_ALL</entry>
102
+
<entry><constant>INI_ALL</constant></entry>
103
103
<entry></entry>
104
104
</row>
105
105
<row>
106
106
<entry><link linkend="ini.error-prepend-string">error_prepend_string</link></entry>
107
107
<entry>NULL</entry>
108
-
<entry>PHP_INI_ALL</entry>
108
+
<entry><constant>INI_ALL</constant></entry>
109
109
<entry></entry>
110
110
</row>
111
111
<row>
112
112
<entry><link linkend="ini.error-append-string">error_append_string</link></entry>
113
113
<entry>NULL</entry>
114
-
<entry>PHP_INI_ALL</entry>
114
+
<entry><constant>INI_ALL</constant></entry>
115
115
<entry></entry>
116
116
</row>
117
117
<row>
118
118
<entry><link linkend="ini.error-log">error_log</link></entry>
119
119
<entry>NULL</entry>
120
-
<entry>PHP_INI_ALL</entry>
120
+
<entry><constant>INI_ALL</constant></entry>
121
121
<entry></entry>
122
122
</row>
123
123
<row>
124
+
<entry><link linkend="ini.error-log-mode">error_log_mode</link></entry>
125
+
<entry>0o644</entry>
126
+
<entry><constant>INI_ALL</constant></entry>
127
+
<entry>Available as of PHP 8.2.0</entry>
128
+
</row>
129
+
<row>
124
130
<entry><link linkend="ini.syslog.facility">syslog.facility</link></entry>
125
131
<entry>"LOG_USER"</entry>
126
-
<entry>PHP_INI_SYSTEM</entry>
132
+
<entry><constant>INI_SYSTEM</constant></entry>
127
133
<entry>Available as of PHP 7.3.0.</entry>
128
134
</row>
129
135
<row>
130
136
<entry><link linkend="ini.syslog.filter">syslog.filter</link></entry>
131
137
<entry>"no-ctrl"</entry>
132
-
<entry>PHP_INI_ALL</entry>
138
+
<entry><constant>INI_ALL</constant></entry>
133
139
<entry>Available as of PHP 7.3.0.</entry>
134
140
</row>
135
141
<row>
136
142
<entry><link linkend="ini.syslog.ident">syslog.ident</link></entry>
137
143
<entry>"php"</entry>
138
-
<entry>PHP_INI_SYSTEM</entry>
144
+
<entry><constant>INI_SYSTEM</constant></entry>
139
145
<entry>Available as of PHP 7.3.0.</entry>
140
146
</row>
141
147
</tbody>
...
...
@@ -164,27 +170,18 @@
164
170
<link linkend="ini.display-errors">display_errors</link> directive.
165
171
</para>
166
172
<para>
167
-
The default value
168
-
is <constant>E_ALL</constant> &amp;
169
-
~<constant>E_NOTICE</constant> &amp;
170
-
~<constant>E_STRICT</constant> &amp;
171
-
~<constant>E_DEPRECATED</constant>. This setting does not
172
-
show <constant>E_NOTICE</constant>, <constant>E_STRICT</constant>
173
-
and <constant>E_DEPRECATED</constant> level errors. You may want
174
-
to show them during development.
173
+
The default value is <constant>E_ALL</constant>.
174
+
</para>
175
+
<para>
176
+
Prior to PHP 8.0.0, the default value was:
177
+
<userinput><constant>E_ALL</constant> &amp;
178
+
~<constant>E_NOTICE</constant> &amp;
179
+
~<constant>E_STRICT</constant> &amp;
180
+
~<constant>E_DEPRECATED</constant></userinput>.
181
+
This means diagnostics of level <constant>E_NOTICE</constant>,
182
+
<constant>E_STRICT</constant> and <constant>E_DEPRECATED</constant>
183
+
were not shown.
175
184
</para>
176
-
<note>
177
-
<para>Enabling <constant>E_NOTICE</constant> during development has
178
-
some benefits. For debugging purposes: NOTICE messages will warn you
179
-
about possible bugs in your code. For example, use of unassigned values
180
-
is warned. It is extremely useful to find typos and
181
-
to save time for debugging. NOTICE messages will warn you about bad style.
182
-
For example, <literal>$arr[item]</literal> is better to be written as
183
-
<literal>$arr['item']</literal> since PHP tries to treat
184
-
<literal>"item"</literal> as constant. If it is not a constant, PHP assumes
185
-
it is a string index for the array.
186
-
</para>
187
-
</note>
188
185
<note>
189
186
<title>PHP Constants outside of PHP</title>
190
187
<para>
...
...
@@ -213,8 +210,7 @@
213
210
</para>
214
211
<para>
215
212
Value <literal>"stderr"</literal> sends the errors to <literal>stderr</literal>
216
-
instead of <literal>stdout</literal>. The value is available as of PHP
217
-
5.2.4. In earlier versions, this directive was of type <type>bool</type>.
213
+
instead of <literal>stdout</literal>.
218
214
</para>
219
215
<note>
220
216
<para>
...
...
@@ -451,6 +447,8 @@
451
447
<listitem>
452
448
<para>
453
449
String to output before an error message.
450
+
Only used when the error message is displayed on screen. The main purpose
451
+
is to be able to prepend additional HTML markup to the error message.
454
452
</para>
455
453
</listitem>
456
454
</varlistentry>
...
...
@@ -463,6 +461,8 @@
463
461
<listitem>
464
462
<para>
465
463
String to output after an error message.
464
+
Only used when the error message is displayed on screen. The main purpose
465
+
is to be able to append additional HTML markup to the error message.
466
466
</para>
467
467
</listitem>
468
468
</varlistentry>
...
...
@@ -488,6 +488,19 @@
488
488
</listitem>
489
489
</varlistentry>
490
490

491
+
<varlistentry xml:id="ini.error-log-mode">
492
+
<term>
493
+
<parameter>error_log_mode</parameter>
494
+
<type>int</type>
495
+
</term>
496
+
<listitem>
497
+
<para>
498
+
File mode for the file described set in
499
+
<link linkend="ini.error-log">error_log</link>.
500
+
</para>
501
+
</listitem>
502
+
</varlistentry>
503
+

491
504
<varlistentry xml:id="ini.syslog.facility">
492
505
<term>
493
506
<parameter>syslog.facility</parameter>
494
507