Fix potential ABI incompatibility when adding fields in patches by adding padding to globals.
Fix function and constant imports in compile_to_ast and add support for grouping.
Fixed bug GH-24668 (zend_set_local_var() leaks the previous value of an existing CV).
Fixed unmapping of an unrelated range when the aligned chunk mmap fails (Marti2203).
Fixed bug GH-25023 (ZEND_CONTAINER_OF() fails to compile with -std=c11).
Fixed AST printing dropping final on class constants and properties, and abstract on properties.
Fixed AST export of readonly anonymous classes dropping the readonly modifier.
Fixed memory leak of a duplicate named argument in new in initializer.
Fixed bug GH-25061 ($x = $x - 1 on null is optimized to PRE_DEC).
Fixed first-class callables to static methods in trait constant expressions resolving to the method of the first using class and bypassing visibility checks.
Fixed bug GH-24184 (System ID not being reinitialized after an Apache graceful restart, potentially causing incompatible OPcache file cache entries to be reused).
Fixed memory leak when an exception already contains the pending exception in its previous chain.
Fixed bug GH-23979 (Nullsafe operator must not flush delayed oplines of an enclosing function).
Fixed memory manager keeping a block reallocated to exactly the size of the next smaller bin in its larger bin, which efree_size() then freed into the wrong one.
Fix throwing behaviour with recursive arrays in VM.
Fixed skipped catch block when switching fibers during exception unwinding (Nicolas Grekas)
Fix escape analysis for objects implementing ArrayAccess.
Fixed GH-23921 (Fibers start with error_reporting = 0 when the error_reporting INI directive is not set).
Deprecated using "let" or "is" as the name of a class, function, or constant, and as an alias in class_alias() and use declarations.
Deprecated using "_" as a constant name and as an alias for a class or constant in use declarations.
Fixed incorrect internal pointer and foreach iterator positions when compacting arrays with holes.
Fix handling of references to typed properties during unserialization of various internal classes.
Fixed bug GH-23752 (Use scoped diagnostic suppression for the global register declarations so the caller's -Wvolatile-register-var state is restored).
Fixed OSS-Fuzz #538730793 (Assertion failure when returning by-ref from closure invoke).
Fixed bug GH-9670 (List -C and -q in the CLI help).
Fixed bug GH-23242 (PHP development server does not support Expect 100-continue flow control).
COM:
Fixed bug GH-25008 (com_event_sink() and com_print_typeinfo() crash resolving an event source with no loaded typelib).
Curl:
Fix use-after-free of CURLOPT_STDERR stream on cloned curl handle.
Fix UAF on clone due to callback data pointer mismatch.
Set content length using CURLOPT_POSTFIELDSIZE_LARGE instead of CURLOPT_POSTFIELDSIZE. This makes it possible to post strings larger than 2GB on some platforms, e.g. Windows.
Improved cURL option validation errors to include the option name.
Raise a value error when the callback registered with CURLOPT_READFUNCTION returns an unexpected long.
Fix bug GH-16513 (curl: exceptions in callbacks do not abort the request).
Added CURLOPT_SEEKFUNCTION and the CURL_SEEKFUNC_OK, CURL_SEEKFUNC_FAIL and CURL_SEEKFUNC_CANTSEEK constants, letting libcurl rewind a streamed request body to resend it on a redirect, multi-pass authentication or a retried reused connection.
Add support for CURLINFO_SIZE_DELIVERED (libcurl >= 8.20.0).
Fixed bug GH-24350 (MINIT reads a stale external tz database after an in-process module restart).
Added Time\Duration.
Fixed bug GH-11368 (idate() doesn't work for the year -1).
Fixed GHSA-gr4f-wgx5-jpfv (Timezone cache use-after-free can lead to remote code execution). (CVE-2026-129496)
DBA:
Fixed bug GH-24641 (ndbm backend never checks dbm_open() return value, NULL deref on first use after a failed open).
DOM:
Fixed a use-after-free when reflected attribute setters replace an attribute whose child still has a live wrapper.
Fix error paths in dom_xml_serializing_a_document_node().
Fixed reference cycles through DOMXPath and XSLTProcessor php:function callback arguments and return values not being collectable.
Fixed a typo in the DOMException message for INUSE_ATTRIBUTE_ERR.
Fixed bug GH-22624 (use-after-free via DOMNameSpaceNode after DOMDocument::xinclude()).
Fixed Dom\DtdNamedNodeMap integer dimension access so negative indexes return NULL and indexes outside the int range throw ValueError instead of returning the first entity or notation.
Fixed bug GH-22623 (use after free with namespace nodes from XSLTProcessor::registerFunctions())/ (David Carlier)
Fixed bug GH-22554 (use-after-free with XPath callback returning a node from a foreign document).
Removed LIBXML_XINCLUDE from valid options for XMLDocument, as it was a no-op.
Readonly DOM properties are now declared with asymmetric visibility (public private(set)). ReflectionProperty::isWritable() reports them correctly, and external writes raise "Cannot modify private(set) property" instead of the previous readonly modification error.
Fixed Dom\Notation nodes missing tree connection, so that ownerDocument, parentNode, isConnected and baseURI now return correct values, and textContent returns NULL per the DOM specification.
Fixed GHSA-x8r7-mg3g-74hg (Double free during DOM XML serialization). (CVE-2026-129501)
Embed:
Made php-cli functionality available in embed builds.
Exif:
Added support for reading EXIF metadata from WebP images (GH-19904).
FFI:
Fixed bug GH-24582 (Memory leaks in ext/ffi parser when finalize_type() bails out).
Fileinfo:
Fixed bug GH-24289 (finfo::file() reports the wrong argument number for an invalid $filename).
Upgrade to file 5.48.
Fixed bug GH-20679 (finfo_file() doesn't work on remote resources).
Added optional $definitely_prime output parameter to gmp_prevprime().
Added gmp_powm_sec().
Added gmp_prevprime().
Fixed GMP power and shift operators to reject GMP right operands outside the unsigned long range instead of silently truncating them.
Fixed GMP integer string parsing to reject strings containing NUL bytes instead of silently truncating them.
Fixed GMP error messages that referenced outdated parameter names.
Fixed bug GH-22549 (Assertion failure / UB on a compound GMP power or shift assignment with a negative exponent).
gmp_fact() reject values larger than unsigned long.
gmp_pow/binomial/root/rootrem and shift/pow operators reject values larger than unsigned long.
GMP exponentiation and shift operators now emit a deprecation warning when converting a float right operand to int loses precision.
Hash:
Fix GOST and Snefru digests of 512 MiB or more.
Fixed hash_file() reporting argument #1 ($algo) instead of argument #2 ($filename) when the filename contains null bytes.
Upgrade xxHash to 0.8.2.
Intl:
Fixed IntlDateFormatter parse functions truncating an $offset below INT_MIN.
Fixed Collator::sortWithSortKeys() allocating fixed 2MiB buffers regardless of array size.
Fixed Spoofchecker methods not recording the ICU error code when an ICU call fails.
Fixed idn_to_ascii() and idn_to_utf8() reporting argument #2 ($flags) instead of argument #3 ($variant) for an invalid IDNA variant, and the domain length error message printing a literal "d" instead of the limit.
Added static methods IntlDatePatternGenerator::getSkeleton() and IntlDatePatternGenerator::getBaseSkeleton().
Fixed Collator::sort(), collator_sort(), Collator::asort(), and collator_asort() to report UTF-8/UTF-16 conversion errors through the intl error handler instead of emitting a warning and continuing with an empty string.
Implemented GH-20255 (Add a predefined calendar constant in IntlDateFormatter for the proleptic gregorian calendar).
Added SpoofChecker::areBidiConfusable().
Added SpoofChecker::getBidiSkeleton().
Added SpoofChecker::getSkeleton().
Fixed grammatical issues in Normalizer invalid form and IntlCalendar time zone offset error messages.
Removed the dependency on the ICU IO library.
Fixed NumberFormatter::parse() and NumberFormatter::parseCurrency() to reject offset values outside the 32-bit range instead of silently truncating them.
IntlDateFormatter::parse()/datefmt_parse() and IntlDateFormatter::localtime()/datefmt_localtime() now raise TypeError when the offset argument is not of type int.
Fixed malformed ResourceBundle::get() error message when fallback is disabled.
Added Locale::getDisplayKeyword() and Locale::getDisplayKeywordValue(), with the alias of locale_get_display_keyword() and locale_get_display_keyword_value() respectively.
Added IntlNumberRangeFormatter class to format an interval of two numbers with a given skeleton, locale, collapse type and identity fallback.
Added grapheme_strrev (Yuya Hamada)
Passing a non-stringable object as a time zone to Intl time zone argument handling now raises TypeError instead of Error.
IntlBreakIterator::getLocale() now raises ValueError for invalid locale types.
Fixed MessageFormatter::parse() and parseMessage() returning PHP_INT_MIN as float rather than int on 64-bit platforms.
Fixed UConverter::transcode() silently truncating from_subst and to_subst option lengths greater than 127 bytes.
Fixed IntlIterator::current() to return NULL instead of an undefined value when the iterator is not positioned on a valid element.
IO:
Added new polling API.
JSON:
Fixed json_encode() leaving the recursion guard set on objects with hooked properties after running out of memory while escaping a property name.
Fixed json_encode() silently narrowing $depth values outside the int range, which wrapped to an unrelated depth.
Fixed json_encode() continuing to encode after an array or object key failed to encode.
Report unterminated JSON strings as syntax errors.
Improve performance error position tracking during JSON decoding.
Enriched JSON last error / exception message with error location.
LDAP:
Fix crash in ldap_exop_sync() when $response_data is omitted.
MBString:
Fixed negative mbstring.regex_stack_limit and mbstring.regex_retry_limit on 32bit platforms.
Fixed bug GH-23958 (truncated encoding names resolving to full names).
Fixed out-of-bounds read in php_mb_rfc1867_getword() on a multibyte lead byte at the end of a multipart field name.
Updated Unicode data tables to Unicode 18.0 (Yuya Hamada)
Passing objects to mb_convert_variables() is now deprecated.
ini_set() with mbstring.detect_order changes the order of mb_detect_order as intended, since mbstring.detect_order is an INI_ALL setting.
Added GB18030-2022 to default encoding list for zh-CN.
mbregex has been deprecated.
MySQLi:
The mysqli_get_charset() function and mysqli::get_charset() method are now deprecated.
The mysqli_stmt_init() function and mysqli::stmt_init() method are now deprecated.
Instantiation of mysqli_stmt without providing the $query parameter is now deprecated.
Added mysqli_quote_string() and mysqli::quote_string().
MySQLnd:
Fixed bug GH-24609 (OK packets without an info message rejected on x32 builds).
Fixed bug GH-24293 (Segfault on connect with an empty password to a MariaDB PAM account).
ODBC:
Fixed bug GH-25036 (odbc_prepare() corrupts the heap when the driver cannot describe a parameter).
odbc_error() and odbc_errormsg() now also report SQLColAttribute failures.
Opcache:
Fixed bug GH-24397 (Assertion failure when dumping JIT IR).
Fixed tracing JIT returning a wrapped integer instead of a float on integer overflow after an integer was compared with a float or numeric-string literal.
Fixed use-after-free in JIT ASSIGN_DIM_OP when concatenating into an empty array element.
Fixed bug GH-24396 (Assertion failure in zend_jit_def_reg() "reg forwarding" with chained Pi nodes).
Fixed JIT treating an array as packed after a string key write turned it into a hash.
Fixed bug GH-24436 (Tracing JIT: keep the SEND_VAL type guard after assigning to a reference).
Fixed bug GH-24745 (File cache loses attributes on constants on 32-bit builds).
Fixed bug GH-17733 (System entropy does not take into account function order, resulting in wrong functions possibly called in different configurations).
Fixed bug GH-24438 (Preserve indirect types in JIT side traces).
Fixed bug GH-24577 (CE-cache flag on interned class name visible before map_ptr offset).
Fixed tracing JIT losing register-allocated CVs when an interrupt is handled at the end of a loop trace.
Fixed bug GH-24675 (function with >~1.7 MB of machine code corrupts JIT buffer accounting).
Call orig_post_shutdown_cb().
Fixed JIT segfault on switch over a string reference holding a non-string value.
Fixed AArch64 JIT encoding of invalid logical immediates.
Fixed JIT crashes when handling a VM interrupt with a stale saved opline in the tailcall VM.
Fixed function JIT misinterpreting VM-enter results after an interrupt callback in the CALL and TAILCALL VMs.
Fixed unsound shift_left_overflows range when shift wraps.
Fixed bug GH-23572 (Tracing JIT calls the wrong method for self::/parent:: static calls in trait methods shared by several classes).
Fixed bug GH-23626 (orphaned temporaries cause leaks and assertions).
Fix preloaded functions JIT-compiled on load being overwritten after restart.
Fix opcache.interned_strings_buffer being 0 in threads started later (ZTS).
Fixed potential infinite recursion/hang (HYBRID/TAILCALL respectively) when zend_interrupt_function resets EG(vm_interrupt).
Fix JIT losing the called scope of self::/parent:: calls in included files.
Fixed preloaded functions not JIT-compiled again after OPcache restart.
Fixed bug GH-24988 (Incorrect opcode range check causes bugs with exceptions in function JIT).
Fix opcache phar check.
Fixed bug GH-17626 (JIT corrupts an opline handler when blacklisting a root trace at the opcache.jit_max_root_traces limit, causing spurious "Too few arguments" errors and crashes).
Fix type inference of ADD_ARRAY_UNPACK with integer keys.
Fixed pdo_raise_impl_error() emitting a warning under ERRMODE_SILENT.
PDO_DBLIB:
Added dblib_handle_check_liveness handler.
PDO_Firebird:
Fixed bug GH-25006 (getColumnMeta() reads out of bounds for an out-of-range column index).
PDO_PGSQL:
Fixed bug GH-24461 (DISCARD ALL on persistent connection cleanup drops PgBouncer's prepared statements).
Fixed a use-after-free when a persistent connection receives a notice after the request that called Pdo\Pgsql::setNoticeCallback() has ended.
Fixed crash when a persistent connection fails.
Added Pdo\Pgsql::ATTR_CHUNK_SIZE to fetch a result set in chunks of the given number of rows.
Clear session-local state disconnect-equivalent processing.
PDO_SQLite:
Fixed bug GH-24990 (Statement unusable after a failed execute()).
PGSQL:
Fixed the pg_insert(), pg_update() and pg_delete() flag error messages, which did not name the set of flags actually accepted.
Fixed the class name casing of pg_close_stmt()'s connection parameter.
Enabled 64 bits support for pg_lo_truncate()/pg_lo_tell() if the server supports it.
pg_fetch_object() now surfaces non-instantiable class errors before fetching, resolves the constructor via the get_constructor handler, and reports the empty-constructor ValueError on the $constructor_args argument.
Phar:
Fixed bug GH-25093 (Phar::webPhar() redirect reads past the request URI).
Fixed bug GH-25089 (Heap buffer over-read via crafted alias size in zip-based phar).
Fixed bug GH-8469 (Phar::decompressFiles() and Phar::compressFiles() retain compressed contents after changing compression).
Fixed bug GH-24740 (Oversized tar metadata exhausts the memory limit).
Fixed bug GH-25090 (UAF in phar rename() of an entry with metadata).
Fixed bug GH-25091 (UAF in phar rename() when source and destination are equal).
Fixed bug GH-25092 (Double free in Phar::copy() on link and mounted entries).
Fixed bug GH-24531 (Crash when modifying a zip-based phar whose file was renamed).
Fixed Phar::buildFromIterator() accepting a negative getMTime() on 32bit platforms.
Fixed Phar archives being automatically detected when ".phar" only occurs in a directory name or is not a filename extension in an included file's path.
Fixed grammatical issues and outdated terminology in Phar error messages.
Support reference values in Phar::mungServer().
Invalid values now throw in Phar::mungServer() instead of being silently ignored.
Fixed a bypass of the magic ".phar" directory protection in Phar::addEmptyDir() for paths starting with "/.phar".
Phar::addEmptyDir() now allows non-magic directory names that merely share the ".phar" prefix.
Support overridden methods in SplFileInfo for getMTime() and getPathname() when building a phar.
Mark Phar::buildFromIterator() base directory argument as a path.
Fixed GHSA-68fq-fh7h-f8gr (PHAR OpenSSL signature bypass via algorithm downgrade). (CVE-2026-128090)
PHPDBG:
Fix wrong command names.
Fixed GH-22480 (Use-after-free when re-watching an already-watched variable).
POSIX:
Fixed posix_setrlimit() rejecting POSIX_RLIMIT_INFINITY on Solaris.
Readline:
Fixed a crash in readline_info() when completion_append_character contains a non-ASCII byte.
Fixed class constant completion in the interactive shell.
Reflection:
Added ReflectionAttribute::inNamespace(), ReflectionAttribute::getNamespaceName(), and ReflectionAttribute::getShortName().
Added ReflectionConstant::inNamespace().
Added ReflectionProperty::isReadable() and ::isWritable().
Fixed bug GH-21362 (ReflectionMethod::invoke/invokeArgs() did not verify Closure instance identity for Closure::__invoke()).
Added ReflectionParameter::getDocComment().
SAPI:
Fixed infinite loop in sapi_header_op() for headers of 4 GiB or more.
Session:
Validate whole session ID instead of stopping at the first NUL byte.
Fixed session_write_close() keeping the save handler open when the session data cannot be encoded.
Fixed bug GH-23056 (missing handler name in session write warning).
SessionHandler::validateId() is now implemented, so session.use_strict_mode applies to the built-in handler.
It is now deprecated to pass an object that does not implement the create_sid() and validateId() methods.
A deprecation is now emitted when implementing SessionHandlerInterface on a class which doesn't define the create_sid() or validateId() methods, as those will be moved from SessionUpdateTimestampHandlerInterface and SessionIdInterface to SessionHandlerInterface.
Fixed bug 71162 (updateTimestamp never called when session data is empty).
Null bytes in session.cookie_path, session.cookie_domain, and session.cache_limiter are now rejected with a warning.
session.cookie_samesite now rejects invalid values with a warning; only "Strict", "Lax", "None", or "" are accepted.
session.cookie_lifetime now rejects non-integer and out-of-range values with a warning.
Session file GC now recursively cleans nested subdirectories when session.save_path uses the dirdepth prefix.
Changed defaults of session.use_strict_mode (now 1), session.cookie_httponly (now 1) and session.cookie_samesite (now "Lax").
Fixed GHSA-fm2m-fjf5-v3cp (Partially overwritten session files can lead to remote code execution). (CVE-2026-126714)
Fixed GHSA-658j-r8rw-q6mx (Session serializer mismatch can lead to remote code execution). (CVE-2026-115560)
Fixed GHSA-g3vh-838c-65v7 (Use-after-free after interrupted session shutdown). (CVE-2026-129481)
SimpleXMLElement::__construct() now raises a ValueError when the $data argument contains NUL bytes.
SNMP:
It is now possible to use the AES192, AES192C, AES256, and AES256C as SNMPv3 security protocols if the underlying library supports them.
It is now possible to reset the MIB tree using the new snmp_init_mib() function.
Additional MIB parsing and output control functionality has been exposed via the snmp_set_mib_option(), snmp_set_output_option(), snmp_set_string_output_format() functions, the $numeric_index, $numeric_timeticks, $extended_index, $dont_print_units, $escape_quotes, $print_hex_text SNMP properties, and the SNMP::setOidOutputFormat(), SNMP::setStringOutputFormat() methods.
SOAP:
Fixed bug GH-23686 (SoapClient only strips `Authorization: Basic` when a WSDL imports from another host).
Fixed header injection through the Content-Type context option, the soapaction and the cookie names and values.
Fixed the SoapClient and SoapServer "classmap" option to reject arrays containing integer keys, and made SoapClient throw TypeError/ValueError for invalid "classmap" options.
Fixed bug GH-22585 (OOM on bailout with uninitialized do_request() parameters).
Fixed xsd:hexBinary decoding to reject odd-length values instead of silently truncating the last nibble.
Made SOAP encoding errors report the affected type or failing operation instead of the generic "Violation of encoding rules" message.
Soap::__setCookie() when cookie name is a digit is now not stored and represented as a string anymore but a int.
WSDL/XML Schema parsing now rejects out-of-range integer values for occurrence constraints and integer restriction facets. Negative minOccurs and maxOccurs values are rejected as well.
Fixed GHSA-q23r-hr55-xmpg (SOAP information disclosure through malformed array dimensions). (CVE-2026-15353)
Fixed GHSA-4646-p932-gw34 (SOAP use-after-free when processing DTD entity references). (CVE-2026-129506)
Sockets:
Fixed bug GH-24748 (socket_set_option() crashes with declared object properties).
Fixed socket_set_option() with SO_ATTACH_REUSEPORT_CBPF and a zero value, which detached the classic BPF filter instead of the reuseport program.
Fixed socket_set_option() validation error messages for UDP_SEGMENT and TCP_USER_TIMEOUT, and SO_LINGER options.
Added the TCP_USER_TIMEOUT constant for Linux to set the maximum time in milliseconds transmitted data can remain unacknowledged.
Added AF_UNSPEC support for sock_addrinfo_lookup() as a sole umbrella for AF_INET* family only.
Fixed GH-20532 (socket_addrinfo_lookup gives the error code with a new optional parameter).
Added AF_PACKET support completion for socket_sendto()/socket_recvfrom().
Sodium:
Added support for the libsodium 1.0.22 KEM APIs (X-Wing and ML-KEM768).
Fixed incorrect parameter name in sodium_add(), sodium_memcmp(), and sodium_compare() length-mismatch error messages.
Added support for libsodium 1.0.21 IPcrypt and XOF APIs.
pwhash argument-validation errors now throw ValueError instead of SodiumException.
SPL:
Fixed bug GH-24264 (Unwind/GracefulExit discarded in spl_iterators.c).
Fixed bug GH-23385 (SplDoublyLinkedList::serialize() use-after-free when __serialize() removes an element).
The following SplFileObject methods have been deprecated SplFileObject::fgetcsv(), SplFileObject::fputcsv(), SplFileObject::setCsvControl(), and SplFileObject::getCsvControl().
The spl_classes() function is now deprecated, use ReflectionExtension::getClassNames() instead.
The spl_object_hash() function is now deprecated, use spl_object_id() instead.
The following ArrayIterator methods are now deprecated: * ArrayIterator::getFlags() * ArrayIterator::setFlags() * ArrayIterator::asort() * ArrayIterator::ksort() * ArrayIterator::uasort() * ArrayIterator::uksort() * ArrayIterator::natsort() * ArrayIterator::natcasesort() * ArrayIterator::unserialize() * ArrayIterator::serialize() (Girgias)
DirectoryIterator key can now work better with filesystem supporting larger directory indexing.
Fixed bug GH-21831 (SplObjectStorage::removeAllExcept() use-after-free with re-entrant getHash()).
Fixed an out-of-bounds read when following a redirect response with an empty Location header.
Fixed incorrect parameter name in convert_uudecode() warning.
Added support for the "<" and ">" endianness modifiers in pack() and unpack() format codes.
Passing an object as the $data argument to http_build_query() is now deprecated. The interpretation of object values within $data as arrays is also deprecated. Convert objects to arrays with get_object_vars() before calling the function.
Added the "filter.max_filter_count" stream context option for php://filter URLs. Using more than 16 filters without configuring this option is now deprecated.
The metaphone() function is now deprecated, use a userland phonetic matching library instead.
Improved performance of array_intersect().
Fixed bug GH-23006 (phpcredits() full-page HTML title says phpinfo()).
The following functions now raise a ValueError when the $filename argument contains NUL bytes: fileperms(), fileinode(), filesize(), fileowner(), filegroup(), fileatime(), filemtime(), filectime(), filetype(), is_writable(), is_readable(), is_executable(), is_file(), is_dir(), is_link(), file_exists(), lstat(), stat().
Fixed bug GH-22818 (stream_filter_register() orphaned user_filter_map on shutdown re-registration).
Passing an object to array_walk{_recursive} is now deprecated. Use get_object_vars() on the object instead.
The is_double() function is now deprecated, use is_float() instead.
The is_long() and is_integer() functions are now deprecated, use is_int() instead.
The doubleval() function is now deprecated, use floatval() instead.
The strcoll() function is now deprecated, use Collator::compare() instead.
The SORT_LOCALE_STRING constant for the family of sort functions is now deprecated, use one of the following functions instead: * Collator::asort() * Collator::sort() * Collator::sortWithSortKeys() (Girgias)
Fixed setlocale() to reject locale names containing NUL bytes instead of silently truncating them, and to reject arrays passed after the $locales argument or additional arguments passed after an array $locales argument.
Fixed sleep() and usleep() to reject values that overflow the underlying unsigned int timeout.
Fixed bug GH-22671 (assert.bail aborts the process when the assert callback throws an exception whose reporting re-throws).
Added form feed (\f) in the default trimmed characters of trim(), rtrim() and ltrim().
Invalid mode values now throw in array_filter() instead of being silently defaulted to 0.
Fixed bug GH-21058 (error_log() crashes with message_type 3 and null destination).
Fixed bug GH-13204 (glob() fails if square bracket is in current directory).
Add array size maximum to array_diff().
Add enum SortDirection.
pathinfo() raises a ValueError with an invalid $flags argument.
Passing an invalid flag value to the second argument of scandir() will now throw a ValueError.
array_change_key_case() now raises a ValueError when an invalid $case argument value is passed.
linkinfo() now raises a ValueError when the argument is an empty string.
getenv() and putenv() now raises a ValueError when the first argument contains NUL bytes.
dl() now raises a ValueError when the $extension_filename argument contains NUL bytes.
openlog() now raises a ValueError when the $prefix argument contains NUL bytes.
parse_str() now raises a ValueError when the $string argument contains NUL bytes.
proc_open() now raises a ValueError when the $cwd argument contains NUL bytes.
ini_get_all() now includes the built-in default value in the details.
Fixed bug GH-17384 (number_format() may exhaust memory with decimals outside the range from -2147483648 to 2147483647).
Fixed bug GH-20862 (null pointer dereference in php_mail_detect_multiple_crlf via error_log).
Fixed GHSA-f6gg-rchx-xw8j (Mixed-case HTTPS and FTPS URLs can expose data in plaintext). (CVE-2026-128064)
Fixed GHSA-mmf9-xm3v-hg2x (Denial of service through folded HTTP response headers). (CVE-2026-127960)
Streams:
Fixed bug GH-24508 (HTTP wrapper leaks the dechunk filter when header parsing fails after Transfer-Encoding).
Fix out-of-bounds reads parsing ftp:// wrapper server replies.
Added so_rcvbuf and so_sndbuf stream socket context options, setting the socket receive and send buffer sizes in bytes.
Added a new IO copy API used by php_stream_copy_to_stream_ex() that leverages platform primitives (sendfile, splice, copy_file_range, TransmitFile) for faster stream copying.
Added new stream errors API including new StreamException, StreamError classes, StreamErrorStore, StreamErrorMode, StreamErrorCode enums, stream_last_errors() and stream_clear_errors() functions, error_mode, error_store and error_handler stream context options and extending some stream functions with context param.
Added so_keepalive, tcp_keepidle, tcp_keepintvl and tcp_keepcnt stream socket context options.
Fixed bug #49874 (ftell() and fseek() inconsistency when using stream filters).
Sysvshm:
Fixed shm_attach() to throw ValueError for keys outside the key_t range.
Tidy:
Fixed tidy_repair_string(), tidy_repair_file(), tidy::repairString() and tidy::repairFile() rejecting null for $encoding.
URI:
Upgrade to uriparser 1.0.3. (CVE-2026-48841)
Added Uri\Rfc3986\Uri::getUriType() and Uri\WhatWg\Url::isSpecialScheme().
Added Uri\Rfc3986\Uri::getHostType() and Uri\WhatWg\Url::getHostType().
Added Uri\Rfc3986\UriBuilder.
Fixed GHSA-mg3p-mxj9-g2mm (Incorrect RFC 3986 URI serialization for oversized input). (CVE-2026-129438)
Windows:
Fixed bug GH-25009 (GetConsoleTitleW() buffer size passed in bytes).
Fixed sapi_windows_cp_set() and sapi_windows_cp_conv() accepting a negative codepage on 32bit platforms.
Zip:
Reject broken libzip versions 1.3.1, 1.7.0 and 1.12.0 during Windows configuration.
Excluded libzip 1.12.0 due to a regression preventing additions and replacements in torrentzip archives.
Fixed use-after-free when re-entering ZipArchive during destruction or a close warning, and rejected opening streams while closing.
Fixed a use-after-free when a ZipArchive method that modifies the archive is called from a progress or cancel callback during close().
Fixed bug GH-23899 (Assertion failure when a cancel callback returns an invalid type during shutdown).
Fixed bug GH-22176 (memory leak with ZipArchive::registerCancelBack() is used with reference returning function during shutdown).
ZipArchive::addGlob() and ZipArchive::addPattern() now raise a TypeError for invalid "remove_all_path", "comp_method", "comp_flags", and "enc_method" options instead of emitting a warning.
Fixed bug GH-21682 (ZipArchive instances should not be serializable). serialize()/unserialize() now throw unless a subclass overrides __serialize()/__unserialize().
Fixed ZipArchive callback being called after executor has shut down.
Support minimum version for libzip dependency updated to 1.0.0.
Added ZipArchive::openString() method.
Zlib:
Fixed bug GH-24533 (zlib.lib could not be found because zlib 1.3.2 CMake build does not emit it).
Fixed use-after-free when an error handler removes a failing zlib.inflate filter (GH-24176).
Fixed bug GH-22142 (Assertion failure in deflate_init() when an option object has uninitialised typed properties).
Passing an object for the zlib deflate and inflate stream filter is now deprecated. Use get_object_vars() on the object instead.
Passing an object to the $option argument to deflate_init and inflate_init is now deprecated. Use get_object_vars() on the object instead.
deflate_init() now raises a TypeError when the value for option "level", "memory", "window", or "strategy" is not of type int.
inflate_init() now raises a TypeError when the value for option "window" is not of type int.
Version 8.5.13
Core:
Fixed bug GH-24184 (System ID not being reinitialized after an Apache graceful restart, potentially causing incompatible OPcache file cache entries to be reused).
Fixed memory leak when an exception already contains the pending exception in its previous chain.
Fixed bug GH-23979 (Nullsafe operator must not flush delayed oplines of an enclosing function).
Fixed memory manager keeping a block reallocated to exactly the size of the next smaller bin in its larger bin, which efree_size() then freed into the wrong one.
Fixed bug GH-24081 (User opcode handlers resume execution against a stale frame under ZEND_VM_KIND_TAILCALL).
Fixed bug GH-24218 (Invalid opcode for count() of a literal array without SCCP).
Fix throwing behaviour with recursive arrays in VM.
Fixed skipped catch block when switching fibers during exception unwinding (Nicolas Grekas)
Fix escape analysis for objects implementing ArrayAccess.
Fix UAF for resolved callable zval.
Fix memory leak for nested HTTP calls.
Fix function and constant imports in compile_to_ast and add support for grouping.
Fixed bug GH-24668 (zend_set_local_var() leaks the previous value of an existing CV).
Fixed unmapping of an unrelated range when the aligned chunk mmap fails (Marti2203).
Fixed AST printing dropping final on class constants and properties, and abstract on properties.
Fixed AST export of readonly anonymous classes dropping the readonly modifier.
Fixed memory leak of a duplicate named argument in new in initializer.
Fixed bug GH-25061 ($x = $x - 1 on null is optimized to PRE_DEC).
Fixed first-class callables to static methods in trait constant expressions resolving to the method of the first using class and bypassing visibility checks.
Fixed GHSA-8mjj-2r7p-4hg2 (Use-after-free in magic method backtraces can lead to remote code execution). (CVE-2026-129474)
Fixed GHSA-2fjv-p558-g82m (Use-after-free via repopulation of last_fatal_error_backtrace global after shutdown). (CVE-2026-129182)
CGI:
Fixed GHSA-5j3f-64r7-f564 (PHP-CGI out-of-bounds read and write during PATH_INFO correction). (CVE-2026-129538)
Fixed bug GH-24350 (MINIT reads a stale external tz database after an in-process module restart).
Fixed GHSA-gr4f-wgx5-jpfv (Timezone cache use-after-free can lead to remote code execution). (CVE-2026-129496)
DBA:
Fixed bug GH-24641 (ndbm backend never checks dbm_open() return value, NULL deref on first use after a failed open).
DOM:
Fixed a use-after-free when reflected attribute setters replace an attribute whose child still has a live wrapper.
Fix error paths in dom_xml_serializing_a_document_node().
Fixed bug GH-25118 (Dom\HTMLDocument::createFromString() crash on OOM).
Fixed GHSA-x8r7-mg3g-74hg (Double free during DOM XML serialization). (CVE-2026-129501)
FFI:
Fixed bug GH-24582 (Memory leaks in ext/ffi parser when finalize_type() bails out).
Fileinfo:
Fixed bug GH-24289 (finfo::file() reports the wrong argument number for an invalid $filename).
FPM:
Fixed bug GH-24229 (fcgi_close() passes shutdown() a literal 1, which is SHUT_RD in WASI).
Fixed crash and stack memory disclosure in the worker output logging with a pool name longer than the message prefix buffer or log_limit.
Fixed GHSA-jm4m-qfqx-967m (PHP-FPM epoll use-after-free can lead to local privilege escalation). (CVE-2026-129291)
Fixed memory leaks of the _GET string on the status page error and HEAD request paths.
Fixed use-after-free of the scoreboard copy when logging invalid status values.
Fixed null pointer dereference in fpm_get_status() when the scoreboard copy fails.
Fixed GHSA-qc49-hpvq-g2w6 (PHP-FPM request smuggling through an unread HTTP request body). (CVE-2026-129289)
Fixed GHSA-3mg3-cr28-46gc (PHP-FPM status endpoint XSS via unescaped user and script fields). (CVE-2026-129292)
FTP:
Fix double free in ext/ftp data_accept() on accept failure.
GD:
Fixed imagetruecolortopalette() error message.
Hash:
Fix GOST and Snefru digests of 512 MiB or more.
Intl:
Fixed IntlDateFormatter parse functions truncating an $offset below INT_MIN.
JSON:
Fixed json_encode() leaving the recursion guard set on objects with hooked properties after running out of memory while escaping a property name.
Fixed json_encode() silently narrowing $depth values outside the int range, which wrapped to an unrelated depth.
Fixed json_encode() continuing to encode after an array or object key failed to encode.
LDAP:
Fix crash in ldap_exop_sync() when $response_data is omitted.
MBString:
Fixed bug GH-23958 (truncated encoding names resolving to full names).
Fixed out-of-bounds read in php_mb_rfc1867_getword() on a multibyte lead byte at the end of a multipart field name.
Fixed negative mbstring.regex_stack_limit and mbstring.regex_retry_limit on 32bit platforms.
MySQLnd:
Fixed bug GH-24293 (Segfault on connect with an empty password to a MariaDB PAM account).
Fixed bug GH-24609 (OK packets without an info message rejected on x32 builds).
ODBC:
Fixed bug GH-25036 (odbc_prepare() corrupts the heap when the driver cannot describe a parameter).
Opcache:
Fixed bug GH-24397 (Assertion failure when dumping JIT IR).
Fixed tracing JIT returning a wrapped integer instead of a float on integer overflow after an integer was compared with a float or numeric-string literal.
Fixed bug GH-17626 (JIT corrupts an opline handler when blacklisting a root trace at the opcache.jit_max_root_traces limit, causing spurious "Too few arguments" errors and crashes).
Fix type inference of ADD_ARRAY_UNPACK with integer keys.
Fix exception checks due to NAN warnings and object empty()'s.
Fixed bug GH-24270 (JIT loses the called scope of self:: and parent:: calls in closures).
Fixed bug GH-24337 (JIT: segfault when decrementing a non-numeric string property).
Fixed bug GH-24185 (Windows ZTS: random access violations with OPcache JIT in multi-process setups).
Fix SIGFPE on LONG_MIN % -1 with a constant divisor.
Fixed bug GH-24388 (Tracing JIT: segfault when a trace runs out of side exits).
Fixed bug GH-24391 (JIT switch on constant null takes default instead of case 0).
Fixed bug GH-24206 (Tracing JIT loses loop-carried CV when its loop PHI is reloaded from memory).
Fixed bug GH-24386 (JIT: register operand must be loaded before the typed reference check).
Fixed bug GH-24437 (JIT: Fix OP_DATA read from an unwritten slot in zend_jit_assign_dim_op()).
Fixed bug GH-24398 (JIT: minimal JIT segfault when a hooked property is passed to a run-time-resolved function).
Fixed bug GH-24389 (Tracing JIT: type guard on entry of an inlined call exits with an uninitialized opline).
Fixed use-after-free in JIT ASSIGN_DIM_OP when concatenating into an empty array element.
Fixed bug GH-24396 (Assertion failure in zend_jit_def_reg() "reg forwarding" with chained Pi nodes).
Fixed JIT treating an array as packed after a string key write turned it into a hash.
Fixed bug GH-24436 (Tracing JIT: keep the SEND_VAL type guard after assigning to a reference).
Fixed bug GH-24745 (File cache loses attributes on constants on 32-bit builds).
Fixed bug GH-17733 (System entropy does not take into account function order, resulting in wrong functions possibly called in different configurations).
Fixed bug GH-24438 (Preserve indirect types in JIT side traces).
Fixed bug GH-24577 (CE-cache flag on interned class name visible before map_ptr offset).
Fixed tracing JIT losing register-allocated CVs when an interrupt is handled at the end of a loop trace.
Fixed bug GH-24675 (function with >~1.7 MB of machine code corrupts JIT buffer accounting).
Call orig_post_shutdown_cb().
Fixed JIT segfault on switch over a string reference holding a non-string value.
Fixed AArch64 JIT encoding of invalid logical immediates.
Fixed JIT crashes when handling a VM interrupt with a stale saved opline in the tailcall VM.
Fixed function JIT misinterpreting VM-enter results after an interrupt callback in the CALL and TAILCALL VMs.
Fixed unsound shift_left_overflows range when shift wraps.
Fixed bug GH-23572 (Tracing JIT calls the wrong method for self::/parent:: static calls in trait methods shared by several classes).
Fixed use-after-free when a dl()-loaded extension declares a frameless function and a later request calls it.
Fixed System V shared memory emulation for Windows attaching segments past the end of their mapping.
Fixed exception thrown by destructor during GC in a Fiber not being rethrown into the frame that triggered the GC.
BCMath:
Fixed BcMath\Number results that truncate to zero keeping a negative sign and comparing less than zero.
BZ2:
Fixed double close of the descriptor and use-after-free of the inner stream when bzopen() is given a stream resource.
CLI:
Fix GH-22567 (Windows ZTS CLI SAPI should refresh its TSRMLS cache during request activation).
Fixed bug GH-23764 (Built-in server leaks a file descriptor on every HEAD request for a static file).
Fixed crash in the built-in server when a client is reset before being accepted.
Fixed the built-in server truncating an error page and leaking its unsent part after a partial socket write.
DOM:
Fixed use-after-free when re-constructing a DOMXPath whose php:function registrations are freed while still reachable from the cycle collector.
Fixed Dom\HTMLDocument::getElementById() not finding ids of SVG and MathML elements.
Fixed Dom\HTMLDocument giving attributes the namespace of their element when a fragment is parsed with an xlink, xml or xmlns context element.
Fixed bug GH-23887 (Dom\HTMLCollection::namedItem() assertion failure, hang, or missed first element).
Fixed DOMXPath and Dom\XPath losing the context node and in-scope namespaces of an evaluation after a php:function() callback evaluated another expression on the same object.
FFI:
Fixed crashes with FFI callbacks created from __call() trampolines and array callables whose object is released.
FTP:
Fixed bug GH-23619 (cryptic error on servers that don't support TLS session resumption on data connection).
GD:
Fixed undefined behavior with GD2 images with `INT_MAX`-sized chunks.
Fixed undefined behavior with GIFs with problematic LZW compression data.
Intl:
Fixed cloning IntlDateFormatter and MessageFormatter losing PHP-side state such as dateType, timeType, calendar and the message pattern.
Fixed a crash when converting with a cloned UConverter that uses toUCallback/fromUCallback.
Fixed Collator attribute and strength methods not rejecting an unconstructed Collator.
Fixed crash in intl_error_set_custom_msg() without an active call frame.
Fixed grapheme_strstr() and grapheme_stristr() returning incorrect substrings when supplementary characters precede the match.
Fixed grapheme_strstr() and grapheme_strpos() missing canonically equivalent matches, and grapheme searches reporting ICU errors for empty haystacks.
Fixed grapheme_strrpos() and grapheme_strripos() skipping overlapping matches when using a negative offset.
Fixed IntlDateFormatter::parse(), localtime() and parseToCalendar() treating the offset as UTF-16 code units instead of bytes.
Lexbor:
Merge patches lexbor/lexbor@8a14bc0 and lexbor/lexbor@f67ce4b, fixing a heap buffer overflow in :lexbor-contains() parsing and buffer overflows in malformed decode replay.
Merge patches lexbor/lexbor@859f100, lexbor/lexbor@a36e09a, lexbor/lexbor@b0f7412, lexbor/lexbor@1b215a8, lexbor/lexbor@385afff, lexbor/lexbor@e6c068f, lexbor/lexbor@327a8b6, lexbor/lexbor@917742f and lexbor/lexbor@e89c258, fixing dropped usernames containing an at sign, uninitialized memory in IDNA buffer growth, the encoding of a space before a query or fragment in an opaque path, a query or fragment lost after a dot segment in a path, replacement file drive paths, the output encoding used for percent-encoding, the URLSearchParams tail pointer and fragment serialization without a query.
MBString:
Fixed bug GH-23106 (mb_strpos() reads past the end of a haystack ending in a truncated UTF-8 sequence).
Fixed mbstring functions emitting surrogates in UTF-8 output and flagging it as valid UTF-8.
MySQLi:
Fix GH-22854: Fixed failed assertion when accessing mysqli property after failed reconnection.
MySQLnd:
Fixed field_count not resetting on OK packet.
Fixed memory leak when closing a prepared statement after its connection was killed.
Opcache:
Fixed OSS-Fuzz #546798343 (Heap-buffer-overflow in optimizer with FCCs and inlining).
Fixed bug GH-23693 (Tracing JIT produces wrong results for a guard on a loop-invariant addition).
Fixed OSS-Fuzz #5674034779193344 (Read of uninitialized memory in is_cacheable_stream_path()).
Fixed bug GH-23628 (Tracing JIT reads undefined property slots of lazy proxy objects instead of forwarding to the real instance).
Fixed bug GH-23679 (Tracing JIT writes a parent private property into a child's shadowing public property).
Fix multiple incorrect DCE due to unsound escape analysis.
Fixed bug GH-24063 (OPcache optimizer folds `$cond ? -0.0 : 0.0` into a single `-0.0` constant).
Fixed crash when a file cache is reused with a different set of extensions declaring frameless functions.
Fixed bug GH-23991 (JIT generates invalid IR for multiple recursive calls).
Fix SCCP evaluation of isset()/empty() on dimension of non-escaping object.
Fixed bug GH-20890 (Segfault in zval_undefined_cv with non-simple property hook with minimal tracing JIT).
OpenSSL:
Fixed stream_socket_enable_crypto() leaving the socket non-blocking after a handshake timeout.
Fixed feof() on a TLS stream staying false after a close_notify on Windows.
PCNTL:
Fixed pcntl_signal_dispatch() dropping the queued signals when it runs while an exception is pending.
Fixed pcntl_signal_dispatch() dropping the signals queued behind a handler that throws.
Fixed bug GH-23986 (/proc/self paths resolve to the parent process after pcntl_fork()).
PDO:
Fixed PDOStatement::getColumnMeta() reading out of bounds for an invalid column index.
Fixed PDOStatement::bindColumn() registering a binding for a column name that is not in the result set.
Fixed PDOStatement::execute() leaving the previous result available after a failed execution.
Fixed a use-after-free when bindValue()/execute()/closeCursor() is called from a bound parameter's __toString() during execute().
Fixed bug GH-23962 (Destroying a persistent PDO instance rolls back a transaction still in use by another instance).
Fixed PDO::setAttribute() installing a PDO::ATTR_STATEMENT_CLASS class whose constructor arguments it rejects.
Fixed PDO::ATTR_STATEMENT_CLASS constructor_args type errors reporting "array given" regardless of the value passed.
Fixed PDOStatement::bindParam() and bindColumn() leaking the driver options value.
Fixed PDOStatement not reporting its bound parameters and columns to the cycle collector.
Fixed PDOStatement::setFetchMode() not applying changes atomically.
PDO_DBLIB:
Fixed bug GH-23741 (segfault after a failed query inside a PDO transaction). Errors raised by beginTransaction(), commit(), rollBack() and lastInsertId() are now reported instead of being dropped.
PDO_Firebird:
Fixed bug GH-23758 (PDO_Firebird returns null for non-null empty BLOBs).
PGSQL:
Fixed pg_lo_write() rejecting data containing null bytes.
Removed pg_service(), unavailable with any released libpq.
Readline:
Fixed a heap over-read in the interactive shell prompt when cli.prompt is set to an empty string.
Reflection:
Fixed bug GH-23842 (ReflectionProperty::skipLazyInitialization() copies invalid constant defaults with OPcache).
Session:
Fixed session_start() continuing after a failed create_sid() when session.use_strict_mode rejects the supplied ID.
Fixed exceptions from user-defined create_sid() handlers being replaced by return-value validation errors.
SimpleXML:
Fixed reconstructing a SimpleXMLElement freeing a child element that another variable still references.
SOAP:
Fixed bug GH-22895 (Heap use-after-free while encoding a Traversable with an illegal key).
Fixed memory leak when load_wsdl_ex() failed to load.
SQLite:
Fixed a crash when SQLite3::close() is called from a userland callback.
Standard:
Fixed sha1_file() returning a digest for incomplete data after a stream read failure.
Fixed iptcembed() corrupting JPEG headers when called recursively from an output handler.
Fixed proc_open() leaking descriptor zero when descriptor setup fails.
Fixed three Windows-only proc_open() defects: an uninitialized PROCESS_INFORMATION, an indeterminate comspec pointer after a failed lookup, and an unchecked CreateFileA() failure.
Fix persistent stream context lifetime during shutdown (Levi Morrison)
Fix wordwrap() ignoring an existing break at the end of the string (Nicolas Grekas)
Fixed convert.quoted-printable-decode decoding lowercase hex digits to the wrong byte.
Fixed chown() and lchown() failing to resolve user names in ZTS builds when getpwnam_r() needs a larger buffer.
Tidy:
Fixed a use-after-free when a tidyNode is used after its document is reparsed.
Zlib:
Fixed inflate_init() dropping the preset dictionary for raw streams with a non-default window.
Version 8.5.11
BCMath:
Fixed out-of-bounds read in bc_is_zero_for_scale() when scale exceeds n_scale.
Core:
Fixed out-of-bounds reads during automatic UTF-16/32 encoding detection.
Fixed bug GH-15375 (Nested "yield from" skips items after a valid() or next() call on the inner generator).
Fixed bug GH-23232 (lone namespace separator asks the autoloader for an empty class name).
Fixed bug GH-23301 (Nested "yield from" yields a value twice when the middle generator delegates again).
DOM:
Fixed NamedNodeMap::getNamedItemNS() with an empty URI not matching the null namespace in spec-following mode.
Fixed stale getElementsByClassName() and other node list caches after className/classList writes and attribute removals.
Fixed a use-after-free when cloning a DOMNameSpaceNode after DOMDocument::xinclude().
Fixed a crash in DOMXPath when a php:function callback receives a nodeset and a later callback returns a node from another document.
Fixed bug GH-23331 (UAF when node_list_unlink() skips attribute children that still have a live wrapper).
Fixed a use-after-free when Dom\Element::setAttributeNS() replaces the value of an attribute whose child still has a live wrapper.
GD:
Fixed imageaffinematrixget() and imageaffinematrixconcat() reporting the wrong argument in error messages.
Fixed writing to a dimension of the object returned by attributes() not creating the attribute.
Fixed child elements of the element returned by SimpleXMLElement::addChild() not being accessible by property name when namespaces are involved.
Windows:
Fixed GHSA-9f67-6fw4-hpfp (Reserved device names are not rejected before file and stream I/O). (CVE-2026-17545)
Zip:
Fixed bug GH-17787 (ZipArchive stream stops reading early when the archive is freed while the stream is still open).
Fixed bug GH-23276 (ZipArchive subclass storing its own stream cannot be garbage collected).
SAPI:
Fixed fuzzer targets failing to build in isolation.
Fixed returns uninitialized value on LiteSpeed lsapi SAPI (Go Kudo)
Version 8.5.10
Core:
Fixed bug GH-22782 (Const expr FCC crashes under preloading).
Fixed bug GH-23088 (Stack overflow when comparing deeply nested arrays).
Date:
Fixed leak on double DatePeriod::__construct() call.
DOM:
Fixed bug GH-23116 (Stack overflow when normalizing a deeply nested DOMDocument).
Fixed bug GH-23117 (Stack overflow when normalizing a deeply nested Dom\XMLDocument).
Fixed bug GH-22825 (DOMElement::setAttribute() fails silently when the DTD declares a default value for the attribute).
Fixed bug GH-23120 (Stack overflow when comparing deeply nested DOM nodes with DOMNode::isEqualNode()).
Exif:
Fixed exif_read_data() allocating a HEIF meta box larger than the file it came from.
Intl:
Fixed IntlListFormatter::__construct() leaving stale global error state after successful calls.
Opcache:
Fixed GH-22693 (DT_TEXTREL in JIT-generated TLS access on x86_64).
Fixed bug GH-22763 (JIT fails to clear ZREG_TYPE_ONLY after setting reg).
Fixed bug GH-22857 (Function JIT emits wrong code for FETCH_OBJ_FUNC_ARG on a property hook getter, losing register-held variables).
Fixed bug GH-22916 (Preserve parent regs in zend_jit_deoptimizer_start()).
OpenSSL:
Fix missing error check on invalid alpn protocols.
MBString:
Fixed bug GH-22779 (mb_strrpos() returns the wrong position for a negative offset in a non-UTF-8 encoding).
Fixed bug GH-21036 (mb_ereg_search_getregs() crashes after mb_eregi() invalidates the regex cache).
PCRE:
Fixed bug GH-21134 (Crash with \C + UTF-8). Using \C in UTF-8 patterns is now forbidden.
PDO_ODBC:
Fixed bug GH-23016 (NULL values in long columns come back as garbage binary strings).
PDO_PGSQL:
Fixed several lazy fetch (PDO::ATTR_PREFETCH => 0) defects: an infinite loop when cleaning up a fetch left in a COPY, a use-after-free when a statement with emulated or disabled prepares is destroyed, a connection left busy for the next fetch, and rows delivered from a result another statement took over.
Reflection:
Fixed bug GH-22905 (Reflection exception messages truncate on null bytes).
Fixed ReflectionProperty::isLazy() and skipLazyInitialization() using the parent slot when a child class hooks an inherited property.
Fixed segfault in ReflectionMethod::createFromMethodName() on an uninstantiable subclass.
Session:
Fix corruption in mod_mm.
Fixed bug GH-23043 (broken session id code can cause zend_mm_heap corrupted).
SimpleXML:
Fixed integer element offsets that cannot resolve aliasing an existing element.
Fixed segfault when comparing uninitialized SimpleXMLElement instances.
Sockets:
Fixed socket_set_option() validation error messages for UDP_SEGMENT and SO_LINGER options.
Fixed various memory related issues in ext/sockets.
SQLite:
Fix leak when trying to close db if blob stream is still open.
Standard:
Fixed bug GH-23111 (Stack overflow in array_walk_recursive() with deeply nested arrays).
Fixed bug GH-23113 (Stack overflow in array_replace_recursive() with deeply nested arrays).
Fixed bug GH-23115 (Stack overflow in compact() with deeply nested arrays).
Streams:
Fixed bug GH-15836 (Use-after-free when a user stream filter accesses $this->stream during the close flush).
XSL:
Fixed use-after-free when a DOMDocument subclass __clone() retains the stylesheet copy made by XSLTProcessor::importStylesheet().
Version 8.5.9
Core:
Fixed bug GH-22290 (AST pretty printing does not correctly handle strings containing NUL).
Fixed bug GH-22206 (missing return in global register detection).
Lock unmodified readonly properties for modification after clone-with.
BCMath:
Fixed GHSA-x692-q9x7-8c3f (Out-of-bounds write in bccomp()). (CVE-2026-17544)
Calendar:
Fixed bug GH-22602 (gregoriantojd() and juliantojd() integer overflow with INT_MAX year).
Date:
Update timelib to 2022.17.
Fixed bug GH-19803 (Parsing a string with a single white space does create an error).
Fixed Unix timestamps in February of the year 0 are misparsed with @-notation.
Fixed bug GH-11310 (__debugInfo does nothing on userland classes extending Date classes).
DBA:
Fixed OOB read on malformed length field in dba flatfile handler.
DOM:
Fixed bug GH-22570 (Stack overflow when serializing a deeply nested Dom\XMLDocument).
Fixed getElementsByClassName() item() returning the wrong element on random access.
Exif:
Fixed bug GH-11020 (exif_read_data() emits a spurious "Illegal IFD size" warning when an IFD is not followed by a next-IFD offset).
GD:
Upgrade libgd. (CVE-2026-9672)
Hash:
Fixed bug GH-18173 (ext/hash relies on implementation-defined malloc alignment).
ODBC:
Fixed bug GH-22668 (Heap buffer over-read when a column value exceeds the driver-reported display size).
Opcache:
Fixed bug GH-22158 (Tracing JIT dispatches the observer begin handler through the wrong run_time_cache slot on megamorphic calls).
Fixed bug GH-22443 (Tracing JIT SIGSEGV on megamorphic dynamic calls from an undereferenced run_time_cache map_ptr offset).
Fixed bug GH-21770 (Infinite recursion in property hook getter in opcache preloaded trait).
OpenSSL:
Fixed timeout for supplemental read at end of a blocking stream in SSL stream wrapper.
Intl:
Fixed Locale::lookup() and locale_lookup() to return NULL instead of the fallback locale when a language tag cannot be canonicalized.
Fixed memory leaks when calling Collator::__construct() or Spoofchecker::__construct() twice.
Fixed memory leak when calling IntlListFormatter::__construct() twice.
Fixed IntlChar methods leaving stale global error state after successful calls.
PDO_ODBC:
Fixed bug GH-20726 (Crash with ODBC connection pooling when the DSN carries no credentials).
Fixed bug GH-22667 (Heap buffer over-read when a column value exceeds the driver-reported display size).
Fixed bug GH-22666 (Heap buffer overflow when an output parameter value is longer than the declared maxlen).
Fixed bug GH-22665 (Out-of-bounds write when the ODBC driver reports a diagnostic message length beyond the error buffer).
PGSQL:
Fixed GHSA-7qpv-r5mr-78m4 (SQL injection via E'...' backslash breakout). (CVE-2026-17543)
Phar:
Fixed inconsistent handling of the magic ".phar" directory. Paths such as "/.phar" remain protected, while non-magic paths that merely start with ".phar" are handled consistently across file and directory creation, copying, ArrayAccess, stream lookup, directory iteration and extraction.
Fixed bug GH-17387 (Trivial crash in phpdbg lexer).
Fixed fleaked lowercased lookup keys in phpdbg_resolve_opline_break.
Fixed off-by-one in phpdbg_safe_class_lookup() causing class lookups to always fail during phpdbg's signal-safe interruption path.
Reflection:
Fixed bug GH-22324 (Ignore leading namespace separator in ReflectionParameter::__construct()).
Fixed bug GH-22441 (ReflectionClass::hasProperty() and getProperty() ignore dynamic properties shadowing a private parent property).
Fixed bug GH-22658 (ReflectionConstant::__toString() with a string value with null bytes truncates output).
Fixed bug GH-22683 (Reflection(Class)Constant::__toString() should not warn on NAN conversions).
Fixed bug GH-22681 (Reflection*::__toString() truncates on null bytes).
Session:
Fixed bug GH-21314 (Different session garbage collector behavior between PHP 8.3 and PHP 8.5).
SPL:
Fix class_parents for classes with leading slash in non-autoload mode.
Ignore leading back-slash in class_parents(), class_implements(), and class_uses().
Fixed bug GH-16217 (SplFileObject::fputcsv() on an uninitialized object segfaults).
Standard:
Fixed bug GH-22395 (base_convert() outputs at most 64 characters).
Fixed bug GH-22678 (Use-after-free in array_multisort() when the comparator mutates the array being sorted).
URI:
Fixed behavior of Uri\WhatWg\Url wither methods with regards to empty opaque hosts.
Fixed bug GH-22628 (Percent-encoding of caret in WHATWG URL paths is not performed).
Fixed bug GH-22629 (WHATWG Validation error incorrect with empty host and non-empty userinfo).
Zip:
Fixed bug GH-22649 (ZipArchive::setCommentName() and setCommentIndex() could crash after overwriting an entry and resetting its inherited unchanged comment).
Fixed bug GH-21705 (ZipArchive::getFromIndex() ignores ZipArchive::FL_UNCHANGED for deleted entries).
Version 8.5.8
Core:
Fixed bug GH-22280 (Incorrect compile error for goto to label preceding try/finally block).
Fixed bug GH-22112 (Assertion when error handler throws during NaN to bool/string coercion).
BCMath:
Fixed issues with oversized allocations and signed overflow in bcround() and BcMath\Number::round().
Date:
Fix incorrect recurrence check of DatePeriod::createFromISO8601String().
Exif:
Read correct value for single and double tags.
GD:
Fixed bug GH-22121 (Double free in gdImageSetStyle() after overflow-triggered early return).
Intl:
Fix incorrect argument positions for invalid start/end arguments in transliterator_transliterate().
Fixed IntlTimeZone::getDisplayName() to synchronize object error state for invalid display types.
Fixed bug GH-20469 (Unsafe inheritance cache replay with reentrant autoloading).
Fixed bug GH-21972 (Corrupted variable type when a typed by-value return contains a reference wrapper).
OpenSSL:
Fixed bug GH-22187 (Memory corruption (zend_mm_heap corrupted) in openssl_encrypt with AES-WRAP-PAD). (CVE-2026-14355)
Phar:
Fixed a bypass of the magic ".phar" directory protection in Phar::addEmptyDir() for paths starting with "/.phar", while allowing non-magic directory names that merely share the ".phar" prefix.
Reflection:
Preserve class-name case in ReflectionClass::getProperty() error messages and autoloading.
SOAP:
Fixed bug GH-22218 (SoapServer::handle() crash on $_SERVER not being an array).
Fixed bug GH-22285 (Soap server requires the raw input to be passed to $server->handle).
Sqlite:
Fix error checks for column retrieval.
URI:
Add LEXBOR_STATIC to CFLAGS_URI on Windows so ext/uri does not see LXB_API as __declspec(dllimport) when linked statically into PHP.
Clean error logs before each Uri\WhatWg\Url wither call so that errors from previous wither calls are not returned the next time a UrlValidationError is thrown.
Zip:
Fixed error-related memory leaks.
Zlib:
Fixed memory leak if deflate initialization fails and there is a dict.
Added the #[\DelayedTargetValidation] attribute to delay target errors for internal attributes from compile time to runtime.
Added support for `final` with constructor property promotion.
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.
Added PHP_BUILD_PROVIDER constant.
Added PHP_BUILD_DATE constant.
Added support for Closures and first class callables in constant expressions.
Add support for backtraces for fatal errors.
Add clone-with support to the clone() function.
Add RFC 3986 and WHATWG URL compliant APIs for URL parsing and manipulation (kocsismate, timwolla)
Fixed AST printing for immediately invoked Closure.
Properly handle __debugInfo() returning an array reference.
Properly handle reference return value from __toString().
Improved error message of UnhandledMatchError for zend.exception_string_param_max_len=0.
Fixed bug GH-15753 and GH-16198 (Bind traits before parent class).
Fixed bug GH-17951 (memory_limit is not always limited by max_memory_limit).
Fixed bug GH-20183 (Stale EG(opline_before_exception) pointer through eval).
Fixed bug GH-20113 (Missing new Foo(...) error in constant expressions).
Fixed bug GH-19844 (Don't bail when closing resources on shutdown).
Fixed bug GH-18033 (NULL-ptr dereference when using register_tick_function in destructor).
Fixed bug GH-18026 (Improve "expecting token" error for ampersand).
The report_memleaks INI directive has been deprecated.
Fixed OSS-Fuzz #439125710 (Pipe cannot be used in write context).
Fixed bug GH-19548 (Shared memory violation on property inheritance).
Fixed bug GH-19544 (GC treats ZEND_WEAKREF_TAG_MAP references as WeakMap references).
Fixed bug GH-18373 (Don't substitute self/parent with anonymous class).
Fix support for non-userland stream notifiers.
Fixed bug GH-19305 (Operands may be being released during comparison).
Fixed bug GH-19306 (Generator can be resumed while fetching next value from delegated Generator).
Fixed bug GH-19326 (Calling Generator::throw() on a running generator with a non-Generator delegate crashes).
Fix OSS-Fuzz #427814452 (pipe compilation fails with assert).
Fixed bug GH-16665 (\array and \callable should not be usable in class_alias).
Use `clock_gettime_nsec_np()` for high resolution timer on macOS if available.
Make `clone()` a function.
Introduced the TAILCALL VM, enabled by default when compiling with Clang>=19 on x86_64 or aarch64.
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.
Constant redeclaration has been deprecated.
Marks the stack as non-executable on Haiku.
Deriving $_SERVER['argc'] and $_SERVER['argv'] from the query string is now deprecated.
Using null as an array offset or when calling array_key_exists() is now deprecated.
The disable_classes INI directive has been removed.
The locally predefined variable $http_response_header is deprecated.
Non-canonical cast names (boolean), (integer), (double), and (binary) have been deprecated.
The $exclude_disabled parameter of the get_defined_functions() function has been deprecated, as it no longer has any effect since PHP 8.0.
Terminating case statements with a semicolon instead of a colon has been deprecated.
The backtick operator as an alias for shell_exec() has been deprecated.
Returning null from __debugInfo() has been deprecated.
Support #[\Override] on properties.
Destructing non-array values (other than NULL) using [] or list() now emits a warning.
Casting floats that are not representable as ints now emits a warning.
Casting NAN to other types now emits a warning.
Implement GH-15680 (Enhance zend_dump_op_array to properly represent non-printable characters in string literals).
Fixed bug GH-17442 (Engine UAF with reference assign and dtor).
Do not use RTLD_DEEPBIND if dlmopen is available.
Implement GH-17725 (It is now allowed to substitute static with self or the concrete class name
in final subclasses)
BCMath:
Simplify `bc_divide()` code.
If the result is 0, n_scale is set to 0.
If size of BC_VECTOR array is within 64 bytes, stack area is now used.
Fixed bug GH-20006 (Power of 0 of BcMath number causes UB).
The DATE_RFC7231 and DateTimeInterface::RFC7231 constants have been deprecated.
Fixed date_sunrise() and date_sunset() with partial-hour UTC offset.
Fixed GH-17159: "P" format for ::createFromFormat swallows string literals.
The __wakeup() magic method of DateTimeInterface, DateTime, DateTimeImmutable, DateTimeZone, DateInterval, and DatePeriod has been deprecated in favour of the __unserialize() magic method.
DOM:
Added Dom\Element::$outerHTML.
Added Dom\Element::insertAdjacentHTML().
Added $children property to ParentNode implementations.
Make cloning DOM node lists, maps, and collections fail.
Added Dom\Element::getElementsByClassName().
Fixed bug GH-18877 (\Dom\HTMLDocument querySelectorAll selecting only the first when using ~ and :has).
Fixed bug GH-11952 (Fix locale strings canonicalization for IntlDateFormatter and NumberFormatter).
Fixed bug GH-18566 ([intl] Weird numeric sort in Collator).
Fix return value on failure for resourcebundle count handler.
Fixed bug GH-19307 (PGO builds of shared ext-intl are broken).
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.
The intl.error_level INI setting has been deprecated.
LDAP:
Allow ldap_get_option to retrieve global option by allowing NULL for connection instance ($ldap).
MBstring:
Updated Unicode data tables to Unicode 17.0.
MySQLi:
Fixed bugs GH-17900 and GH-8084 (calling mysqli::__construct twice).
The mysqli_execute() alias function has been deprecated.
MySQLnd:
Added mysqlnd.collect_memory_statistics to ini quick reference.
ODBC:
Removed driver-specific build flags and support.
Remove ODBCVER and assume ODBC 3.5.
Opcache:
Make OPcache non-optional (Arnaud, timwolla)
Added opcache.file_cache_read_only.
Updated default value of opcache.jit_hot_loop.
Log a warning when opcache lock file permissions could not be changed.
Fixed bug GH-19657 (Build fails on non-glibc/musl/freebsd/macos/win platforms).
Fixed ZTS OPcache build on Cygwin.
Fixed bug GH-19493 (JIT variable not stored before YIELD).
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.
Add $digest_algo parameter to openssl_public_encrypt() and openssl_private_decrypt() functions.
Implement #81724 (openssl_cms_encrypt only allows specific ciphers).
Implement #80495 (Enable to set padding in openssl_(sign|verify).
Implement #47728 (openssl_pkcs7_sign ignores new openssl flags).
Fixed bug GH-19994 (openssl_get_cipher_methods inconsistent with fetching).
Fixed build when --with-openssl-legacy-provider set.
Fixed bug GH-19369 (8.5 | Regression in openssl_sign() - support for alias algorithms appears to be broken).
The $key_length parameter for openssl_pkey_derive() has been deprecated.
Output:
Fixed calculation of aligned buffer size.
PCNTL:
Extend pcntl_waitid with rusage parameter.
PCRE:
Remove PCRE2_EXTRA_ALLOW_LOOKAROUND_BSK from pcre compile options.
PDO:
Fixed bug GH-20095 (Incorrect class name in deprecation message for PDO mixins).
Driver specific methods and constants in the PDO class are now deprecated.
The "uri:" DSN scheme has been deprecated due to security concerns with DSNs coming from remote URIs.
PDO_ODBC:
Fetch larger block sizes and better handle SQL_NO_TOTAL when calling SQLGetData.
PDO_PGSQL:
Added Iterable support for PDO::pgsqlCopyFromArray.
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.
PDO::sqliteCreateCollation now throws a TypeError if the callback has a wrong return type.
Added Pdo_Sqlite::ATTR_BUSY_STATEMENT constant to check if a statement is currently executing.
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.
Fix bug GH-13952 (sqlite PDO::quote silently corrupts strings with null bytes) by throwing on null bytes.
PGSQL:
Added pg_close_stmt to close a prepared statement while allowing its name to be reused.
Added Iterable support for pgsql_copy_from.
pg_connect checks if connection_string contains any null byte, pg_close_stmt check if the statement contains any null byte.
Added pg_service to get the connection current service identifier.
Fix segfaults when attempting to fetch row into a non-instantiable class name.
Phar:
Fix potential buffer length truncation due to usage of type int instead of type size_t.
Fixed memory leaks when verifying OpenSSL signature.
POSIX:
Added POSIX_SC_OPEN_MAX constant to get the number of file descriptors a process can handle.
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.
posix_kill and posix_setpgid throws a ValueError on invalid process_id.
posix_setpgid throws a ValueError on invalid process_group_id, posix_setrlimit throws a ValueError on invalid soft_limit and hard_limit arguments.
Random:
Moves from /dev/urandom usage to arc4random_buf on Haiku.
Reflection:
Added ReflectionConstant::getExtension() and ::getExtensionName().
Fixed bug GH-15766 (ReflectionClass::__toString() should have better output for enums).
Fix GH-19691 (getModifierNames() not reporting asymmetric visibility).
Fixed bug GH-17927 (Reflection: have some indication of property hooks in `_property_string()`).
Fixed bug GH-19187 (ReflectionNamedType::getName() prints nullable type when retrieved from ReflectionProperty::getSettableType()).
Fixed bug GH-20217 (ReflectionClass::isIterable() incorrectly returns true for classes with property hooks).
SAPI:
Fixed bug GH-18582 and #81451: http_response_code() does not override the status code generated by header().
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.
Added support for partitioned cookies.
Fix RC violation of session SID constant deprecation attribute.
Fixed GH-19197: build broken with ZEND_STRL usage with memcpy when implemented as macro.
SimpleXML:
Fixed bug GH-12231 (SimpleXML xpath should warn when returning other return types than node lists).
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.
SOAP:
Added support for configuring the URI parser for SoapClient::__doRequest() as described in https://wiki.php.net/rfc/url_parsing_api#plugability.
Implement request #55503 (Extend __getTypes to support enumerations).
Implement request #61105 (Support Soap 1.2 SoapFault Reason Text lang attribute).
Fixed bug #49169 (SoapServer calls wrong function, although "SOAP action" header is correct).
Fix namespace handling of WSDL and XML schema in SOAP, fixing at least GH-16320 and bug #68576.
Fixed bug #70951 (Segmentation fault on invalid WSDL cache).
Fixed bug GH-19773 (SIGSEGV due to uninitialized soap_globals->lang_en).
Fixed bug GH-19226 (Segfault when spawning new thread in soap extension).
Sockets:
Added IPPROTO_ICMP/IPPROTO_ICMPV6 to create raw socket for ICMP usage.
Added TCP_FUNCTION_BLK to change the TCP stack algorithm on FreeBSD.
Added IP_BINDANY for a socket to bind to any address.
Added SO_BUSY_POOL to reduce packets poll latency.
Added UDP_SEGMENT support to optimise multiple large datagrams over UDP if the kernel and hardware supports it.
Added SHUT_RD, SHUT_WR and SHUT_RDWR constants for socket_shutdown().
Improve __unserialize() hardening for SplHeap/SplPriorityQueue.
Deprecate ArrayObject and ArrayIterator with objects.
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.
The SplObjectStorage::contains(), SplObjectStorage::attach(), and SplObjectStorage::detach() methods have been deprecated in favour of SplObjectStorage::offsetExists(), SplObjectStorage::offsetSet(), and SplObjectStorage::offsetUnset() respectively.
Sqlite:
Added Sqlite3Stmt::busy to check if a statement is still being executed.
Added Sqlite3Stmt::explain to produce an explain query plan from the statement.
Added Sqlite3Result::fetchAll to return all results at once from a query.
Standard:
Add HEIF/HEIC support to getimagesize.
Added support for partitioned cookies.
Implement #71517 (Implement SVG support for getimagesize() and friends).
Implement GH-19188: Add support for new INI mail.cr_lf_mode.
Optimized PHP html_entity_decode function.
Minor optimization to array_chunk().
Optimized pack().
Fixed crypt() tests on musl when using --with-external-libcrypt (Michael Orlitzky).
Fixed bug GH-18062 (is_callable(func(...), callable_name: $name) for first class callables returns wrong name).
Added array_first() and array_last().
Fixed bug GH-18823 (setlocale's 2nd and 3rd argument ignores strict_types).
Fixed exit code handling of sendmail cmd and added warnings.
Fixed bug GH-18897 (printf: empty precision is interpreted as precision 6, not as precision 0).
Fixed bug GH-20257 (mail() heap overflow with an empty message in lf mode).
Fixed bug GH-20201 (AVIF images misdetected as HEIF after introducing HEIF support in getimagesize()).
Fixed bug GH-19926 (reset internal pointer earlier while splicing array while COW violation flag is still set).
Fixed bug GH-19801 (leaks in var_dump() and debug_zval_dump()).
Fixed GH-14402 (SplPriorityQueue, SplMinHeap, and SplMaxHeap lost their data on serialize()).
Fixed GH-19610 (Deprecation warnings in functions taking as argument).
Fixed bug GH-19577 (Avoid integer overflow when using a small offset and PHP_INT_MAX with LimitIterator).
Fixed bug GH-19153 (#[\Attribute] validation should error on trait/interface/enum/abstract class).
Fixed bug GH-19070 (setlocale($type, NULL) should not be deprecated).
gzfile, gzopen and readgzfile, their "use_include_path" argument is now a boolean.
Fixed bug GH-16883 (gzopen() does not use the default stream context when opening HTTP URLs).
Implemented GH-17668 (zlib streams should support locking).
Zip:
Fixed missing zend_release_fcall_info_cache on the following methods ZipArchive::registerProgressCallback() and ZipArchive::registerCancelCallback() on failure.
Version 8.4.28
Core:
Fixed bug GH-24184 (System ID not being reinitialized after an Apache graceful restart, potentially causing incompatible OPcache file cache entries to be reused).
Fixed memory leak when an exception already contains the pending exception in its previous chain.
Fixed bug GH-23979 (Nullsafe operator must not flush delayed oplines of an enclosing function).
Fixed memory manager keeping a block reallocated to exactly the size of the next smaller bin in its larger bin, which efree_size() then freed into the wrong one.
Fixed bug GH-24218 (Invalid opcode for count() of a literal array without SCCP).
Fix throwing behaviour with recursive arrays in VM.
Fixed skipped catch block when switching fibers during exception unwinding (Nicolas Grekas)
Fix escape analysis for objects implementing ArrayAccess.
Fix UAF for resolved callable zval.
Fix memory leak for nested HTTP calls.
Fixed pthread attribute leak in zend_call_stack_get_netbsd_pthread().
Fixed bug GH-24321 (ZTS: global_map_ptr_last survives zend_shutdown(), so an in-process engine restart keeps growing the map_ptr table).
Fix function and constant imports in compile_to_ast and add support for grouping.
Fixed bug GH-24265 (Unwind/GracefulExit discarded in zend_fiber_execute()).
Fixed bug GH-24668 (zend_set_local_var() leaks the previous value of an existing CV).
Fixed unmapping of an unrelated range when the aligned chunk mmap fails (Marti2203).
Fixed bug GH-24989 (Use-after-free in GC when an exception is thrown).
Fixed bug GH-24534 (Segfault in zend_try_early_bind when a parent class autoloads its cached child during linking).
Fixed AST printing dropping final on class constants and properties, and abstract on properties.
Fixed AST export of readonly anonymous classes dropping the readonly modifier.
Fixed memory leak of a duplicate named argument in new in initializer.
Fixed bug GH-25061 ($x = $x - 1 on null is optimized to PRE_DEC).
Fixed bug GH-24480 (Finally block running a second time when a VM interrupt throws as the finally block returns to a "return" in its try block).
CGI:
Fixed GHSA-5j3f-64r7-f564 (PHP-CGI out-of-bounds read and write during PATH_INFO correction). (CVE-2026-129538)
Fixed bug GH-24350 (MINIT reads a stale external tz database after an in-process module restart).
Fixed GHSA-gr4f-wgx5-jpfv (Timezone cache use-after-free can lead to remote code execution). (CVE-2026-129496)
DBA:
Fixed bug GH-24641 (ndbm backend never checks dbm_open() return value, NULL deref on first use after a failed open).
DOM:
Fixed a use-after-free when reflected attribute setters replace an attribute whose child still has a live wrapper.
Fixed bug GH-23352 (UAF reading an attribute value node retained across DOMDocument::adoptNode()).
Fixed bug GH-24260 (querySelectorAll() returns duplicate elements for selector lists).
Fixed bug GH-23334 (Use-after-free in php_dom_free_templated_content()).
Fixed bug GH-22077 (UAF in custom XPath function).
Fixed bug GH-22554 (use-after-free with XPath callback returning a node from a foreign document).
Fixed DOMXPath crash wrapping a foreign node after a nodeset callback.
Fix error paths in dom_xml_serializing_a_document_node().
Fixed use-after-free on namespace axis results with a foreign-document XPath callback node.
Fixed GHSA-x8r7-mg3g-74hg (Double free during DOM XML serialization). (CVE-2026-129501)
FFI:
Fixed bug GH-24582 (Memory leaks in ext/ffi parser when finalize_type() bails out).
FPM:
Fixed bug GH-24229 (fcgi_close() passes shutdown() a literal 1, which is SHUT_RD in WASI).
Fixed crash and stack memory disclosure in the worker output logging with a pool name longer than the message prefix buffer or log_limit.
Fixed GHSA-jm4m-qfqx-967m (PHP-FPM epoll use-after-free can lead to local privilege escalation). (CVE-2026-129291)
Fixed memory leaks of the _GET string on the status page error and HEAD request paths.
Fixed use-after-free of the scoreboard copy when logging invalid status values.
Fixed null pointer dereference in fpm_get_status() when the scoreboard copy fails.
Fixed GHSA-qc49-hpvq-g2w6 (PHP-FPM request smuggling through an unread HTTP request body). (CVE-2026-129289)
Fixed GHSA-3mg3-cr28-46gc (PHP-FPM status endpoint XSS via unescaped user and script fields). (CVE-2026-129292)
Fileinfo:
Fixed bug GH-24289 (finfo::file() reports the wrong argument number for an invalid $filename).
FTP:
Fix double free in ext/ftp data_accept() on accept failure.
GD:
Fixed imagetruecolortopalette() error message.
Hash:
Fix GOST and Snefru digests of 512 MiB or more.
Intl:
Fixed IntlDateFormatter parse functions truncating an $offset below INT_MIN.
JSON:
Fixed json_encode() leaving the recursion guard set on objects with hooked properties after running out of memory while escaping a property name.
Fixed json_encode() silently narrowing $depth values outside the int range, which wrapped to an unrelated depth.
Fixed json_encode() continuing to encode after an array or object key failed to encode.
LDAP:
Fix crash in ldap_exop_sync() when $response_data is omitted.
MBString:
Fixed bug GH-23958 (truncated encoding names resolving to full names).
Fixed out-of-bounds read in php_mb_rfc1867_getword() on a multibyte lead byte at the end of a multipart field name.
Fixed negative mbstring.regex_stack_limit and mbstring.regex_retry_limit on 32bit platforms.
MySQLnd:
Fixed bug GH-24293 (Segfault on connect with an empty password to a MariaDB PAM account).
Fixed bug GH-24609 (OK packets without an info message rejected on x32 builds).
ODBC:
Fixed bug GH-24736 (php_odbc_connstr_is_quoted() treats a value with no closing brace as quoted).
Fixed bug GH-25036 (odbc_prepare() corrupts the heap when the driver cannot describe a parameter).
Opcache:
Fixed bug GH-24397 (Assertion failure when dumping JIT IR).
Fixed tracing JIT returning a wrapped integer instead of a float on integer overflow after an integer was compared with a float or numeric-string literal.
Fixed bug GH-20890 (Segfault in zval_undefined_cv with non-simple property hook with minimal tracing JIT).
Fixed bug GH-17626 (JIT corrupts an opline handler when blacklisting a root trace at the opcache.jit_max_root_traces limit, causing spurious "Too few arguments" errors and crashes).
Fix type inference of ADD_ARRAY_UNPACK with integer keys.
Fixed bug GH-24218 (Invalid opcode for count() of a literal array when SCCP is disabled).
Fixed bug GH-24337 (JIT: segfault when decrementing a non-numeric string property).
Fix SIGFPE on LONG_MIN % -1 with a constant divisor.
Fixed bug GH-24388 (Tracing JIT: segfault when a trace runs out of side exits).
Fixed bug GH-24391 (JIT switch on constant null takes default instead of case 0).
Fixed bug GH-24206 (Tracing JIT loses loop-carried CV when its loop PHI is reloaded from memory).
Fixed bug GH-24386 (JIT: register operand must be loaded before the typed reference check).
Fixed bug GH-24437 (JIT: Fix OP_DATA read from an unwritten slot in zend_jit_assign_dim_op()).
Fixed bug GH-24398 (JIT: minimal JIT segfault when a hooked property is passed to a run-time-resolved function).
Fixed bug GH-24389 (Tracing JIT: type guard on entry of an inlined call exits with an uninitialized opline).
Fixed use-after-free in JIT ASSIGN_DIM_OP when concatenating into an empty array element.
Fixed bug GH-24396 (Assertion failure in zend_jit_def_reg() "reg forwarding" with chained Pi nodes).
Fixed JIT treating an array as packed after a string key write turned it into a hash.
Fixed bug GH-24436 (Tracing JIT: keep the SEND_VAL type guard after assigning to a reference).
Fixed bug GH-17733 (System entropy does not take into account function order, resulting in wrong functions possibly called in different configurations).
Fixed bug GH-24438 (Preserve indirect types in JIT side traces).
Fixed bug GH-24577 (CE-cache flag on interned class name visible before map_ptr offset).
Fixed tracing JIT losing register-allocated CVs when an interrupt is handled at the end of a loop trace.
Fixed bug GH-24675 (function with >~1.7 MB of machine code corrupts JIT buffer accounting).
Call orig_post_shutdown_cb().
Fixed JIT segfault on switch over a string reference holding a non-string value.
Fixed AArch64 JIT encoding of invalid logical immediates.
Fixed unsound shift_left_overflows range when shift wraps.
Fixed bug GH-23896 (Assertion failure in zend_call_function() after a throwing deprecation).
Fixed use-after-free when a dl()-loaded extension declares a frameless function and a later request calls it.
Fixed System V shared memory emulation for Windows attaching segments past the end of their mapping.
Fixed bug GH-24050 (GC frees an object still held by a resurrected closure when (object) and use share an array).
Fixed exception thrown by destructor during GC in a Fiber not being rethrown into the frame that triggered the GC.
BCMath:
Fixed BcMath\Number results that truncate to zero keeping a negative sign and comparing less than zero.
BZ2:
Fixed double close of the descriptor and use-after-free of the inner stream when bzopen() is given a stream resource.
CLI:
Fix GH-22567 (Windows ZTS CLI SAPI should refresh its TSRMLS cache during request activation).
Fixed bug GH-23764 (Built-in server leaks a file descriptor on every HEAD request for a static file).
Fixed crash in the built-in server when a client is reset before being accepted.
Fixed the built-in server truncating an error page and leaking its unsent part after a partial socket write.
DOM:
Fixed use-after-free when re-constructing a DOMXPath whose php:function registrations are freed while still reachable from the cycle collector.
Fixed bug GH-23365 (DOMNode::insertBefore($n, $n) drops the node and leaves a self-referencing sibling list).
Fixed Dom\HTMLDocument::getElementById() not finding ids of SVG and MathML elements.
Fixed Dom\HTMLDocument giving attributes the namespace of their element when a fragment is parsed with an xlink, xml or xmlns context element.
Fixed bug GH-23729 (DOMXPath::__construct() use-after-free during an evaluation).
Fixed bug GH-23897 (php:function() assertion failure after a failed registerPHPFunctions()).
Fixed DOMXPath and Dom\XPath losing the context node and in-scope namespaces of an evaluation after a php:function() callback evaluated another expression on the same object.
FFI:
Fixed crashes with FFI callbacks created from __call() trampolines and array callables whose object is released.
FTP:
Fixed bug GH-23619 (cryptic error on servers that don't support TLS session resumption on data connection).
GD:
Fixed undefined behavior with GD2 images with `INT_MAX`-sized chunks.
Fixed undefined behavior with GIFs with problematic LZW compression data.
Intl:
Fixed IntlDateFormatter::parse(), localtime() and parseToCalendar() treating the offset as UTF-16 code units instead of bytes.
Fixed cloning IntlDateFormatter and MessageFormatter losing PHP-side state such as dateType, timeType, calendar and the message pattern.
Fixed Collator attribute and strength methods not rejecting an unconstructed Collator.
Fixed grapheme_strstr() and grapheme_stristr() returning incorrect substrings when supplementary characters precede the match.
Fixed grapheme_strstr() and grapheme_strpos() missing canonically equivalent matches, and grapheme searches reporting ICU errors for empty haystacks.
Fixed grapheme_strrpos() and grapheme_strripos() skipping overlapping matches when using a negative offset.
Lexbor:
Merge patches lexbor/lexbor@8a14bc0 and lexbor/lexbor@f67ce4b, fixing a heap buffer overflow in :lexbor-contains() parsing and buffer overflows in malformed decode replay.
MBString:
Fixed bug GH-23106 (mb_strpos() reads past the end of a haystack ending in a truncated UTF-8 sequence).
Fixed mbstring functions emitting surrogates in UTF-8 output and flagging it as valid UTF-8.
MySQLi:
Fix GH-22854: Fixed failed assertion when accessing mysqli property after failed reconnection.
MySQLnd:
Fixed field_count not resetting on OK packet.
Fixed memory leak when closing a prepared statement after its connection was killed.
Opcache:
Fixed OSS-Fuzz #546798343 (Heap-buffer-overflow in optimizer with FCCs and inlining).
Fixed bug GH-23693 (Tracing JIT produces wrong results for a guard on a loop-invariant addition).
Fixed OSS-Fuzz #5674034779193344 (Read of uninitialized memory in is_cacheable_stream_path()).
Fixed bug GH-23637 (PHP-FPM worker SIGSEGV: run_time_cache map_ptr offset beyond CG(map_ptr_last) when a class is reached through the CE cache).
Fix multiple incorrect DCE due to unsound escape analysis.
Fixed bug GH-24063 (OPcache optimizer folds `$cond ? -0.0 : 0.0` into a single `-0.0` constant).
Fixed crash when a file cache is reused with a different set of extensions declaring frameless functions.
Fixed bug GH-23991 (JIT generates invalid IR for multiple recursive calls).
Fix SCCP evaluation of isset()/empty() on dimension of non-escaping object.
OpenSSL:
Fixed stream_socket_enable_crypto() leaving the socket non-blocking after a handshake timeout.
Fixed feof() on a TLS stream staying false after a close_notify on Windows.
PCNTL:
Fixed pcntl_signal_dispatch() dropping the queued signals when it runs while an exception is pending.
Fixed pcntl_signal_dispatch() dropping the signals queued behind a handler that throws.
Fixed pcntl_setcpuaffinity() error message advertising the cpu count as the inclusive upper bound.
Fixed pcntl_setqos_class() requiring its optional $qos_class argument.
Fixed bug GH-23986 (/proc/self paths resolve to the parent process after pcntl_fork()).
PDO:
Fixed PDOStatement::getColumnMeta() reading out of bounds for an invalid column index.
Fixed PDOStatement::bindColumn() registering a binding for a column name that is not in the result set.
Fixed PDOStatement::execute() leaving the previous result available after a failed execution.
Fixed a use-after-free when bindValue()/execute()/closeCursor() is called from a bound parameter's __toString() during execute().
Fixed bug GH-23962 (Destroying a persistent PDO instance rolls back a transaction still in use by another instance).
Fixed PDO::setAttribute() installing a PDO::ATTR_STATEMENT_CLASS class whose constructor arguments it rejects.
Fixed PDO::ATTR_STATEMENT_CLASS constructor_args type errors reporting "array given" regardless of the value passed.
Fixed PDOStatement::bindParam() and bindColumn() leaking the driver options value.
Fixed PDOStatement not reporting its bound parameters and columns to the cycle collector.
Fixed PDOStatement::setFetchMode() not applying changes atomically.
PDO_DBLIB:
Fixed bug GH-23741 (segfault after a failed query inside a PDO transaction). Errors raised by beginTransaction(), commit(), rollBack() and lastInsertId() are now reported instead of being dropped.
PDO_Firebird:
Fixed bug GH-23758 (PDO_Firebird returns null for non-null empty BLOBs).
Readline:
Fixed a heap over-read in the interactive shell prompt when cli.prompt is set to an empty string.
Session:
Fixed session_start() continuing after a failed create_sid() when session.use_strict_mode rejects the supplied ID.
Fixed exceptions from user-defined create_sid() handlers being replaced by return-value validation errors.
SimpleXML:
Fixed reconstructing a SimpleXMLElement freeing a child element that another variable still references.
SOAP:
Fixed bug GH-22895 (Heap use-after-free while encoding a Traversable with an illegal key).
Fixed memory leak when load_wsdl_ex() failed to load.
Sockets:
Fixed socket_select() silently truncating sets larger than FD_SETSIZE on Windows.
SPL:
Fixed SplFixedArray::setSize() doing nothing on subclasses whose constructor does not call parent::__construct().
Fixed memory leak when __construct(), __wakeup() or __unserialize() is called from an element destructor during setSize(0).
SQLite:
Fixed a crash when SQLite3::close() is called from a userland callback.
Standard:
Fixed sha1_file() returning a digest for incomplete data after a stream read failure.
Fixed iptcembed() corrupting JPEG headers when called recursively from an output handler.
Fixed proc_open() leaking descriptor zero when descriptor setup fails.
Fixed three Windows-only proc_open() defects: an uninitialized PROCESS_INFORMATION, an indeterminate comspec pointer after a failed lookup, and an unchecked CreateFileA() failure.
Fix persistent stream context lifetime during shutdown (Levi Morrison)
Fix wordwrap() ignoring an existing break at the end of the string (Nicolas Grekas)
Fixed convert.quoted-printable-decode decoding lowercase hex digits to the wrong byte.
Tidy:
Fixed a use-after-free when a tidyNode is used after its document is reparsed.
XSL:
Fixed bug GH-23730 (use-after-free when XSLTProcessor::importStylesheet() is called during a transformation).
Zip:
Fixed ZipArchive::extractTo() ignoring files given in a non-list array.
Fixed bug GH-23747 (ZipArchive::close() use-after-free from a progress or cancel callback).
Version 8.4.26
BCMath:
Fixed out-of-bounds read in bc_is_zero_for_scale() when scale exceeds n_scale.
Core:
Fixed out-of-bounds reads during automatic UTF-16/32 encoding detection.
Fixed bug GH-15375 (Nested "yield from" skips items after a valid() or next() call on the inner generator).
Fixed bug GH-23232 (lone namespace separator asks the autoloader for an empty class name).
Fixed bug GH-23301 (Nested "yield from" yields a value twice when the middle generator delegates again).
CLI:
Fixed bug GH-23425 (sapi_cli_server_send_headers() does not check the return value of php_cli_server_client_send_through()).
DOM:
Fixed NamedNodeMap::getNamedItemNS() with an empty URI not matching the null namespace in spec-following mode.
Fixed a use-after-free when cloning a DOMNameSpaceNode after DOMDocument::xinclude().
Fixed bug GH-23331 (UAF when node_list_unlink() skips attribute children that still have a live wrapper).
Fixed a use-after-free when Dom\Element::setAttributeNS() replaces the value of an attribute whose child still has a live wrapper.
GD:
Fixed imageaffinematrixget() and imageaffinematrixconcat() reporting the wrong argument in error messages.
Fixed bug GH-23457 (imagebmp() is extremely slow when writing to a file).
Fixed writing to a dimension of the object returned by attributes() not creating the attribute.
Fixed child elements of the element returned by SimpleXMLElement::addChild() not being accessible by property name when namespaces are involved.
Windows:
Fixed GHSA-9f67-6fw4-hpfp (Reserved device names are not rejected before file and stream I/O). (CVE-2026-17545)
Zip:
Fixed bug GH-23276 (ZipArchive subclass storing its own stream cannot be garbage collected).
Fixed ZipArchive::extractTo() and ZipArchive::getFrom*() reporting success on corrupted entries.
Fixed ZipArchive::getNameIndex() truncating the entry index to int.
Fixed fstat() on a zip:// stream reporting success when the archive cannot be opened.
SAPI:
Fixed fuzzer targets failing to build in isolation.
Fixed returns uninitialized value on LiteSpeed lsapi SAPI (Go Kudo)
Version 8.4.25
Core:
Fixed bug GH-23088 (Stack overflow when comparing deeply nested arrays).
Date:
Fixed leak on double DatePeriod::__construct() call.
DOM:
Fixed bug GH-23116 (Stack overflow when normalizing a deeply nested DOMDocument).
Fixed bug GH-23117 (Stack overflow when normalizing a deeply nested Dom\XMLDocument).
Fixed bug GH-22825 (DOMElement::setAttribute() fails silently when the DTD declares a default value for the attribute).
Fixed bug GH-22447 (UAF at dom_objects_free_storage when setting an attribute node that collides by local name with a namespaced attribute).
Fixed bug GH-23120 (Stack overflow when comparing deeply nested DOM nodes with DOMNode::isEqualNode()).
LibXML:
Fixed bug GH-22752 (Build failure with libxml 2.15).
MBString:
Fixed bug GH-22779 (mb_strrpos() returns the wrong position for a negative offset in a non-UTF-8 encoding).
Fixed bug GH-21036 (mb_ereg_search_getregs() crashes after mb_eregi() invalidates the regex cache).
Opcache:
Fixed bug GH-22857 (Function JIT emits wrong code for FETCH_OBJ_FUNC_ARG on a property hook getter, losing register-held variables).
Fixed bug GH-22916 (Preserve parent regs in zend_jit_deoptimizer_start()).
OpenSSL:
Fix missing error check on invalid alpn protocols.
PCRE:
Fixed bug GH-21134 (Crash with \C + UTF-8). Using \C in UTF-8 patterns is now forbidden.
Reflection:
Fixed bug GH-22905 (Reflection exception messages truncate on null bytes).
Fixed ReflectionProperty::isLazy() and skipLazyInitialization() using the parent slot when a child class hooks an inherited property.
Fixed segfault in ReflectionMethod::createFromMethodName() on an uninstantiable subclass.
Session:
Fix corruption in mod_mm.
Fixed bug GH-23043 (broken session id code can cause zend_mm_heap corrupted).
SimpleXML:
Fixed integer element offsets that cannot resolve aliasing an existing element.
Fixed segfault when comparing uninitialized SimpleXMLElement instances.
Sockets:
Fixed various memory related issues in ext/sockets.
SQLite:
Fix leak when trying to close db if blob stream is still open.
Standard:
Fixed bug GH-23111 (Stack overflow in array_walk_recursive() with deeply nested arrays).
Fixed bug GH-23113 (Stack overflow in array_replace_recursive() with deeply nested arrays).
Fixed bug GH-23115 (Stack overflow in compact() with deeply nested arrays).
Fixed stack overflow in count() with COUNT_RECURSIVE and deeply nested arrays.
Streams:
Fixed bug GH-15836 (Use-after-free when a user stream filter accesses $this->stream during the close flush).
Sysvshm:
Fixed out-of-bounds write when shm_attach() opens an existing segment with a size larger than the segment actually is.
XSL:
Fixed use-after-free when a DOMDocument subclass __clone() retains the stylesheet copy made by XSLTProcessor::importStylesheet().
Zip:
Fixed ZipArchive::addGlob() and ZipArchive::addPattern() ignoring their default options when no options array is given.
Version 8.4.24
BCMath:
Fixed GHSA-x692-q9x7-8c3f (Out-of-bounds write in bccomp()). (CVE-2026-17544)
Calendar:
Fixed bug GH-22602 (gregoriantojd() and juliantojd() integer overflow with INT_MAX year).
Date:
Update timelib to 2022.17.
Fixed bug GH-19803 (Parsing a string with a single white space does create an error).
Fixed Unix timestamps in February of the year 0 are misparsed with @-notation.
Fixed bug GH-11310 (__debugInfo does nothing on userland classes extending Date classes).
DBA:
Fixed OOB read on malformed length field in dba flatfile handler.
DOM:
Fixed bug GH-22570 (Stack overflow when serializing a deeply nested Dom\XMLDocument).
Exif:
Fixed bug GH-11020 (exif_read_data() emits a spurious "Illegal IFD size" warning when an IFD is not followed by a next-IFD offset).
GD:
Upgrade libgd. (CVE-2026-9672)
Hash:
Fixed bug GH-18173 (ext/hash relies on implementation-defined malloc alignment).
Intl:
Fixed Locale::lookup() and locale_lookup() to return NULL instead of the fallback locale when a language tag cannot be canonicalized.
Fixed memory leaks when calling Collator::__construct() or Spoofchecker::__construct() twice.
Fixed IntlChar methods leaving stale global error state after successful calls.
ODBC:
Fixed bug GH-22668 (Heap buffer over-read when a column value exceeds the driver-reported display size).
OpenSSL:
Fixed timeout for supplemental read at end of a blocking stream in SSL stream wrapper.
PDO_ODBC:
Fixed bug GH-20726 (Crash with ODBC connection pooling when the DSN carries no credentials).
Fixed bug GH-22667 (Heap buffer over-read when a column value exceeds the driver-reported display size).
Fixed bug GH-22666 (Heap buffer overflow when an output parameter value is longer than the declared maxlen).
Fixed bug GH-22665 (Out-of-bounds write when the ODBC driver reports a diagnostic message length beyond the error buffer).
PGSQL:
Fixed GHSA-7qpv-r5mr-78m4 (SQL injection via E'...' backslash breakout). (CVE-2026-17543)
Phar:
Fixed inconsistent handling of the magic ".phar" directory. Paths such as "/.phar" remain protected, while non-magic paths that merely start with ".phar" are handled consistently across file and directory creation, copying, ArrayAccess, stream lookup, directory iteration and extraction.
Fixed bug GH-17387 (Trivial crash in phpdbg lexer).
Fixed fleaked lowercased lookup keys in phpdbg_resolve_opline_break.
Fixed off-by-one in phpdbg_safe_class_lookup() causing class lookups to always fail during phpdbg's signal-safe interruption path.
Reflection:
Fixed bug GH-22324 (Ignore leading namespace separator in ReflectionParameter::__construct()).
Fixed bug GH-22441 (ReflectionClass::hasProperty() and getProperty() ignore dynamic properties shadowing a private parent property).
Fixed bug GH-22658 (ReflectionConstant::__toString() with a string value with null bytes truncates output).
Fixed bug GH-22681 (Reflection*::__toString() truncates on null bytes).
Session:
Fixed bug GH-21314 (Different session garbage collector behavior between PHP 8.3 and PHP 8.5).
SPL:
Fix class_parents for classes with leading slash in non-autoload mode.
Ignore leading back-slash in class_parents(), class_implements(), and class_uses().
Fixed bug GH-16217 (SplFileObject::fputcsv() on an uninitialized object segfaults).
Standard:
Fixed bug GH-22360 (convert.base64-encode corruption on incremental flush).
Fixed bug GH-22395 (base_convert() outputs at most 64 characters).
Fixed integer overflow in getimagesize() and getimagesizefromstring() when parsing an IFF chunk with a size of INT_MAX.
Fixed bug GH-22678 (Use-after-free in array_multisort() when the comparator mutates the array being sorted).
Streams:
Fixed bug GH-22617 (persistent stream keys truncated at null bytes, causing distinct abstract unix domain sockets to share a resource).
Zip:
Fixed bug GH-22649 (ZipArchive::setCommentName() and setCommentIndex() could crash after overwriting an entry and resetting its inherited unchanged comment).
Fixed bug GH-21705 (ZipArchive::getFromIndex() ignores ZipArchive::FL_UNCHANGED for deleted entries).
Version 8.4.23
Core:
Fixed bug GH-22280 (Incorrect compile error for goto to label preceding try/finally block).
BCMath:
Fixed issues with oversized allocations and signed overflow in bcround() and BcMath\Number::round().
Date:
Fix incorrect recurrence check of DatePeriod::createFromISO8601String().
DOM:
Fix GH-22219 (Dom\XMLDocument::schemaValidate fails to resolve xs:QName with prefix from imported schema).
Exif:
Read correct value for single and double tags.
GD:
Fixed bug GH-22121 (Double free in gdImageSetStyle() after overflow-triggered early return).
Fixed bug GH-19666 (imageconvolution() unexpected nan filter value).
Fix incorrect argument positions for uninitialized calendar arguments in IntlCalendar::equals(), ::before(), ::after(), and ::isEquivalentTo(), and for invalid start/end arguments in transliterator_transliterate().
Fixed IntlTimeZone::getDisplayName() to synchronize object error state for invalid display types.
Fixed Spoofchecker restriction-level APIs to only be exposed with ICU 53 and later.
mysqli:
Fix stmt->query leak in mysqli_execute_query() validation errors.
Opcache:
Fixed bug GH-20469 (Unsafe inheritance cache replay with reentrant autoloading).
OpenSSL:
Fixed bug GH-22187 (Memory corruption (zend_mm_heap corrupted) in openssl_encrypt with AES-WRAP-PAD). (CVE-2026-14355)
Phar:
Fixed a bypass of the magic ".phar" directory protection in Phar::addEmptyDir() for paths starting with "/.phar", while allowing non-magic directory names that merely share the ".phar" prefix.
Reflection:
Preserve class-name case in ReflectionClass::getProperty() error messages and autoloading.
Sqlite:
Fix error checks for column retrieval.
Zlib:
Fixed memory leak if deflate initialization fails and there is a dict.
Fixed memory leak in inflate_add().
Zip:
Fixed error-related memory leaks.
Version 8.4.22
Date:
Fixed bug GH-18422 (int overflow in php_date_llabs).
Intl:
Fix incorrect argument positions in out-of-bounds errors for IntlCalendar::set(), IntlCalendar::setDate(), IntlCalendar::setDateTime(), and IntlGregorianCalendar date/time construction.
Expose Spoofchecker restriction-level APIs on all supported ICU versions.
Fix SpoofChecker::setAllowedChars() and IntlDateFormatter::__construct() to report PHP constant names instead of ICU constant names in user-visible error messages.
MySQLnd:
Fix persistent free of non-persistent connect_attr key (David Carlier).
Opcache:
Fixed tracing JIT crash when a VM interrupt is handled during an observed user function call.
Fixed bug GH-22004 (Assertion failure at ext/opcache/jit/zend_jit_trace.c).
OpenSSL:
Fix compatibility issues with OpenSSL 4.0.
SPL:
Fix SplFixedArray::setSize leak when destructor grows during clear.
Fixed bug GH-21933 (use after free of self-freeing MultipleIterator children).
Standard:
Fixed bug GH-21689 (version_compare() incorrectly handles versions ending with a dot).
Fixed ip2long() leading zeros handling inconsistency on AIX.
Version 8.4.21
Core:
Fixed bug GH-19983 (GC assertion failure with fibers, generators and destructors).
Fixed bug GH-21478 (Forward property operations to real instance for initialized lazy proxies).
Fixed bug GH-21605 (Missing addref for Countable::count()).
Fixed bug GH-21699 (Assertion failure in shutdown_executor when resolving self::/parent::/static:: callables if the error handler throws).
Fixed bug GH-18639 (Internal class aliases can break preloading + JIT).
Fixed bug GH-18899 (JIT function crash when emitting undefined variable warning and opline is not set yet).
Fixed bug GH-14082 (Segmentation fault on unknown address 0x600000000018 in ext/opcache/jit/zend_jit.c).
Fixed bug GH-18898 (SEGV zend_jit_op_array_hot with property hooks and preloading).
OpenSSL:
Fixed bug #80770 (It is not possible to get client peer certificate with stream_socket_server).
PCNTL:
Fixed bug GH-18958 (Fatal error during shutdown after pcntl_rfork() or pcntl_forkx() with zend-max-execution-timers).
Phar:
Fix stream double free in phar.
Fix phar crash and file corruption with SplFileObject.
SOAP:
Fixed bug GH-18990, bug #81029, bug #47314 (SOAP HTTP socket not closing on object destruction).
Fix memory leak when URL parsing fails in redirect.
SPL:
Fixed bug GH-19094 (Attaching class with no Iterator implementation to MultipleIterator causes crash).
Standard:
Fix misleading errors in printf().
Fix RCN violations in array functions.
Fixed GH-18976 pack() overflow with h/H format and INT_MAX repeater value.
Streams:
Fixed GH-13264 (fgets() and stream_get_line() do not return false on filter fatal error).
Zip:
Fix leak when path is too long in ZipArchive::extractTo().
Version 8.4.10
BcMath:
Fixed bug GH-18641 (Accessing a BcMath\Number property by ref crashes).
Core:
Fixed bugs GH-17711 and GH-18022 (Infinite recursion on deprecated attribute evaluation) and GH-18464 (Recursion protection for deprecation constants not released on bailout).
Fixed GH-18695 (zend_ast_export() - float number is not preserved).
Fix handling of references in zval_try_get_long().
Do not delete main chunk in zend_gc.
Fix compile issues with zend_alloc and some non-default options.
Curl:
Fix memory leak when setting a list via curl_setopt fails.
Date:
Fix leaks with multiple calls to DatePeriod iterator current().
DOM:
Fixed bug GH-18744 (classList works not correctly if copy HTMLElement by clone keyword).
Fix memory leak in intl_datetime_decompose() on failure.
Fix memory leak in locale lookup on failure.
Opcache:
Fixed bug GH-18743 (Incompatibility in Inline TLS Assembly on Alpine 3.22).
ODBC:
Fix memory leak on php_odbc_fetch_hash() failure.
OpenSSL:
Fix memory leak of X509_STORE in php_openssl_setup_verify() on failure.
Fixed bug #74796 (Requests through http proxy set peer name).
PGSQL:
Fixed GHSA-hrwm-9436-5mv3 (pgsql extension does not check for errors during escaping). (CVE-2025-1735)
Fix warning not being emitted when failure to cancel a query with pg_cancel_query().
PDO ODBC:
Fix memory leak if WideCharToMultiByte() fails.
PDO Sqlite:
Fixed memory leak with Pdo_Sqlite::createCollation when the callback has an incorrect return type.
Phar:
Add missing filter cleanups on phar failure.
Fixed bug GH-18642 (Signed integer overflow in ext/phar fseek).
PHPDBG:
Fix 'phpdbg --help' segfault on shutdown with USE_ZEND_ALLOC=0.
Random:
Fix reference type confusion and leak in user random engine.
Readline:
Fix memory leak when calloc() fails in php_readline_completion_cb().
SimpleXML:
Fixed bug GH-18597 (Heap-buffer-overflow in zend_alloc.c when assigning string with UTF-8 bytes).
SOAP:
Fix memory leaks in php_http.c when call_user_function() fails.
Fixed GHSA-453j-q27h-5p8x (NULL Pointer Dereference in PHP SOAP Extension via Large XML Namespace Prefix). (CVE-2025-6491)
Standard:
Fixed GHSA-3cr5-j632-f35r (Null byte termination in hostnames). (CVE-2025-1220)
Tidy:
Fix memory leak in tidy output handler on error.
Fix tidyOptIsReadonly deprecation, using tidyOptGetCategory.
Version 8.4.8
Core:
Fixed GH-18480 (array_splice with large values for offset/length arguments).
Partially fixed GH-18572 (nested object comparisons leading to stack overflow).
Fixed OSS-Fuzz #417078295.
Fixed OSS-Fuzz #418106144.
Curl:
Fixed GH-18460 (curl_easy_setopt with CURLOPT_USERPWD/CURLOPT_USERNAME/ CURLOPT_PASSWORD set the Authorization header when set to NULL).
Date:
Fixed bug GH-18076 (Since PHP 8, the date_sun_info() function returns inaccurate sunrise and sunset times, but other calculated times are correct) (JiriJozif).
Fixed bug GH-18481 (date_sunrise with unexpected nan value for the offset).
DOM:
Backport lexbor/lexbor#274.
Intl:
Fix various reference issues.
LDAP:
Fixed bug GH-18529 (ldap no longer respects TLS_CACERT from ldaprc in ldap_start_tls()).
Opcache:
Fixed bug GH-18417 (Windows SHM reattachment fails when increasing memory_consumption or jit_buffer_size).
Fixed bug GH-18297 (Exception not handled when jit guard is triggered).
Fixed bug GH-18408 (Snapshotted poly_func / poly_this may be spilled).
Fixed bug GH-18567 (Preloading with internal class alias triggers assertion failure).
Fixed bug GH-18534 (FPM exit code 70 with enabled opcache and hooked properties in traits).
Fix leak of accel_globals->key.
OpenSSL:
Fix missing checks against php_set_blocking() in xp_ssl.c.
SPL:
Fixed bug GH-18421 (Integer overflow with large numbers in LimitIterator).
Standard:
Fixed bug GH-17403 (Potential deadlock when putenv fails).
Fixed bug GH-18400 (http_build_query type error is inaccurate).
Fixed bug GH-18509 (Dynamic calls to assert() ignore zend.assertions).
Windows:
Fix leak+crash with sapi_windows_set_ctrl_handler().
Zip:
Fixed bug GH-18431 (Registering ZIP progress callback twice doesn't work).
Fixed bug GH-18438 (Handling of empty data and errors in ZipArchive::addPattern).
Fix GH-14978 (The xmlreader extension phpize build).
Throw Error exception when encountering recursion during comparison, rather than fatal error.
Added missing cstddef include for C++ builds.
Updated build system scripts config.guess to 2024-07-27 and config.sub to 2024-05-27.
Fixed bug GH-15240 (Infinite recursion in trait hook).
Fixed bug GH-15140 (Missing variance check for abstract set with asymmetric type).
Fixed bug GH-15181 (Disabled output handler is flushed again).
Passing E_USER_ERROR to trigger_error() is now deprecated.
Fixed bug GH-15292 (Dynamic AVX detection is broken for MSVC).
Using "_" as a class name is now deprecated.
Exiting a namespace now clears seen symbols.
The exit (and die) language constructs now behave more like a function. They can be passed liked callables, are affected by the strict_types declare statement, and now perform the usual type coercions instead of casting any non-integer value to a string. As such, passing invalid types to exit/die may now result in a TypeError being thrown.
Fixed bug GH-15438 (Hooks on constructor promoted properties without visibility are ignored).
Fixed bug GH-15419 (Missing readonly+hook incompatibility check for readonly classes).
resourcebundle_get(), ResourceBundle::get(), and accessing offsets on a ResourceBundle object now throw: - TypeError for invalid offset types - ValueError for an empty string - ValueError if the integer index does not fit in a signed 32 bit integer
ResourceBundle::get() now has a tentative return type of: ResourceBundle|array|string|int|null
Added the new Grapheme function grapheme_str_split.
Added IntlDateFormatter::parseToCalendar.
Added SpoofChecker::setAllowedChars to set unicode chars ranges.
The mysqli_ping() function and mysqli::ping() method are now deprecated, as the reconnect feature was removed in PHP 8.2.
The mysqli_kill() function and mysqli::kill() method are now deprecated. If this functionality is needed a SQL "KILL" command can be used instead.
The mysqli_refresh() function and mysqli::refresh() method are now deprecated. If this functionality is needed a SQL "FLUSH" command can be used instead.
Passing explicitly the $mode parameter to mysqli_store_result() has been deprecated. As the MYSQLI_STORE_RESULT_COPY_DATA constant was only used in conjunction with this function it has also been deprecated.
Fixed bug #44383 (PHP DateTime not converted to xsd:datetime).
Fixed bug GH-11941 (soap with session persistence will silently fail when "session" built as a shared object).
Passing an int to SoapServer::addFunction() is now deprecated. If all PHP functions need to be provided flatten the array returned by get_defined_functions().
The SOAP_FUNCTIONS_ALL constant is now deprecated.
Fixed bug #61525 (SOAP functions require at least one space after HTTP header colon).
Added the SOCK_CONN_DGRAM/SOCK_DCCP netbsd constants.
Added multicast group support for ipv4 on FreeBSD.
Added the TCP_SYNCNT constant for Linux to set number of attempts to send SYN packets from the client.
Added the SO_EXCLBIND constant for exclusive socket binding on illumos/solaris.
Updated the socket_create_listen backlog argument default value to SOMAXCONN.
Added the SO_NOSIGPIPE constant to control the generation of SIGPIPE for macOs and FreeBSD.
Added SO_LINGER_SEC for macOs, true equivalent of SO_LINGER in other platforms.
Add close-on-exec on socket created with socket_accept on unixes.
Added IP_PORTRANGE* constants for BSD systems to control ephemeral port ranges.
Added SOCK_NONBLOCK/SOCK_CLOEXEC constants for socket_create and socket_create_pair to apply O_NONBLOCK/O_CLOEXEC flags to the newly created sockets.
Added SO_BINDTOIFINDEX to bind a socket to an interface index.
Sodium:
Add support for AEGIS-128L and AEGIS-256.
Enable AES-GCM on aarch64 with the ARM crypto extensions.
SPL:
Implement SeekableIterator for SplObjectStorage.
The SplFixedArray::__wakeup() method has been deprecated as it implements __serialize() and __unserialize() which need to be overwritten instead.
Passing a non-empty string for the $escape parameter of: - SplFileObject::setCsvControl() - SplFileObject::fputcsv() - SplFileObject::fgetcsv() is now deprecated.
Standard:
Implement GH-12188 (Indication for the int size in phpinfo()).
Partly fix GH-12143 (Incorrect round() result for 0.49999999999999994).
Fix GH-12252 (round(): Validate the rounding mode).
Increase the default BCrypt cost to 12.
Fixed bug GH-12592 (strcspn() odd behaviour with NUL bytes and empty mask).
Removed the deprecated inet_ntoa call support.
Cast large floats that are within int range to int in number_format so the precision is not lost.
Add support for 4 new rounding modes to the round() function.
debug_zval_dump() now indicates whether an array is packed.
Changed return type of long2ip to string from string|false.
Fix GH-12143 (Extend the maximum precision round can handle by one digit).
Added the http_get_last_response_headers() and http_clear_last_response_headers() that allows retrieving the same content as the magic $http_response_header variable.
Add php_base64_encode_ex() API.
Implemented "Raising zero to the power of negative number" RFC.
Added array_find(), array_find_key(), array_all(), and array_any().
Change highlight_string() and print_r() return type to string|true.
Fix references in request_parse_body() options array.
Add RoundingMode enum.
Unserializing the uppercase 'S' tag is now deprecated.
Enables crc32 auxiliary detection on OpenBSD.
Passing a non-empty string for the $escape parameter of: - fputcsv() - fgetcsv() - str_getcsv() is now deprecated.
The str_getcsv() function now throws ValueErrors when the $separator and $enclosure arguments are not one byte long, or if the $escape is not one byte long or the empty string. This aligns the behaviour to be identical to that of fputcsv() and fgetcsv().
php_uname() now throws ValueErrors on invalid inputs.
The "allowed_classes" option for unserialize() now throws TypeErrors and ValueErrors if it is not an array of class names.
Implemented GH-15685 (improve proc_open error reporting on Windows).
Add support for backed enums in http_build_query().
Fixed bug GH-15982 (Assertion failure with array_find when references are involved).
Fixed parameter names of fpow() to be identical to pow().
Streams:
Implemented GH-15155 (Stream context is lost when custom stream wrapper is being filtered).
Tidy:
Failures in the constructor now throw exceptions rather than emitting warnings and having a broken object.
Add tidyNode::getNextSibling() and tidyNode::getPreviousSibling().
Windows:
Update the icon of the Windows executables, e.g. php.exe.
Fixed bug GH-19577 (Avoid integer overflow when using a small offset and PHP_INT_MAX with LimitIterator).
Streams:
Remove incorrect call to zval_ptr_dtor() in user_wrapper_metadata().
Fix OSS-Fuzz #385993744.
Tidy:
Fixed GH-19021 build issue with libtidy in regard of tidyOptIsReadonly deprecation and TidyInternalCategory being available later than tidyOptGetCategory.
Zip:
Fix memory leak in zip when encountering empty glob result.
Version 8.3.25
Core:
Fixed GH-19169 build issue with C++17 and ZEND_STATIC_ASSERT macro.
Fixed bug GH-18581 (Coerce numeric string keys from iterators when argument unpacking).
Fixed OSS-Fuzz #434346548 (Failed assertion with throwing __toString in binary const expr).
Fixed bug GH-19305 (Operands may be being released during comparison).
Fix memory leak in intl_datetime_decompose() on failure.
Fix memory leak in locale lookup on failure.
ODBC:
Fix memory leak on php_odbc_fetch_hash() failure.
Opcache:
Fixed bug GH-18743 (Incompatibility in Inline TLS Assembly on Alpine 3.22).
OpenSSL:
Fix memory leak of X509_STORE in php_openssl_setup_verify() on failure.
Fixed bug #74796 (Requests through http proxy set peer name).
PGSQL:
Fixed GHSA-hrwm-9436-5mv3 (pgsql extension does not check for errors during escaping). (CVE-2025-1735)
Fix warning not being emitted when failure to cancel a query with pg_cancel_query().
Phar:
Add missing filter cleanups on phar failure.
Fixed bug GH-18642 (Signed integer overflow in ext/phar fseek).
PHPDBG:
Fix 'phpdbg --help' segfault on shutdown with USE_ZEND_ALLOC=0.
PDO ODBC:
Fix memory leak if WideCharToMultiByte() fails.
Random:
Fix reference type confusion and leak in user random engine.
Readline:
Fix memory leak when calloc() fails in php_readline_completion_cb().
SOAP:
Fix memory leaks in php_http.c when call_user_function() fails.
Fixed GHSA-453j-q27h-5p8x (NULL Pointer Dereference in PHP SOAP Extension via Large XML Namespace Prefix). (CVE-2025-6491)
Standard:
Fixed GHSA-3cr5-j632-f35r (Null byte termination in hostnames). (CVE-2025-1220)
Tidy:
Fix memory leak in tidy output handler on error.
Fix tidyOptIsReadonly deprecation, using tidyOptGetCategory.
Version 8.3.22
Core:
Fixed GH-18480 (array_splice with large values for offset/length arguments).
Partially fixed GH-18572 (nested object comparisons leading to stack overflow).
Fixed OSS-Fuzz #417078295.
Fixed OSS-Fuzz #418106144.
Curl:
Fixed GH-18460 (curl_easy_setopt with CURLOPT_USERPWD/CURLOPT_USERNAME/ CURLOPT_PASSWORD set the Authorization header when set to NULL).
Date:
Fixed bug GH-18076 (Since PHP 8, the date_sun_info() function returns inaccurate sunrise and sunset times, but other calculated times are correct) (JiriJozif).
Fixed bug GH-18481 (date_sunrise with unexpected nan value for the offset).
Intl:
Fix various reference issues.
LDAP:
Fixed bug GH-18529 (ldap no longer respects TLS_CACERT from ldaprc in ldap_start_tls()).
Opcache:
Fixed bug GH-18417 (Windows SHM reattachment fails when increasing memory_consumption or jit_buffer_size).
Fixed bug GH-18567 (Preloading with internal class alias triggers assertion failure).
Fix leak of accel_globals->key.
OpenSSL:
Fix missing checks against php_set_blocking() in xp_ssl.c.
PDO_OCI:
Fixed bug GH-18494 (PDO OCI segfault in statement GC).
SPL:
Fixed bug GH-18421 (Integer overflow with large numbers in LimitIterator).
Standard:
Fixed bug GH-17403 (Potential deadlock when putenv fails).
Fixed bug GH-18509 (Dynamic calls to assert() ignore zend.assertions).
Windows:
Fix leak+crash with sapi_windows_set_ctrl_handler().
Zip:
Fixed bug GH-18431 (Registering ZIP progress callback twice doesn't work).
Fixed bug GH-18438 (Handling of empty data and errors in ZipArchive::addPattern).
Version 8.3.21
Core:
Fixed bug GH-18304 (Changing the properties of a DateInterval through dynamic properties triggers a SegFault).
Fixed bug GH-13970 (Incorrect validation of #[Attribute] flags type for non-compile-time expressions).
DOM:
Fix crashes when entity declaration is removed while still having entity references.
Fix references not handled correctly in C14N.
Fix crash when calling childNodes next() when iterator is exhausted.
Fix crash in ParentNode::append() when dealing with a fragment containing text nodes.
Filter:
Fixed bug GHSA-w8qr-v226-r27w (Filter bypass in filter_var FILTER_VALIDATE_URL). (CVE-2024-5458)
FPM:
Fix bug GH-14175 (Show decimal number instead of scientific notation in systemd status).
Hash:
ext/hash: Swap the checking order of `__has_builtin` and `__GNUC__` (Saki Takamachi)
Intl:
Fixed build regression on systems without C++17 compilers.
MySQLnd:
Fix bug GH-14255 (mysqli_fetch_assoc reports error from nested query).
Opcache:
Fixed bug GH-14109 (Fix accidental persisting of internal class constant in shm).
OpenSSL:
The openssl_private_decrypt function in PHP, when using PKCS1 padding (OPENSSL_PKCS1_PADDING, which is the default), is vulnerable to the Marvin Attack unless it is used with an OpenSSL version that includes the changes from this pull request: https://github.com/openssl/openssl/pull/13817 (rsa_pkcs1_implicit_rejection). These changes are part of OpenSSL 3.2 and have also been backported to stable versions of various Linux distributions, as well as to the PHP builds provided for Windows since the previous release. All distributors and builders should ensure that this version is used to prevent PHP from being vulnerable.
Standard:
Fixed bug GHSA-9fcc-425m-g385 (Bypass of CVE-2024-1874). (CVE-2024-5585)
XML:
Fixed bug GH-14124 (Segmentation fault with XML extension under certain memory limit).
XMLReader:
Fixed bug GH-14183 (XMLReader::open() can't be overridden).
Version 8.3.7
Core:
Fixed zend_call_stack build with Linux/uclibc-ng without thread support.
Fixed bug GH-13772 (Invalid execute_data->opline pointers in observer fcall handlers when JIT is enabled).
Fixed bug GH-13931 (Applying zero offset to null pointer in Zend/zend_opcode.c).
Fixed bug GH-13942 (Align the behavior of zend-max-execution-timers with other timeout implementations).
Fixed bug GH-14003 (Broken cleanup of unfinished calls with callable convert parameters).
Fixed bug GH-14013 (Erroneous dnl appended in configure).
Fixed bug GH-10232 (If autoloading occurs during constant resolution filename and lineno are identified incorrectly).
Removed the BC break on IntlDateFormatter::construct which threw an exception with an invalid locale.
JSON:
Added json_validate().
LDAP:
Deprecate calling ldap_connect() with separate hostname and port.
LibXML:
Fix compile error with -Werror=incompatible-function-pointer-types and old libxml2.
MBString:
mb_detect_encoding is better able to identify the correct encoding for Turkish text.
mb_detect_encoding's "non-strict" mode now behaves as described in the documentation. Previously, it would return false if the same byte (for example, the first byte) of the input string was invalid in all candidate encodings. More generally, it would eliminate candidate encodings from consideration when an invalid byte was seen, and if the same input byte eliminated all remaining encodings still under consideration, it would return false. On the other hand, if all candidate encodings but one were eliminated from consideration, it would return the last remaining one without regard for how many encoding errors might be encountered later in the string. This is different from the behavior described in the documentation, which says: "If strict is set to false, the closest matching encoding will be returned." (Alex Dowad)
mb_strtolower, mb_strtotitle, and mb_convert_case implement conditional casing rules for the Greek letter sigma. For mb_convert_case, conditional casing only applies to MB_CASE_LOWER and MB_CASE_TITLE modes, not to MB_CASE_LOWER_SIMPLE and MB_CASE_TITLE_SIMPLE.
mb_detect_encoding is better able to identify UTF-8 and UTF-16 strings with a byte-order mark.
mb_decode_mimeheader interprets underscores in QPrint-encoded MIME encoded words as required by RFC 2047; they are converted to spaces. Underscores must be encoded as "=5F" in such MIME encoded words.
mb_encode_mimeheader no longer drops NUL (zero) bytes when QPrint-encoding the input string. This previously caused strings in certain text encodings, especially UTF-16 and UTF-32, to be corrupted by mb_encode_mimeheader.
Implement mb_str_pad() RFC.
Fixed bug GH-11514 (PHP 8.3 build fails with --enable-mbstring enabled).
Fix use-after-free of mb_list_encodings() return value.
Fixed bug GH-11992 (utf_encodings.phpt fails on Windows 32-bit).
mysqli:
mysqli_fetch_object raises a ValueError instead of an Exception.
Opcache:
Added start, restart and force restart time to opcache's phpinfo section.
Fix GH-9139: Allow FFI in opcache.preload when opcache.preload_user=root.
Made opcache.preload_user always optional in the cli and phpdbg SAPIs.
Allows W/X bits on page creation on FreeBSD despite system settings.
Added memfd api usage, on Linux, for zend_shared_alloc_create_lock() to create an abstract anonymous file for the opcache's lock.
Avoid resetting JIT counter handlers from multiple processes/threads.
Fixed COPY_TMP type inference for references.
OpenSSL:
Added OPENSSL_CMS_OLDMIMETYPE and PKCS7_NOOLDMIMETYPE contants to switch between mime content types.
Fixed GH-11054: Reset OpenSSL errors when using a PEM public key.
Added support for additional EC parameters in openssl_pkey_new.
PCNTL:
SA_ONSTACK is now set for pcntl_signal.
Added SIGINFO constant.
PCRE:
Update bundled libpcre2 to 10.42.
PGSQL:
pg_fetch_object raises a ValueError instead of an Exception.
pg_cancel use thread safe PQcancel api instead.
pg_trace new PGSQL_TRACE_SUPPRESS_TIMESTAMPS/PGSQL_TRACE_REGRESS_MODE contants support.
Fixed bug GH-13970 (Incorrect validation of #[Attribute] flags type for non-compile-time expressions).
Fixed bug GH-14140 (Floating point bug in range operation on Apple Silicon hardware).
DOM:
Fix crashes when entity declaration is removed while still having entity references.
Fix references not handled correctly in C14N.
Fix crash when calling childNodes next() when iterator is exhausted.
Fix crash in ParentNode::append() when dealing with a fragment containing text nodes.
FFI:
Fixed bug GH-14215 (Cannot use FFI::load on CRLF header file with apache2handler).
Filter:
Fixed bug GHSA-w8qr-v226-r27w (Filter bypass in filter_var FILTER_VALIDATE_URL). (CVE-2024-5458)
FPM:
Fix bug GH-14175 (Show decimal number instead of scientific notation in systemd status).
Hash:
ext/hash: Swap the checking order of `__has_builtin` and `__GNUC__` (Saki Takamachi)
Intl:
Fixed build regression on systems without C++17 compilers.
Ini:
Fixed bug GH-14100 (Corrected spelling mistake in php.ini files).
MySQLnd:
Fix bug GH-14255 (mysqli_fetch_assoc reports error from nested query).
Opcache:
Fixed bug GH-14109 (Fix accidental persisting of internal class constant in shm).
OpenSSL:
The openssl_private_decrypt function in PHP, when using PKCS1 padding (OPENSSL_PKCS1_PADDING, which is the default), is vulnerable to the Marvin Attack unless it is used with an OpenSSL version that includes the changes from this pull request: https://github.com/openssl/openssl/pull/13817 (rsa_pkcs1_implicit_rejection). These changes are part of OpenSSL 3.2 and have also been backported to stable versions of various Linux distributions, as well as to the PHP builds provided for Windows since the previous release. All distributors and builders should ensure that this version is used to prevent PHP from being vulnerable.
Standard:
Fixed bug GHSA-9fcc-425m-g385 (Bypass of CVE-2024-1874). (CVE-2024-5585)
XML:
Fixed bug GH-14124 (Segmentation fault with XML extension under certain memory limit).
XMLReader:
Fixed bug GH-14183 (XMLReader::open() can't be overridden).
Version 8.2.19
Core:
Fixed bug GH-13772 (Invalid execute_data->opline pointers in observer fcall handlers when JIT is enabled).
Fixed bug GH-13931 (Applying zero offset to null pointer in Zend/zend_opcode.c).
Fixed bug GH-13942 (Align the behavior of zend-max-execution-timers with other timeout implementations).
Fixed bug GH-14003 (Broken cleanup of unfinished calls with callable convert parameters).
Fixed bug GH-14013 (Erroneous dnl appended in configure).
Fixed bug GH-10232 (If autoloading occurs during constant resolution filename and lineno are identified incorrectly).
Fixed bug GH-11600 (Can't parse time strings which include (narrow) non-breaking space characters).
Fixed bug GH-11854 (DateTime:createFromFormat stopped parsing datetime with extra space).
DOM:
Fixed bug GH-11625 (DOMElement::replaceWith() doesn't replace node with DOMDocumentFragment but just deletes node or causes wrapping <></> depending on libxml2 version).
Fileinfo:
Fixed bug GH-11298 (finfo returns wrong mime type for xz files).
FTP:
Fix context option check for "overwrite".
Fixed bug GH-10562 (Memory leak and invalid state with consecutive ftp_nb_fget).
GD:
Fix most of the external libgd test failures.
Intl:
Fix memory leak in MessageFormatter::format() on failure.
Libxml:
Fixed bug GHSA-3qrf-m4j2-pcrr (Security issue with external entity loading in XML without enabling it). (CVE-2023-3823)
Updated the mime-type table for the builtin-server.
Fixed potential overflow for the builtin server via the PHP_CLI_SERVER_WORKERS environment variable.
Fixed GH-8575 by changing STDOUT, STDERR and STDIN to not close on resource destruction.
Implement built-in web server responding without body to HEAD request on a static resource.
Implement built-in web server responding with HTTP status 405 to DELETE/PUT/PATCH request on a static resource.
Fixed bug GH-9709 (Null pointer dereference with -w/-s options).
COM:
Fixed bug GH-8750 (Can not create VT_ERROR variant type).
Core:
Fixed bug #81380 (Observer may not be initialized properly).
Fixed bug GH-7771 (Fix filename/lineno of constant expressions).
Fixed bug GH-7792 (Improve class type in error messages).
Support huge pages on MacOS.
Fixed bug GH-8655 (Casting an object to array does not unwrap refcount=1 references).
Fixed bug GH-8661 (Nullsafe in coalesce triggers undefined variable warning).
Fixed bug GH-7821 and GH-8418 (Allow arbitrary const expressions in backed enums).
Fixed bug GH-8810 (Incorrect lineno in backtrace of multi-line function calls).
Optimised code path for newly created file with the stream plain wrapper.
Uses safe_perealloc instead of perealloc for the ZEND_PTR_STACK_RESIZE_IF_NEEDED to avoid possible overflows.
Reduced the memory footprint of strings returned by var_export(), json_encode(), serialize(), iconv_*(), mb_ereg*(), session_create_id(), http_build_query(), strstr(), Reflection*::__toString().
Fixed bug GHSA-h35g-vwh6-m678 (Leak partial content of the heap through heap buffer over-read). (CVE-2024-8929)
PDO DBLIB:
Fixed bug GHSA-5hqh-c84r-qjcv (Integer overflow in the dblib quoter causing OOB writes). (CVE-2024-11236)
PDO Firebird:
Fixed bug GHSA-5hqh-c84r-qjcv (Integer overflow in the firebird quoter causing OOB writes). (CVE-2024-11236)
Streams:
Fixed bug GHSA-c5f2-jwm7-mmq2 (Configuring a proxy in a stream context might allow for CRLF injection in URIs). (CVE-2024-11234)
Fixed bug GHSA-r977-prxv-hc43 (Single byte overread with convert.quoted-printable-decode filter). (CVE-2024-11233)
Version 8.1.30
CGI:
Fixed bug GHSA-p99j-rfp4-xqvq (Bypass of CVE-2024-4577, Parameter Injection Vulnerability). (CVE-2024-8926)
Fixed bug GHSA-94p6-54jq-9mwp (cgi.force_redirect configuration is bypassable due to the environment variable collision). (CVE-2024-8927)
FPM:
Fixed bug GHSA-865w-9rf3-2wh5 (Logs from childrens may be altered). (CVE-2024-9026)
SAPI:
Fixed bug GHSA-9pqp-7h25-4f32 (Erroneous parsing of multipart form data). (CVE-2024-8925)
Version 8.1.29
CGI:
Fixed bug GHSA-3qgc-jrrr-25jv (Bypass of CVE-2012-1823, Argument Injection in PHP-CGI). (CVE-2024-4577)
Filter:
Fixed bug GHSA-w8qr-v226-r27w (Filter bypass in filter_var FILTER_VALIDATE_URL). (CVE-2024-5458)
OpenSSL:
The openssl_private_decrypt function in PHP, when using PKCS1 padding (OPENSSL_PKCS1_PADDING, which is the default), is vulnerable to the Marvin Attack unless it is used with an OpenSSL version that includes the changes from this pull request: https://github.com/openssl/openssl/pull/13817 (rsa_pkcs1_implicit_rejection). These changes are part of OpenSSL 3.2 and have also been backported to stable versions of various Linux distributions, as well as to the PHP builds provided for Windows since the previous release. All distributors and builders should ensure that this version is used to prevent PHP from being vulnerable.
Standard:
Fixed bug GHSA-9fcc-425m-g385 (Bypass of CVE-2024-1874). (CVE-2024-5585)
Version 8.1.28
Standard:
Fixed bug GHSA-pc52-254m-w9w7 (Command injection via array-ish $command parameter of proc_open). (CVE-2024-1874)
Fixed bug GHSA-wpj3-hf5j-x4v4 (__Host-/__Secure- cookie bypass due to partial CVE-2022-31629 fix). (CVE-2024-2756)
Fixed bug GHSA-h746-cjrr-wfmr (password_verify can erroneously return true, opening ATO risk). (CVE-2024-3096)
Version 8.1.27
Core:
Fixed oss-fuzz #54325 (Use-after-free of name in var-var with malicious error handler).
Fixed oss-fuzz #64209 (In-place modification of filename in php_message_handler_for_zend).
Fixed bug GH-12758 / GH-12768 (Invalid opline in OOM handlers within ZEND_FUNC_GET_ARGS and ZEND_BIND_STATIC).
Fixed bug GH-11625 (DOMElement::replaceWith() doesn't replace node with DOMDocumentFragment but just deletes node or causes wrapping <></> depending on libxml2 version).
Fileinfo:
Fixed bug GH-11298 (finfo returns wrong mime type for xz files).
FTP:
Fix context option check for "overwrite".
Fixed bug GH-10562 (Memory leak and invalid state with consecutive ftp_nb_fget).
GD:
Fix most of the external libgd test failures.
Hash:
Fix use-of-uninitialized-value in hash_pbkdf2(), fix missing $options parameter in signature.
Intl:
Fix memory leak in MessageFormatter::format() on failure.
Libxml:
Fixed bug GHSA-3qrf-m4j2-pcrr (Security issue with external entity loading in XML without enabling it). (CVE-2023-3823)
Fix wrong comparison in block optimisation pass after opcode update.
Date:
Fixed bug GH-9891 (DateTime modify with unixtimestamp (@) must work like setTimestamp).
Fixed bug GH-10218 (DateTimeZone fails to parse time zones that contain the "+" character).
Fiber:
Fix assertion on stack allocation size.
FPM:
Fixed bug GH-9981 (FPM does not reset fastcgi.error_header).
Fixed bug #67244 (Wrong owner:group for listening unix socket).
Hash:
Handle exceptions from __toString in XXH3's initialization (nielsdos)
LDAP:
Fixed bug GH-10112 (LDAP\Connection::__construct() refers to ldap_create()).
MBString:
Fixed: mb_strlen (and a couple of other mbstring functions) would wrongly treat 0x80, 0xFD, 0xFE, 0xFF, and certain other byte values as the first byte of a 2-byte SJIS character.
Opcache:
Fix inverted bailout value in zend_runtime_jit() (Max Kellermann).
Fix access to uninitialized variable in accel_preload().
Fix zend_jit_find_trace() crashes.
Added missing lock for EXIT_INVALIDATE in zend_jit_trace_exit.
Phar:
Fix wrong flags check for compression method in phar_object.c (nielsdos)
PHPDBG:
Fix undefined behaviour in phpdbg_load_module_or_extension().
Fix NULL pointer dereference in phpdbg_create_conditional_breal().
Fix GH-9710: phpdbg memory leaks by option "-h" (nielsdos)
Fix phpdbg segmentation fault in case of malformed input (nielsdos)
Posix:
Fix memory leak in posix_ttyname() (girgias)
Standard:
Fix GH-10187 (Segfault in stripslashes() with arm64).
Fix substr_replace with slots in repl_ht being UNDEF.
TSRM:
Fixed Windows shmget() wrt. IPC_PRIVATE.
XMLWriter:
Fix missing check for xmlTextWriterEndElement (nielsdos)
Version 8.1.14
Core:
Fixed bug GH-9905 (constant() behaves inconsistent when class is undefined).
Fixed bug GH-9918 (License information for xxHash is not included in README.REDIST.BINS file).
Revert "Fixed bug #80892 (PDO::PARAM_INT is treated the same as PDO::PARAM_STR)"
Version 8.0.5
Core:
Fixed bug #75776 (Flushing streams with compression filter is broken).
Fixed bug #80811 (Function exec without $output but with $restult_code parameter crashes).
Fixed bug #80814 (threaded mod_php won't load on FreeBSD: No space available for static Thread Local Storage).
Changed PowerPC CPU registers used by Zend VM to work around GCC bug. Old registers (r28/r29) might be clobbered by _restgpr routine used for return from C function compiled with -Os.
Dba:
Fixed bug #80817 (dba_popen() may cause segfault during RSHUTDOWN).
DOM:
Fixed bug #66783 (UAF when appending DOMDocument to element).
FFI:
Fixed bug #80847 (CData structs with fields of type struct can't be passed as C function argument).
FPM:
Fixed bug #80024 (Duplication of info about inherited socket after pool removing).
FTP:
Fixed bug #80880 (SSL_read on shutdown, ftp/proc_open).
IMAP:
Fixed bug #80800 (imap_open() fails when the flags parameter includes CL_EXPUNGE).