Added support for casts in constant expressions. (nielsdos)
Added the pipe (|>) operator. (crell)
Added support for `final` with constructor property promotion. (DanielEScherzer)
Added support for configuring the URI parser for the FTP/FTPS as well as the SSL/TLS stream wrappers as described in https://wiki.php.net/rfc/url_parsing_api#plugability. (kocsismate)
Added PHP_BUILD_PROVIDER constant. (timwolla)
Added PHP_BUILD_DATE constant. (cmb)
Added support for Closures and first class callables in constant expressions. (timwolla, edorian)
Add support for backtraces for fatal errors. (enorris)
Add clone-with support to the clone() function. (timwolla, edorian)
Add RFC 3986 and WHATWG URL compliant APIs for URL parsing and manipulation (kocsismate, timwolla)
Fixed AST printing for immediately invoked Closure. (Dmitrii Derepko)
Properly handle __debugInfo() returning an array reference. (nielsdos)
Properly handle reference return value from __toString(). (nielsdos)
Improved error message of UnhandledMatchError for zend.exception_string_param_max_len=0. (timwolla)
Fixed bug GH-15753 and GH-16198 (Bind traits before parent class). (ilutov)
Fixed bug GH-17951 (memory_limit is not always limited by max_memory_limit). (manuelm)
Fixed bug GH-20183 (Stale EG(opline_before_exception) pointer through eval). (ilutov)
Fixed bug GH-20113 (Missing new Foo(...) error in constant expressions). (ilutov)
Fixed bug GH-19844 (Don't bail when closing resources on shutdown). (ilutov)
Fixed bug GH-18373 (Don't substitute self/parent with anonymous class). (ilutov)
Fix support for non-userland stream notifiers. (timwolla)
Fixed bug GH-19305 (Operands may be being released during comparison). (Arnaud)
Fixed bug GH-19306 (Generator can be resumed while fetching next value from delegated Generator). (Arnaud)
Fixed bug GH-19326 (Calling Generator::throw() on a running generator with a non-Generator delegate crashes). (Arnaud)
Fix OSS-Fuzz #427814452 (pipe compilation fails with assert). (nielsdos, ilutov)
Fixed bug GH-16665 (\array and \callable should not be usable in class_alias). (nielsdos)
Use `clock_gettime_nsec_np()` for high resolution timer on macOS if available. (timwolla)
Make `clone()` a function. (timwolla, edorian)
Introduced the TAILCALL VM, enabled by default when compiling with Clang>=19 on x86_64 or aarch64. (Arnaud)
Enacted the follow-up phase of the "Path to Saner Increment/Decrement operators" RFC, meaning that incrementing non-numeric strings is now deprecated. (Girgias).
Various closure binding issues are now deprecated. (alexandre-daubois)
Constant redeclaration has been deprecated. (alexandre-daubois)
Marks the stack as non-executable on Haiku. (David Carlier)
Deriving $_SERVER['argc'] and $_SERVER['argv'] from the query string is now deprecated. (timwolla, nicolasgrekas)
Using null as an array offset or when calling array_key_exists() is now deprecated. (alexandre-daubois)
The disable_classes INI directive has been removed. (Girgias)
The locally predefined variable $http_response_header is deprecated. (Girgias)
Non-canonical cast names (boolean), (integer), (double), and (binary) have been deprecated. (Girgias)
The $exclude_disabled parameter of the get_defined_functions() function has been deprecated, as it no longer has any effect since PHP 8.0. (Girgias)
Terminating case statements with a semicolon instead of a colon has been deprecated. (theodorejb)
The backtick operator as an alias for shell_exec() has been deprecated. (timwolla)
Returning null from __debugInfo() has been deprecated. (DanielEScherzer)
Support #[\Override] on properties. (Jiří Pudil)
Destructing non-array values (other than NULL) using [] or list() now emits a warning. (Girgias)
Casting floats that are not representable as ints now emits a warning. (Girgias)
Casting NAN to other types now emits a warning. (Girgias)
Implement GH-15680 (Enhance zend_dump_op_array to properly represent non-printable characters in string literals). (nielsdos, WangYihang)
Fixed bug GH-17442 (Engine UAF with reference assign and dtor). (nielsdos)
Do not use RTLD_DEEPBIND if dlmopen is available. (Daniil Gentili)
The DATE_RFC7231 and DateTimeInterface::RFC7231 constants have been deprecated. (jorgsowa)
Fixed date_sunrise() and date_sunset() with partial-hour UTC offset. (ilutov)
Fixed GH-17159: "P" format for ::createFromFormat swallows string literals. (nielsdos)
The __wakeup() magic method of DateTimeInterface, DateTime, DateTimeImmutable, DateTimeZone, DateInterval, and DatePeriod has been deprecated in favour of the __unserialize() magic method. (Girgias)
Fix OSS-Fuzz #442954659 (Crash in exif_scan_HEIF_header). (nielsdos)
Various hardening fixes to HEIF parsing. (nielsdos)
FileInfo
The finfo_close() function has been deprecated. (timwolla)
The $context parameter of the finfo_buffer() function has been deprecated as it is ignored. (Girgias)
Upgrade to file 5.46. (nielsdos)
Change return type of finfo_close() to true. (timwolla)
Filter
Added support for configuring the URI parser for FILTER_VALIDATE_URL as described in https://wiki.php.net/rfc/url_parsing_api#plugability. (kocsismate)
Fixed bug GH-16993 (filter_var_array with FILTER_VALIDATE_INT|FILTER_NULL_ON_FAILURE should emit warning for invalid filter usage). (alexandre-daubois)
Fixed bug GH-11952 (Fix locale strings canonicalization for IntlDateFormatter and NumberFormatter). (alexandre-daubois)
Fixed bug GH-18566 ([intl] Weird numeric sort in Collator). (nielsdos)
Fix return value on failure for resourcebundle count handler. (Girgias)
Fixed bug GH-19307 (PGO builds of shared ext-intl are broken). (cmb)
Intl's internal error mechanism has been modernized so that it indicates more accurately which call site caused what error. Moreover, some ext/date exceptions have been wrapped inside a IntlException now. (Girgias)
The intl.error_level INI setting has been deprecated. (Girgias)
LDAP
Allow ldap_get_option to retrieve global option by allowing NULL for connection instance ($ldap). (Remi)
MBstring
Updated Unicode data tables to Unicode 17.0. (Yuya Hamada)
MySQLi
Fixed bugs GH-17900 and GH-8084 (calling mysqli::__construct twice). (nielsdos)
The mysqli_execute() alias function has been deprecated. (timwolla)
MySQLnd
Added mysqlnd.collect_memory_statistics to ini quick reference. (hauk92)
ODBC
Removed driver-specific build flags and support. (Calvin Buckley)
Remove ODBCVER and assume ODBC 3.5. (Calvin Buckley)
Fixed bug GH-19657 (Build fails on non-glibc/musl/freebsd/macos/win platforms). (Arnaud)
Fixed ZTS OPcache build on Cygwin. (cmb)
Fixed bug GH-19493 (JIT variable not stored before YIELD). (Arnaud)
OpenSSL
Added openssl.libctx INI that allows to select the OpenSSL library context type and convert various parts of the extension to use the custom libctx. (Jakub Zelenka)
Add $digest_algo parameter to openssl_public_encrypt() and openssl_private_decrypt() functions. (Jakub Zelenka)
Implement #81724 (openssl_cms_encrypt only allows specific ciphers). (Jakub Zelenka)
Implement #80495 (Enable to set padding in openssl_(sign|verify). (Jakub Zelenka)
Implement #47728 (openssl_pkcs7_sign ignores new openssl flags). (Jakub Zelenka)
Fixed bug GH-19994 (openssl_get_cipher_methods inconsistent with fetching). (Jakub Zelenka)
Fixed build when --with-openssl-legacy-provider set. (Jakub Zelenka)
Fixed bug GH-19369 (8.5 | Regression in openssl_sign() - support for alias algorithms appears to be broken). (Jakub Zelenka)
The $key_length parameter for openssl_pkey_derive() has been deprecated. (Girgias)
Output
Fixed calculation of aligned buffer size. (cmb)
PCNTL
Extend pcntl_waitid with rusage parameter. (vrza)
PCRE
Remove PCRE2_EXTRA_ALLOW_LOOKAROUND_BSK from pcre compile options. (mvorisek)
PDO
Fixed bug GH-20095 (Incorrect class name in deprecation message for PDO mixins). (timwolla)
Driver specific methods and constants in the PDO class are now deprecated. (Arnaud)
The "uri:" DSN scheme has been deprecated due to security concerns with DSNs coming from remote URIs. (timwolla)
PDO_ODBC
Fetch larger block sizes and better handle SQL_NO_TOTAL when calling SQLGetData. (Calvin Buckley, Saki Takamachi)
PDO_PGSQL
Added Iterable support for PDO::pgsqlCopyFromArray. (KentarouTakeda)
Implement GH-15387 Pdo\Pgsql::setAttribute(PDO::ATTR_PREFETCH, 0) or Pdo\Pgsql::prepare(…, [ PDO::ATTR_PREFETCH => 0 ]) make fetch() lazy instead of storing the whole result set in memory (Guillaume Outters)
Implement GH-17321: Add setAuthorizer to Pdo\Sqlite. (nielsdos)
PDO::sqliteCreateCollation now throws a TypeError if the callback has a wrong return type. (David Carlier)
Added Pdo_Sqlite::ATTR_BUSY_STATEMENT constant to check if a statement is currently executing. (David Carlier)
Added Pdo_Sqlite::ATTR_EXPLAIN_STATEMENT constant to set a statement in either EXPLAIN_MODE_PREPARED, EXPLAIN_MODE_EXPLAIN, EXPLAIN_MODE_EXPLAIN_QUERY_PLAN modes. (David Carlier)
Fix bug GH-13952 (sqlite PDO::quote silently corrupts strings with null bytes) by throwing on null bytes. (divinity76)
PGSQL
Added pg_close_stmt to close a prepared statement while allowing its name to be reused. (David Carlier)
Added Iterable support for pgsql_copy_from. (David Carlier)
pg_connect checks if connection_string contains any null byte, pg_close_stmt check if the statement contains any null byte. (David Carlier)
Added pg_service to get the connection current service identifier. (David Carlier)
Fix segfaults when attempting to fetch row into a non-instantiable class name. (Girgias, nielsdos)
Phar
Fix potential buffer length truncation due to usage of type int instead of type size_t. (Girgias)
Fixed memory leaks when verifying OpenSSL signature. (Girgias)
POSIX
Added POSIX_SC_OPEN_MAX constant to get the number of file descriptors a process can handle. (David Carlier)
posix_ttyname() sets last_error to EBADF on invalid file descriptors, posix_isatty() raises E_WARNING on invalid file descriptors, posix_fpathconf checks invalid file descriptors. (David Carlier)
posix_kill and posix_setpgid throws a ValueError on invalid process_id. (David Carlier)
posix_setpgid throws a ValueError on invalid process_group_id, posix_setrlimit throws a ValueError on invalid soft_limit and hard_limit arguments. (David Carlier)
Random
Moves from /dev/urandom usage to arc4random_buf on Haiku. (David Carlier)
Reflection
Added ReflectionConstant::getExtension() and ::getExtensionName(). (DanielEScherzer)
Fixed bug GH-15766 (ReflectionClass::__toString() should have better output for enums). (DanielEScherzer)
Fix GH-19691 (getModifierNames() not reporting asymmetric visibility). (DanielEScherzer)
Fixed bug GH-17927 (Reflection: have some indication of property hooks in `_property_string()`). (DanielEScherzer)
Fixed bug GH-19187 (ReflectionNamedType::getName() prints nullable type when retrieved from ReflectionProperty::getSettableType()). (ilutov)
Fixed bug GH-20217 (ReflectionClass::isIterable() incorrectly returns true for classes with property hooks). (alexandre-daubois)
SAPI
Fixed bug GH-18582 and #81451: http_response_code() does not override the status code generated by header(). (ilutov, Jakub Zelenka)
Session
session_start() throws a ValueError on option argument if not a hashmap or a TypeError if read_and_close value is not compatible with int. (David Carlier)
Added support for partitioned cookies. (nielsdos)
Fix RC violation of session SID constant deprecation attribute. (ilutov)
Fixed GH-19197: build broken with ZEND_STRL usage with memcpy when implemented as macro. (David Carlier)
SimpleXML
Fixed bug GH-12231 (SimpleXML xpath should warn when returning other return types than node lists). (nielsdos)
SNMP
snmpget, snmpset, snmp_get2, snmp_set2, snmp_get3, snmp_set3 and SNMP::__construct() throw an exception on invalid hostname, community timeout and retries arguments. (David Carlier)
SOAP
Added support for configuring the URI parser for SoapClient::__doRequest() as described in https://wiki.php.net/rfc/url_parsing_api#plugability. (kocsismate)
Implement request #55503 (Extend __getTypes to support enumerations). (nielsdos, datibbaw)
Implement request #61105 (Support Soap 1.2 SoapFault Reason Text lang attribute). (nielsdos)
Fixed bug #49169 (SoapServer calls wrong function, although "SOAP action" header is correct). (nielsdos)
Fix namespace handling of WSDL and XML schema in SOAP, fixing at least GH-16320 and bug #68576. (nielsdos)
Fixed bug #70951 (Segmentation fault on invalid WSDL cache). (nielsdos)
Fixed bug GH-19773 (SIGSEGV due to uninitialized soap_globals->lang_en). (nielsdos, KaseyJenkins)
Fixed bug GH-19226 (Segfault when spawning new thread in soap extension). (Florian Engelhardt)
Sockets
Added IPPROTO_ICMP/IPPROTO_ICMPV6 to create raw socket for ICMP usage. (David Carlier)
Added TCP_FUNCTION_BLK to change the TCP stack algorithm on FreeBSD. (David Carlier)
Added IP_BINDANY for a socket to bind to any address. (David Carlier)
Added SO_BUSY_POOL to reduce packets poll latency. (David Carlier)
Added UDP_SEGMENT support to optimise multiple large datagrams over UDP if the kernel and hardware supports it. (David Carlier)
Added SHUT_RD, SHUT_WR and SHUT_RDWR constants for socket_shutdown(). (David Carlier)
socket_set_option() catches possible overflow with SO_RCVTIMEO/SO_SNDTIMEO with timeout setting on windows. (David Carlier)
socket_create_listen() throws an exception on invalid port value. (David Carlier)
socket_bind() throws an exception on invalid port value. (David Carlier)
socket_sendto() throws an exception on invalid port value. (David Carlier)
socket_addrinfo_lookup throws an exception on invalid hints value types. (David Carlier)
socket_addrinfo_lookup throws an exception if any of the hints value overflows. (David Carlier)
socket_addrinfo_lookup throws an exception if one or more hints entries has an index as numeric. (David Carlier)
socket_set_option with the options MCAST_LEAVE_GROUP/MCAST_LEAVE_SOURCE_GROUP will throw an exception if its value is not a valid array/object. (David Carlier)
socket_getsockname/socket_create/socket_bind handled AF_PACKET family socket. (David Carlier)
socket_set_option for multicast context throws a ValueError when the socket family is not of AF_INET/AF_INET6 family. (David Carlier)
Sodium
Fix overall theoretical overflows on zend_string buffer allocations. (David Carlier/nielsdos)
Improve __unserialize() hardening for SplHeap/SplPriorityQueue. (nielsdos)
Deprecate ArrayObject and ArrayIterator with objects. (Girgias)
Unregistering all autoloaders by passing the spl_autoload_call() function as a callback argument to spl_autoload_unregister() has been deprecated. Instead if this is needed, one should iterate over the return value of spl_autoload_functions() and call spl_autoload_unregister() on each value. (Girgias)
The SplObjectStorage::contains(), SplObjectStorage::attach(), and SplObjectStorage::detach() methods have been deprecated in favour of SplObjectStorage::offsetExists(), SplObjectStorage::offsetSet(), and SplObjectStorage::offsetUnset() respectively. (Girgias)
Sqlite
Added Sqlite3Stmt::busy to check if a statement is still being executed. (David Carlier)
Added Sqlite3Stmt::explain to produce an explain query plan from the statement. (David Carlier)
Added Sqlite3Result::fetchAll to return all results at once from a query. (David Carlier)
Standard
Add HEIF/HEIC support to getimagesize. (Benstone Zhang)
Added support for partitioned cookies. (nielsdos)
Implement #71517 (Implement SVG support for getimagesize() and friends). (nielsdos)
Implement GH-19188: Add support for new INI mail.cr_lf_mode. (alexandre-daubois)
gzfile, gzopen and readgzfile, their "use_include_path" argument is now a boolean. (David Carlier)
Fixed bug GH-16883 (gzopen() does not use the default stream context when opening HTTP URLs). (nielsdos)
Implemented GH-17668 (zlib streams should support locking). (nielsdos)
Zip
Fixed missing zend_release_fcall_info_cache on the following methods ZipArchive::registerProgressCallback() and ZipArchive::registerCancelCallback() on failure. (David Carlier)