-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Commit e3798c2
sapi/cli: Extend
* sapi/cli: Extend `--ini` to print INI settings changed from the builtin default
This is intended to make it easier to check whether or not a given INI setting
is changed from the default when building reproducers for a bugreport, without
forgetting any that might be relevant to the report.
As an example, running `sapi/cli/php -c /etc/php/8.3/cli/ --ini` on my Ubuntu
will now output:
Configuration File (php.ini) Path: /usr/local/lib
Loaded Configuration File: /etc/php/8.3/cli/php.ini
Scan for additional .ini files in: (none)
Additional .ini files parsed: (none)
Non-standard INI settings:
allow_url_include: "0" -> ""
auto_append_file: (none) -> ""
auto_prepend_file: (none) -> ""
display_errors: "1" -> ""
display_startup_errors: "1" -> ""
enable_dl: "1" -> ""
error_reporting: (none) -> "22527"
html_errors: "1" -> "0"
ignore_repeated_errors: "0" -> ""
ignore_repeated_source: "0" -> ""
implicit_flush: "0" -> "1"
log_errors: "0" -> "1"
mail.add_x_header: "0" -> ""
mail.mixed_lf_and_crlf: "0" -> ""
max_execution_time: "30" -> "0"
memory_limit: "128M" -> "-1"
request_order: (none) -> "GP"
session.cookie_httponly: "0" -> ""
session.gc_divisor: "100" -> "1000"
session.gc_probability: "1" -> "0"
session.sid_bits_per_character: "4" -> "5"
session.sid_length: "32" -> "26"
short_open_tag: "1" -> ""
unserialize_callback_func: (none) -> ""
user_dir: (none) -> ""
variables_order: "EGPCS" -> "GPCS"
zend.assertions: "1" -> "-1"
zend.exception_ignore_args: "0" -> "1"
zend.exception_string_param_max_len: "15" -> "0"
* Improve phrasing
Co-authored-by: Michael Voříšek <mvorisek@mvorisek.cz>
* NEWS/UPGRADING
---------
Co-authored-by: Michael Voříšek <mvorisek@mvorisek.cz>--ini
to print INI settings changed from the builtin default (#17459)1 parent 107bd08 commit e3798c2
File tree
5 files changed
+40
-0
lines changed- Zend
- sapi/cli
5 files changed
+40
-0
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2 | 2 |
| |
3 | 3 |
| |
4 | 4 |
| |
5 | + | ||
6 | + | ||
7 | + | ||
8 | + | ||
5 | 9 |
| |
6 | 10 |
| |
7 | 11 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
107 | 107 |
| |
108 | 108 |
| |
109 | 109 |
| |
110 | + | ||
110 | 111 |
| |
111 | 112 |
| |
112 | 113 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
225 | 225 |
| |
226 | 226 |
| |
227 | 227 |
| |
228 | + | ||
228 | 229 |
| |
229 | 230 |
| |
230 | 231 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
60 | 60 |
| |
61 | 61 |
| |
62 | 62 |
| |
63 | + | ||
63 | 64 |
| |
64 | 65 |
| |
65 | 66 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
588 | 588 |
| |
589 | 589 |
| |
590 | 590 |
| |
591 | + | ||
592 | + | ||
593 | + | ||
594 | + | ||
595 | + | ||
596 | + | ||
597 | + | ||
598 | + | ||
591 | 599 |
| |
592 | 600 |
| |
593 | 601 |
| |
| |||
1096 | 1104 |
| |
1097 | 1105 |
| |
1098 | 1106 |
| |
1107 | + | ||
1108 | + | ||
1109 | + | ||
1110 | + | ||
1111 | + | ||
1112 | + | ||
1113 | + | ||
1114 | + | ||
1115 | + | ||
1116 | + | ||
1117 | + | ||
1118 | + | ||
1119 | + | ||
1120 | + | ||
1121 | + | ||
1122 | + | ||
1123 | + | ||
1124 | + | ||
1125 | + | ||
1126 | + | ||
1127 | + | ||
1128 | + | ||
1129 | + | ||
1130 | + | ||
1131 | + | ||
1099 | 1132 |
| |
1100 | 1133 |
| |
1101 | 1134 |
| |
|
0 commit comments