@@ -19,14 +19,29 @@ PHP 8.6 UPGRADE NOTES
19191. Backward Incompatible Changes
2020========================================
2121
22+ - GD:
23+ . imagesetstyle(), imagefilter() and imagecrop() filter their
24+ array arguments types/values and raise a TypeError/ValueError
25+ accordingly.
26+
2227- PCRE:
2328 . preg_grep() now returns false instead of a partial array when a PCRE
2429 execution error occurs (e.g. malformed UTF-8 input with the /u modifier).
2530 This is consistent with other preg_* functions.
2631
32+ - PCNTL:
33+ . pcntl_alarm() now raises a ValueError if the seconds argument is
34+ lower than zero or greater than platform's UINT_MAX.
35+
2736- Phar:
28- . Invalid values now throw in Phar::mungServer() instead of being silently
29- ignored.
37+ . Phar::mungServer() now raises a ValueError when an invalid
38+ argument value is passed instead of being silently ignored.
39+
40+ - Posix:
41+ . posix_access() now raises a ValueError when an invalid $flags
42+ argument value is passed.
43+ . posix_mkfifo() now raises a ValueError when an invalid $permissions
44+ argument value is passed.
3045
3146- Session:
3247 . A ValueError is not thrown if $name is a string containing null bytes in
@@ -45,10 +60,21 @@ PHP 8.6 UPGRADE NOTES
4560 logic in their updateTimestamp() method.
4661
4762- Standard:
48- . Invalid mode values now throw in array_filter() instead of being silently
49- defaulted to 0.
5063 . Form feed (\f) is now added in the default trimmed characters of trim(),
5164 rtrim() and ltrim(). RFC: https://wiki.php.net/rfc/trim_form_feed
65+ . array_filter() now raises a ValueError when an invalid $mode
66+ argument value is passed.
67+ . array_change_key_case() now raises a ValueError when an invalid $case
68+ argument value is passed.
69+ . pathinfo() now raises a ValueError when an invalid $flag
70+ argument value is passed.
71+ . scandir() now raises a ValueError when an invalid $sorting_order
72+ argument value is passed.
73+
74+ - Zip:
75+ . ZipArchive::extractTo now raises a TypeError for the
76+ files argument if one or more of the entries is not
77+ a string.
5278
5379========================================
54802. New Features
@@ -103,11 +129,6 @@ PHP 8.6 UPGRADE NOTES
1031295. Changed Functions
104130========================================
105131
106- - GD:
107- . imagesetstyle(), imagefilter() and imagecrop() filter their
108- array arguments types/values and raise a TypeError/ValueError
109- accordingly.
110-
111132- mysqli:
112133 . The return structure of mysqli_get_charset() no longer contains
113134 the undocumented "comment" element. The value of "charsetnr" is
@@ -118,35 +139,14 @@ PHP 8.6 UPGRADE NOTES
118139 . Output of openssl_x509_parse() contains criticalExtensions listing all
119140 critical certificate extensions.
120141
121- - PCNTL:
122- . pcntl_alarm() now throws a ValueError if the seconds argument is
123- lower than zero or greater than platform's UINT_MAX.
124-
125142- Phar:
126143 . Phar::mungServer() now supports reference values.
127144
128- - Posix:
129- . posix_access() now throws a ValueError exception if the flags
130- argument is invalid.
131- . posix_mkfifo() now throws a ValueError exception if the permissions
132- argument is invalid.
133-
134145- Sockets:
135146 . socket_addrinfo_lookup() now has an additional optional argument $error
136147 when not null, and on failure, gives the error code (one of the EAI_*
137148 constants).
138149
139- - Standard:
140- . pathinfo() now raises a ValueError when an invalid $flag argument
141- value is passed.
142- . scandir() now raises a ValueError when an invalid $sorting_order
143- argument value is passed.
144-
145- - Zip:
146- . ZipArchive::extractTo now raises a TypeError for the
147- files argument if one or more of the entries is not
148- a string.
149-
150150========================================
1511516. New Functions
152152========================================
0 commit comments