Skip to content

Commit 2ffca6d

Browse files
committed
Merge branch 'master' into internal_vm_interrupt
2 parents 69fff37 + d2810f5 commit 2ffca6d

File tree

243 files changed

+4563
-2980
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

243 files changed

+4563
-2980
lines changed

.github/actions/verify-generated-files/action.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ runs:
1212
Zend/zend_vm_gen.php
1313
ext/tokenizer/tokenizer_data_gen.php
1414
build/gen_stub.php -f --generate-optimizer-info --verify
15-
git add . -N && git diff --exit-code
15+
# Use the -a flag for a bug in git 2.46.0, which doesn't consider changed -diff files.
16+
git add . -N && git diff -a --exit-code

NEWS

Lines changed: 72 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,23 @@
11
PHP NEWS
22
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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
421

522
- Core:
623
. Updated build system scripts config.guess to 2024-07-27 and config.sub to
@@ -10,6 +27,12 @@ PHP NEWS
1027
type). (ilutov)
1128
. Fixed bug GH-15181 (Disabled output handler is flushed again). (cmb)
1229
. 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)
1336

1437
- Date:
1538
. Constants SUNFUNCS_RET_TIMESTAMP, SUNFUNCS_RET_STRING, and SUNFUNCS_RET_DOUBLE
@@ -23,13 +46,30 @@ PHP NEWS
2346
(html5_serializer)). (nielsdos)
2447
. Deprecated DOM_PHP_ERR constant. (nielsdos)
2548
. Removed DOMImplementation::getFeature(). (nielsdos)
49+
. Fixed bug GH-15331 (Element::$substitutedNodeValue test failed). (nielsdos)
2650

2751
- Hash:
2852
. Deprecated passing incorrect data types for options to ext/hash functions.
2953
(nielsdos)
3054
. Added SSE2 and SHA-NI implementation of SHA-256. (timwolla, Colin Percival,
3155
Graham Percival)
3256

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+
3373
- PHPDBG:
3474
. array out of bounds, stack overflow handled for segfault handler on windows.
3575
(David Carlier)
@@ -44,13 +84,41 @@ PHP NEWS
4484
. INI settings session.sid_length and session.sid_bits_per_character are now
4585
deprecated. (timwolla)
4686

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+
47100
- SPL:
48101
. The SplFixedArray::__wakeup() method has been deprecated as it implements
49102
__serialize() and __unserialize() which need to be overwritten instead.
50103
(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)
51109

52110
- Standard:
53111
. 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)
54122

55123
- Streams:
56124
. Implemented GH-15155 (Stream context is lost when custom stream wrapper is
@@ -75,6 +143,8 @@ PHP NEWS
75143
. Added missing cstddef include for C++ builds. (cmb)
76144
. Fixed bug GH-15108 (Segfault when destroying generator during shutdown).
77145
(Arnaud)
146+
. Fixed bug GH-15275 (Crash during GC of suspended generator delegate).
147+
(Arnaud)
78148

79149
- BCMath:
80150
. Adjust bcround()'s $mode parameter to only accept the RoundingMode
@@ -340,7 +410,7 @@ PHP NEWS
340410

341411
- PCNTL:
342412
. Added pcntl_setns for Linux. (David Carlier)
343-
. Added pcntl_getaffinity/pcntl_setaffinity. (David Carlier)
413+
. Added pcntl_getcpuaffinity/pcntl_setcpuaffinity. (David Carlier)
344414
. Updated pcntl_get_signal_handler signal id upper limit to be
345415
more in line with platforms limits. (David Carlier)
346416
. Added pcntl_getcpu for Linux/FreeBSD/Solaris/Illumos. (David Carlier)

0 commit comments

Comments
 (0)