1
1
PHP NEWS
2
2
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
3
- ?? ??? ????, PHP 8.4.0beta1
3
+ ?? ??? ????, PHP 8.4.0beta2
4
+
5
+ - Core:
6
+ . Exiting a namespace now clears seen symbols. (ilutov)
7
+ . The exit (and die) language constructs now behave more like a function.
8
+ They can be passed liked callables, are affected by the strict_types
9
+ declare statement, and now perform the usual type coercions instead of
10
+ casting any non-integer value to a string.
11
+ As such, passing invalid types to exit/die may now result in a TypeError
12
+ being thrown. (Girgias)
13
+
14
+ - Hash:
15
+ . Fix GH-15384 (Build fails on Alpine / Musl for amd64). (timwolla)
16
+
17
+ - Standard:
18
+ . php_uname() now throws ValueErrors on invalid inputs. (Girgias)
19
+
20
+ 15 Aug 2024, PHP 8.4.0beta1
4
21
5
22
- Core:
6
23
. Updated build system scripts config.guess to 2024-07-27 and config.sub to
@@ -10,6 +27,12 @@ PHP NEWS
10
27
type). (ilutov)
11
28
. Fixed bug GH-15181 (Disabled output handler is flushed again). (cmb)
12
29
. Passing E_USER_ERROR to trigger_error() is now deprecated. (Girgias)
30
+ . Fixed bug GH-15292 (Dynamic AVX detection is broken for MSVC). (nielsdos)
31
+ . Using "_" as a class name is now deprecated. (Girgias)
32
+
33
+ - Curl:
34
+ . Added constants CURL_HTTP_VERSION_3 (libcurl 7.66) and CURL_HTTP_VERSION_3ONLY
35
+ (libcurl 7.88) as options for CURLOPT_HTTP_VERSION (Ayesh Karunaratne)
13
36
14
37
- Date:
15
38
. Constants SUNFUNCS_RET_TIMESTAMP, SUNFUNCS_RET_STRING, and SUNFUNCS_RET_DOUBLE
@@ -23,13 +46,30 @@ PHP NEWS
23
46
(html5_serializer)). (nielsdos)
24
47
. Deprecated DOM_PHP_ERR constant. (nielsdos)
25
48
. Removed DOMImplementation::getFeature(). (nielsdos)
49
+ . Fixed bug GH-15331 (Element::$substitutedNodeValue test failed). (nielsdos)
26
50
27
51
- Hash:
28
52
. Deprecated passing incorrect data types for options to ext/hash functions.
29
53
(nielsdos)
30
54
. Added SSE2 and SHA-NI implementation of SHA-256. (timwolla, Colin Percival,
31
55
Graham Percival)
32
56
57
+ - Mysqli:
58
+ . The mysqli_ping() function and mysqli::ping() method are now deprecated,
59
+ as the reconnect feature was removed in PHP 8.2. (Kamil Tekiela)
60
+ . The mysqli_kill() function and mysqli::kill() method are now deprecated.
61
+ If this functionality is needed a SQL "KILL" command can be used instead.
62
+ (Kamil Tekiela)
63
+ . The mysqli_refresh() function and mysqli::refresh() method are now deprecated.
64
+ If this functionality is needed a SQL "FLUSH" command can be used instead.
65
+ (Kamil Tekiela)
66
+ . Passing explicitly the $mode parameter to mysqli_store_result() has been
67
+ deprecated. As the MYSQLI_STORE_RESULT_COPY_DATA constant was only used in
68
+ conjunction with this function it has also been deprecated. (Girgias)
69
+
70
+ - PDO_Firebird:
71
+ . Support proper formatting of time zone types. (sim1984)
72
+
33
73
- PHPDBG:
34
74
. array out of bounds, stack overflow handled for segfault handler on windows.
35
75
(David Carlier)
@@ -44,13 +84,41 @@ PHP NEWS
44
84
. INI settings session.sid_length and session.sid_bits_per_character are now
45
85
deprecated. (timwolla)
46
86
87
+ - SOAP:
88
+ . Passing an int to SoapServer::addFunction() is now deprecated.
89
+ If all PHP functions need to be provided flatten the array returned by
90
+ get_defined_functions(). (Girgias)
91
+ . The SOAP_FUNCTIONS_ALL constant is now deprecated. (Girgias)
92
+
93
+ - Sockets:
94
+ . Added IP_PORTRANGE* constants for BSD systems to control ephemeral port
95
+ ranges. (David Carlier)
96
+ . Added SOCK_NONBLOCK/SOCK_CLOEXEC constants for socket_create and
97
+ socket_create_pair to apply O_NONBLOCK/O_CLOEXEC flags to the
98
+ newly created sockets. (David Carlier)
99
+
47
100
- SPL:
48
101
. The SplFixedArray::__wakeup() method has been deprecated as it implements
49
102
__serialize() and __unserialize() which need to be overwritten instead.
50
103
(TysonAndre)
104
+ . Passing a non-empty string for the $enclosure parameter of:
105
+ - SplFileObject::setCsvControl()
106
+ - SplFileObject::fputcsv()
107
+ - SplFileObject::fgetcsv()
108
+ is now deprecated. (Girgias)
51
109
52
110
- Standard:
53
111
. Unserializing the uppercase 'S' tag is now deprecated. (timwolla)
112
+ . Enables crc32 auxiliary detection on OpenBSD. (David Carlier)
113
+ . Passing a non-empty string for the $enclosure parameter of:
114
+ - fputcsv()
115
+ - fgetcsv()
116
+ - str_getcsv()
117
+ is now deprecated. (Girgias)
118
+ . The str_getcsv() function now throws ValueErrors when the $separator and
119
+ $enclosure arguments are not one byte long, or if the $escape is not one
120
+ byte long or the empty string. This aligns the behaviour to be identical
121
+ to that of fputcsv() and fgetcsv(). (Girgias)
54
122
55
123
- Streams:
56
124
. Implemented GH-15155 (Stream context is lost when custom stream wrapper is
@@ -75,6 +143,8 @@ PHP NEWS
75
143
. Added missing cstddef include for C++ builds. (cmb)
76
144
. Fixed bug GH-15108 (Segfault when destroying generator during shutdown).
77
145
(Arnaud)
146
+ . Fixed bug GH-15275 (Crash during GC of suspended generator delegate).
147
+ (Arnaud)
78
148
79
149
- BCMath:
80
150
. Adjust bcround()'s $mode parameter to only accept the RoundingMode
@@ -340,7 +410,7 @@ PHP NEWS
340
410
341
411
- PCNTL:
342
412
. Added pcntl_setns for Linux. (David Carlier)
343
- . Added pcntl_getaffinity/pcntl_setaffinity . (David Carlier)
413
+ . Added pcntl_getcpuaffinity/pcntl_setcpuaffinity . (David Carlier)
344
414
. Updated pcntl_get_signal_handler signal id upper limit to be
345
415
more in line with platforms limits. (David Carlier)
346
416
. Added pcntl_getcpu for Linux/FreeBSD/Solaris/Illumos. (David Carlier)
0 commit comments