Newshot

PHP 8.5.13

Original text(via Hacker News)

PHP 8 ChangeLog

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)
  • 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 GHSA-5j3f-64r7-f564 (PHP-CGI out-of-bounds read and write during PATH_INFO correction). (CVE-2026-129538)
  • CLI: Fixed bug GH-24697 (PHP_HTTP_PARSER_STRICT build option doesn't work). Fixed bug GH-9670 (List -C and -q in the CLI help).
  • Fixed bug GH-24697 (PHP_HTTP_PARSER_STRICT build option doesn't work).
  • Fixed bug GH-9670 (List -C and -q in the CLI help).
  • COM: Fixed bug GH-25008 (com_event_sink() and com_print_typeinfo() crash resolving an event source with no loaded typelib).
  • 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.
  • Fix use-after-free of CURLOPT_STDERR stream on cloned curl handle.
  • Fix UAF on clone due to callback data pointer mismatch.
  • Date: Fixed bug GH-20503 (Assertion failure with ext/date DateInterval property hash construction). 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)
  • Fixed bug GH-20503 (Assertion failure with ext/date DateInterval property hash construction).
  • 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).
  • 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)
  • 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).
  • 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).
  • 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)
  • 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.
  • Fix double free in ext/ftp data_accept() on accept failure.
  • GD: Fixed imagetruecolortopalette() error message.
  • Fixed imagetruecolortopalette() error message.
  • Hash: Fix GOST and Snefru digests of 512 MiB or more.
  • Fix GOST and Snefru digests of 512 MiB or more.
  • Intl: Fixed IntlDateFormatter parse functions truncating an $offset below INT_MIN.
  • 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.
  • 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.
  • 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.
  • 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).
  • 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).
  • 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 too wide type inference for ASSIGN_DIM_OP. Fix OSS-Fuzz #568005340 (FETCH_DIM_FUNC_ARG partial conversion). 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). Fix block pass dropping ZEND_FAST_CALL OP2 definition. 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-22216 (spurious opcache.memory_consumption warning on each new ZTS thread; the directive is also reported as 0 in worker threads).
  • 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 too wide type inference for ASSIGN_DIM_OP.
  • Fix OSS-Fuzz #568005340 (FETCH_DIM_FUNC_ARG partial conversion).
  • 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).
  • Fix block pass dropping ZEND_FAST_CALL OP2 definition.
  • 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-22216 (spurious opcache.memory_consumption warning on each new ZTS thread; the directive is also reported as 0 in worker threads).
  • OpenSSL: Fixed build and test compatibility with OpenSSL 4.0 and 4.1. Fixed bug GH-24784 (openssl_pkcs7_read() and openssl_cms_read() overwrite certificates with CRLs).
  • Fixed build and test compatibility with OpenSSL 4.0 and 4.1.
  • Fixed bug GH-24784 (openssl_pkcs7_read() and openssl_cms_read() overwrite certificates with CRLs).
  • PDO: Fixed invalid ATTR_ORACLE_NULLS values being accepted and truncated. Fixed a duplicate warning when ATTR_STATEMENT_CLASS is rejected on a persistent connection. Fixed constructor option errors naming argument #3 ($password) instead of argument #4 ($options).
  • Fixed invalid ATTR_ORACLE_NULLS values being accepted and truncated.
  • Fixed a duplicate warning when ATTR_STATEMENT_CLASS is rejected on a persistent connection.
  • Fixed constructor option errors naming argument #3 ($password) instead of argument #4 ($options).
  • PDO_Firebird: Fixed bug GH-25006 (getColumnMeta() reads out of bounds for an out-of-range column index).
  • Fixed bug GH-25006 (getColumnMeta() reads out of bounds for an out-of-range column index).
  • PDO_PGSQL: Fixed a use-after-free when a persistent connection receives a notice after the request that called Pdo\Pgsql::setNoticeCallback() has ended.
  • Fixed a use-after-free when a persistent connection receives a notice after the request that called Pdo\Pgsql::setNoticeCallback() has ended.
  • PDO_SQLite: Fixed bug GH-24990 (Statement unusable after a failed execute()).
  • Fixed bug GH-24990 (Statement unusable after a failed execute()).
  • 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 GHSA-68fq-fh7h-f8gr (PHAR OpenSSL signature bypass via algorithm downgrade). (CVE-2026-128090)
  • 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 GHSA-68fq-fh7h-f8gr (PHAR OpenSSL signature bypass via algorithm downgrade). (CVE-2026-128090)
  • Phpdbg: Fix wrong command names. Fixed bug GH-22480 (Use-after-free when re-watching an already-watched variable). Fixed over-read when watching a packed array element. Fixed double free of watch element chains.
  • Fix wrong command names.
  • Fixed bug GH-22480 (Use-after-free when re-watching an already-watched variable).
  • Fixed over-read when watching a packed array element.
  • Fixed double free of watch element chains.
  • POSIX: Fixed posix_setrlimit() rejecting POSIX_RLIMIT_INFINITY on Solaris.
  • 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 a crash in readline_info() when completion_append_character contains a non-ASCII byte.
  • SAPI: Fixed infinite loop in sapi_header_op() for headers of 4 GiB or more.
  • Fixed infinite loop in sapi_header_op() for headers of 4 GiB or more.
  • SOAP: 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)
  • 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)
  • Session: Validate whole session ID instead of stopping at the first NUL byte. 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)
  • Validate whole session ID instead of stopping at the first NUL byte.
  • 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)
  • SPL: Fixed bug GH-24264 (Unwind/GracefulExit discarded in spl_iterators.c).
  • Fixed bug GH-24264 (Unwind/GracefulExit discarded in spl_iterators.c).
  • Sockets: Fixed bug GH-24748 (socket_set_option() crashes with declared object properties).
  • Fixed bug GH-24748 (socket_set_option() crashes with declared object properties).
  • Standard: Fixed memory leaks in checkdnsrr() and dns_check_record() on Windows. Fixed __unserialize() and __wakeup() being called for objects with a missing closing brace. Fixed bug GH-24308 (Request shutdown calls closelog() even when syslog was not opened by PHP). Fixed password_get_info() and password_needs_rehash() accepting malformed bcrypt costs. Fixed proc_open() null descriptor not being inheritable on Windows. Don't share the unserialize() context with enum autoloaders. Fixed bug GH-24399 (usleep() and time_nanosleep() ignore queued APCs on Windows). Fixed glob() not negating bracket expressions that start with "^". Fixed bug GH-24552 (Case-insensitive substr_compare(), ksort() and krsort() are still locale-dependent). Fixed bug GH-24605 (var_export() crashes on deeply nested arrays and objects). Fix use-after-free in Randomizer::shuffleArray() when the engine throws. 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)
  • Fixed memory leaks in checkdnsrr() and dns_check_record() on Windows.
  • Fixed __unserialize() and __wakeup() being called for objects with a missing closing brace.
  • Fixed bug GH-24308 (Request shutdown calls closelog() even when syslog was not opened by PHP).
  • Fixed password_get_info() and password_needs_rehash() accepting malformed bcrypt costs.
  • Fixed proc_open() null descriptor not being inheritable on Windows.
  • Don't share the unserialize() context with enum autoloaders.
  • Fixed bug GH-24399 (usleep() and time_nanosleep() ignore queued APCs on Windows).
  • Fixed glob() not negating bracket expressions that start with "^".
  • Fixed bug GH-24552 (Case-insensitive substr_compare(), ksort() and krsort() are still locale-dependent).
  • Fixed bug GH-24605 (var_export() crashes on deeply nested arrays and objects).
  • Fix use-after-free in Randomizer::shuffleArray() when the engine throws.
  • 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). Fixed bug GH-24509 (HTTP wrapper leaks Location buffer on empty Location header). Fix out-of-bounds reads parsing ftp:// wrapper server replies.
  • Fixed bug GH-24508 (HTTP wrapper leaks the dechunk filter when header parsing fails after Transfer-Encoding).
  • Fixed bug GH-24509 (HTTP wrapper leaks Location buffer on empty Location header).
  • Fix out-of-bounds reads parsing ftp:// wrapper server replies.
  • Tidy: Fixed tidy_repair_string(), tidy_repair_file(), tidy::repairString() and tidy::repairFile() rejecting null for $encoding.
  • Fixed tidy_repair_string(), tidy_repair_file(), tidy::repairString() and tidy::repairFile() rejecting null for $encoding.
  • URI: Fixed bug GH-25019 (Uri\Rfc3986\Uri rejects a port with leading zeros as out of range). Upgrade to uriparser 1.0.3. (CVE-2026-48841) Fixed GHSA-mg3p-mxj9-g2mm (Incorrect RFC 3986 URI serialization for oversized input). (CVE-2026-129438)
  • Fixed bug GH-25019 (Uri\Rfc3986\Uri rejects a port with leading zeros as out of range).
  • Upgrade to uriparser 1.0.3. (CVE-2026-48841)
  • 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.
  • 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().
  • 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().
  • Zlib: Fixed use-after-free when an error handler removes a failing zlib.inflate filter (GH-24176). 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-24533 (zlib.lib could not be found because zlib 1.3.2 CMake build does not emit it).

Version 8.5.12

  • Core: Fixed GHSA-w8hw-w9fx-j79w, GHSA-6wmf-4rv5-p3rp (Avoid state corruption via bailout). Fixed bug GH-23644 (Optimizer leaves a constant-vs-constant comparison unfolded, crashing the VM in zval_undefined_cv). Fixed OSS-Fuzz 532353396 (assertion failure with static type). Fix GH-23662 (Avoid NAN warning in print_r()). Fix GH-21999: GC inconsistency with lazy object, var_dump(), and object comparison. Fixed OSS-Fuzz #536440507 (Immutable class incorrect assertion). Fixed AVX being reported as supported when the OS has not enabled AVX state. Fixed GH-23980 (ZEND_ASSERT violation @ ZEND_INCLUDE_OR_EVAL). 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.
  • Fixed GHSA-w8hw-w9fx-j79w, GHSA-6wmf-4rv5-p3rp (Avoid state corruption via bailout).
  • Fixed bug GH-23644 (Optimizer leaves a constant-vs-constant comparison unfolded, crashing the VM in zval_undefined_cv).
  • Fixed OSS-Fuzz 532353396 (assertion failure with static type).
  • Fix GH-23662 (Avoid NAN warning in print_r()).
  • Fix GH-21999: GC inconsistency with lazy object, var_dump(), and object comparison.
  • Fixed OSS-Fuzz #536440507 (Immutable class incorrect assertion).
  • Fixed AVX being reported as supported when the OS has not enabled AVX state.
  • Fixed GH-23980 (ZEND_ASSERT violation @ ZEND_INCLUDE_OR_EVAL).
  • 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.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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).
  • 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.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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()). Fix zend_analyze_calls() call_stack buffer overrun. 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).
  • 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()).
  • Fix zend_analyze_calls() call_stack buffer overrun.
  • 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.
  • 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()).
  • 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.
  • 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.
  • 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).
  • 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.
  • 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.
  • 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).
  • 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.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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).
  • 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.
  • 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 imageaffinematrixget() and imageaffinematrixconcat() reporting the wrong argument in error messages.
  • FPM: Fixed bug GH-19320 (FPM UID and GID overflow). Fixed GHSA-62xp-839h-2637 (IPv6 ACL bypass in FastCGI listen.allowed_clients due to partial address comparison). (CVE-2026-91768)
  • Fixed bug GH-19320 (FPM UID and GID overflow).
  • Fixed GHSA-62xp-839h-2637 (IPv6 ACL bypass in FastCGI listen.allowed_clients due to partial address comparison). (CVE-2026-91768)
  • Intl: Fixed grapheme_strpos() and grapheme_strrpos() with an empty needle returning UTF-16 offsets instead of grapheme offsets. Fixed a memory leak when dumping IntlCalendar instances. Fixed a memory leak when iterating IntlBreakIterator::getPartsIterator() results. Fixed a double-free when IntlGregorianCalendar construction fails after the ICU constructor adopts the TimeZone. Fixed bug GH-23094 (NumberFormatter parsing offsets use UTF-16 positions for UTF-8 strings). Fixed Locale::parseLocale() reading past a trailing '-' or '_'. Fixed grapheme_str_split() treating UBRK_DONE as a byte index. Fixed a leak in Locale::getKeywords() when a keyword value cannot be read. Fixed a use-after-free when IntlRuleBasedBreakIterator is constructed from compiled rules.
  • Fixed grapheme_strpos() and grapheme_strrpos() with an empty needle returning UTF-16 offsets instead of grapheme offsets.
  • Fixed a memory leak when dumping IntlCalendar instances.
  • Fixed a memory leak when iterating IntlBreakIterator::getPartsIterator() results.
  • Fixed a double-free when IntlGregorianCalendar construction fails after the ICU constructor adopts the TimeZone.
  • Fixed bug GH-23094 (NumberFormatter parsing offsets use UTF-16 positions for UTF-8 strings).
  • Fixed Locale::parseLocale() reading past a trailing '-' or '_'.
  • Fixed grapheme_str_split() treating UBRK_DONE as a byte index.
  • Fixed a leak in Locale::getKeywords() when a keyword value cannot be read.
  • Fixed a use-after-free when IntlRuleBasedBreakIterator is constructed from compiled rules.
  • MBString: Fixed mb_ereg_replace() emitting a NUL or out-of-bounds bytes in the replacement when a \k<name> backref has no closing delimiter.
  • Fixed mb_ereg_replace() emitting a NUL or out-of-bounds bytes in the replacement when a \k<name> backref has no closing delimiter.
  • MySQLnd: Fixed GHSA-r6x9-5r99-36j7 (Various packet overreads in mysqlnd wire protocol). (CVE-2025-1218)
  • Fixed GHSA-r6x9-5r99-36j7 (Various packet overreads in mysqlnd wire protocol). (CVE-2025-1218)
  • ODBC: Fixed odbc_field_len(), odbc_field_scale() and odbc_field_type() returning uninitialized memory when SQLColAttribute fails.
  • Fixed odbc_field_len(), odbc_field_scale() and odbc_field_type() returning uninitialized memory when SQLColAttribute fails.
  • Opcache: Fixed opcache.protect_memory race under ZTS. Fixed a tracing JIT crash when compiling a side trace for a method of a class that could not be stored in the inheritance cache. Fixed a crash when the huge page SHM remap discarded mappings outside the reserved address range.
  • Fixed opcache.protect_memory race under ZTS.
  • Fixed a tracing JIT crash when compiling a side trace for a method of a class that could not be stored in the inheritance cache.
  • Fixed a crash when the huge page SHM remap discarded mappings outside the reserved address range.
  • OpenSSL: Fixed GHSA-vvx9-73fr-5jjx (TLS hostname verification falls back to CN after SAN mismatch). (CVE-2026-91769) Fixed GHSA-xr7j-rvgx-xq5p (Heap buffer overflow in php_openssl_matches_wildcard_name() on crafted server certificate wildcard CN). (CVE-2026-91767)
  • Fixed GHSA-vvx9-73fr-5jjx (TLS hostname verification falls back to CN after SAN mismatch). (CVE-2026-91769)
  • Fixed GHSA-xr7j-rvgx-xq5p (Heap buffer overflow in php_openssl_matches_wildcard_name() on crafted server certificate wildcard CN). (CVE-2026-91767)
  • PDO: Fixed a leak when a persistent connection failed a liveness check with no other live PDO handle.
  • Fixed a leak when a persistent connection failed a liveness check with no other live PDO handle.
  • PDO_PGSQL: Fixed PDO::CURSOR_SCROLL statements failing under lazy fetching (PDO::ATTR_PREFETCH => 0).
  • Fixed PDO::CURSOR_SCROLL statements failing under lazy fetching (PDO::ATTR_PREFETCH => 0).
  • PDO Sqlite: Fixed bug GH-20214 (PDO::FETCH_DEFAULT unexpected behavior with PDOStatement::setFetchMode).
  • Fixed bug GH-20214 (PDO::FETCH_DEFAULT unexpected behavior with PDOStatement::setFetchMode).
  • Phar: Fixed bug GH-23418 (Use-after-free when looking up mounted directories). Fixed bug GH-23477 (Memory leak on duplicate native Phar manifest entries). Fixed GHSA-j3wh-g957-2m85 (Integer overflow in phar_tar_number() allowing TAR archive entry injection). (CVE-2026-6103)
  • Fixed bug GH-23418 (Use-after-free when looking up mounted directories).
  • Fixed bug GH-23477 (Memory leak on duplicate native Phar manifest entries).
  • Fixed GHSA-j3wh-g957-2m85 (Integer overflow in phar_tar_number() allowing TAR archive entry injection). (CVE-2026-6103)
  • Readline: Fixed the interactive shell not waiting for the pager process to exit.
  • Fixed the interactive shell not waiting for the pager process to exit.
  • SOAP: Fixed WSDL cache corruption when a soap:header defines headerfaults. Fixed stack overflow when parsing a WSDL with self-referential schema groups or attributeGroups. Fixed GHSA-rgrp-mwpx-f6rm (Unbounded recursion in server-side cleanup_xml_node()). (CVE-2026-91765) Fixed GHSA-cj93-vc83-wgqv (Integer overflow to buffer overflow in SOAP HTTP parsing). (CVE-2025-14181)
  • Fixed WSDL cache corruption when a soap:header defines headerfaults.
  • Fixed stack overflow when parsing a WSDL with self-referential schema groups or attributeGroups.
  • Fixed GHSA-rgrp-mwpx-f6rm (Unbounded recursion in server-side cleanup_xml_node()). (CVE-2026-91765)
  • Fixed GHSA-cj93-vc83-wgqv (Integer overflow to buffer overflow in SOAP HTTP parsing). (CVE-2025-14181)
  • Standard: Fixed a segfault when a stream filter callback unsets StreamBucket::$data before re-attaching the bucket. Fixed GHSA-7875-c8px-7q5f (Out-of-bounds read in the HTTP stream wrapper when following a redirect with an empty Location header). (CVE-2026-93682) Fixed read buffer compaction in php_stream_filter_flush(). Fixed bug GH-22410 (Incorrect float behavior with large numbers). Fixed GH-23338 (fsockopen()/pfsockopen() ValueError reported wrong argument number for $timeout). Fixed bug GH-23576 (Next index for array returned from array_keys() is wrong). Fixed GHSA-88hq-2827-7pg6 (Out-of-bounds read in convert.* stream filters when line-break-chars contains NUL). (CVE-2026-92842) Fixed GHSA-fpwc-w8rq-cr92 (Cross-origin credential leak in HTTP stream wrapper redirects). (CVE-2026-91766)
  • Fixed a segfault when a stream filter callback unsets StreamBucket::$data before re-attaching the bucket.
  • Fixed GHSA-7875-c8px-7q5f (Out-of-bounds read in the HTTP stream wrapper when following a redirect with an empty Location header). (CVE-2026-93682)
  • Fixed read buffer compaction in php_stream_filter_flush().
  • Fixed bug GH-22410 (Incorrect float behavior with large numbers).
  • Fixed GH-23338 (fsockopen()/pfsockopen() ValueError reported wrong argument number for $timeout).
  • Fixed bug GH-23576 (Next index for array returned from array_keys() is wrong).
  • Fixed GHSA-88hq-2827-7pg6 (Out-of-bounds read in convert.* stream filters when line-break-chars contains NUL). (CVE-2026-92842)
  • Fixed GHSA-fpwc-w8rq-cr92 (Cross-origin credential leak in HTTP stream wrapper redirects). (CVE-2026-91766)
  • SimpleXML: 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.
  • 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)
  • 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).
  • 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)
  • 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).
  • 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.
  • 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()).
  • 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.
  • 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.
  • 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()).
  • 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.
  • 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).
  • 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.
  • 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).
  • 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.
  • 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.
  • 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).
  • 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.
  • 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.
  • 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.
  • 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 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).
  • 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().
  • 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.
  • 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)
  • 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).
  • 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).
  • 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.
  • 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.
  • 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).
  • 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)
  • Upgrade libgd. (CVE-2026-9672)
  • Hash: Fixed bug GH-18173 (ext/hash relies on implementation-defined malloc alignment).
  • 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).
  • 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).
  • 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.
  • 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.
  • 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).
  • 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)
  • 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 GHSA-vc5h-9ppw-p5f3 (Crash via recursive symlinks). (CVE-2026-7260)
  • 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 GHSA-vc5h-9ppw-p5f3 (Crash via recursive symlinks). (CVE-2026-7260)
  • PHPDBG: 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.
  • 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).
  • 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).
  • 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).
  • 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).
  • 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).
  • 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).
  • 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).
  • 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().
  • Fixed issues with oversized allocations and signed overflow in bcround() and BcMath\Number::round().
  • Date: Fix incorrect recurrence check of DatePeriod::createFromISO8601String().
  • Fix incorrect recurrence check of DatePeriod::createFromISO8601String().
  • Exif: Read correct value for single and double tags.
  • 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-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.
  • Fix incorrect argument positions for invalid start/end arguments in transliterator_transliterate().
  • Fixed IntlTimeZone::getDisplayName() to synchronize object error state for invalid display types.
  • Lexbor: Merge patch c3a6847.
  • Merge patch c3a6847.
  • Opcache: Fixed bug GH-22265 (Another tailcall vm_interrupt bug). 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).
  • Fixed bug GH-22265 (Another tailcall vm_interrupt bug).
  • 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)
  • 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.
  • 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.
  • 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).
  • 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.
  • 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.
  • 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.
  • Fixed error-related memory leaks.
  • Zlib: Fixed memory leak if deflate initialization fails and there is a dict. Fixed memory leak in inflate_add().
  • Fixed memory leak if deflate initialization fails and there is a dict.
  • Fixed memory leak in inflate_add().

Version 8.5.7

  • CLI: Fixed bug GH-21901 (Stale getopt() optional value).
  • Fixed bug GH-21901 (Stale getopt() optional value).
  • Date: Fixed bug GH-18422 (int overflow in php_date_llabs).
  • Fixed bug GH-18422 (int overflow in php_date_llabs).
  • DOM: Fixed bug GH-22077 (UAF in custom XPath function).
  • Fixed bug GH-22077 (UAF in custom XPath function).
  • Opcache: Fixed tracing JIT crash when a VM interrupt is handled during an observed user function call. Fixed bug GH-21746 (Segfault with tracing JIT). Fixed bug GH-22004 (Assertion failure at ext/opcache/jit/zend_jit_trace.c). Fixed tailcall VM crash when a VM interrupt is handled from a VM helper.
  • Fixed tracing JIT crash when a VM interrupt is handled during an observed user function call.
  • Fixed bug GH-21746 (Segfault with tracing JIT).
  • Fixed bug GH-22004 (Assertion failure at ext/opcache/jit/zend_jit_trace.c).
  • Fixed tailcall VM crash when a VM interrupt is handled from a VM helper.
  • OpenSSL: Fix compatibility issues with OpenSSL 4.0.
  • Fix compatibility issues with OpenSSL 4.0.
  • Standard: Fixed bug GH-21689 (version_compare() incorrectly handles versions ending with a dot).
  • Fixed bug GH-21689 (version_compare() incorrectly handles versions ending with a dot).
  • URI: Fixed CVE-2026-44927 (In uriparser before 1.0.2, there is pointer difference truncation to int in various places). (CVE-2026-44927) Fixed CVE-2026-44928 (In uriparser before 1.0.2, the function family EqualsUri can misclassify two unequal URIs as equal). (CVE-2026-44928)
  • Fixed CVE-2026-44927 (In uriparser before 1.0.2, there is pointer difference truncation to int in various places). (CVE-2026-44927)
  • Fixed CVE-2026-44928 (In uriparser before 1.0.2, the function family EqualsUri can misclassify two unequal URIs as equal). (CVE-2026-44928)

Version 8.5.6

  • Core: Fixed bug GH-19983 (GC assertion failure with fibers, generators and destructors). Fixed ZEND_API mismatch on zend_ce_closure forward decl for Windows+Clang. Fixed bug GH-21504 (Incorrect RC-handling for ZEND_EXT_STMT op1). 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-21603 (Missing addref for __unset). Fixed bug GH-21760 (Trait with class constant name conflict against enum case causes SEGV).
  • Fixed bug GH-19983 (GC assertion failure with fibers, generators and destructors).
  • Fixed ZEND_API mismatch on zend_ce_closure forward decl for Windows+Clang.
  • Fixed bug GH-21504 (Incorrect RC-handling for ZEND_EXT_STMT op1).
  • 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-21603 (Missing addref for __unset).
  • Fixed bug GH-21760 (Trait with class constant name conflict against enum case causes SEGV).
  • CLI: Fixed bug GH-21754 (--rf command line option with a method triggers ext/reflection deprecation warnings).
  • Fixed bug GH-21754 (--rf command line option with a method triggers ext/reflection deprecation warnings).
  • Curl: Add support for brotli and zstd on Windows.
  • Add support for brotli and zstd on Windows.
  • DOM: Fixed GHSA-4jhr-8w89-j733 and GH-21566 (Dom\XMLDocument::C14N() emits duplicate xmlns declarations after setAttributeNS()). (CVE-2026-7263)
  • Fixed GHSA-4jhr-8w89-j733 and GH-21566 (Dom\XMLDocument::C14N() emits duplicate xmlns declarations after setAttributeNS()). (CVE-2026-7263)
  • FPM: Fixed GHSA-7qg2-v9fj-4mwv (XSS within status endpoint). (CVE-2026-6735)
  • Fixed GHSA-7qg2-v9fj-4mwv (XSS within status endpoint). (CVE-2026-6735)
  • Iconv: Fixed bug GH-17399 (iconv memory leak on bailout).
  • Fixed bug GH-17399 (iconv memory leak on bailout).
  • Lexbor: Upgrade to lexbor v2.7.0.
  • Upgrade to lexbor v2.7.0.
  • MBString: Fixed GHSA-wm6j-2649-pv75 (Null pointer dereference in php_mb_check_encoding() via mb_ereg_search_init()). (CVE-2026-7259) Fixed GHSA-74r9-qxhc-fx53 (Out-of-bounds access in mbfl_name2encoding_ex()). (CVE-2026-6104)
  • Fixed GHSA-wm6j-2649-pv75 (Null pointer dereference in php_mb_check_encoding() via mb_ereg_search_init()). (CVE-2026-7259)
  • Fixed GHSA-74r9-qxhc-fx53 (Out-of-bounds access in mbfl_name2encoding_ex()). (CVE-2026-6104)
  • Opcache: Fixed bug GH-21158 (JIT: Assertion jit->ra[var].flags & (1<<0) failed in zend_jit_use_reg). Fixed bug GH-21593 (Borked function JIT JMPNZ smart branch). Fixed bug GH-21460 (COND optimization regression). Fixed faulty returns out of zend_try block in zend_jit_trace().
  • Fixed bug GH-21158 (JIT: Assertion jit->ra[var].flags & (1<<0) failed in zend_jit_use_reg).
  • Fixed bug GH-21593 (Borked function JIT JMPNZ smart branch).
  • Fixed bug GH-21460 (COND optimization regression).
  • Fixed faulty returns out of zend_try block in zend_jit_trace().
  • OpenSSL: Fix memory leak regression in openssl_pbkdf2(). Fix a bunch of memory leaks and crashes on edge cases.
  • Fix memory leak regression in openssl_pbkdf2().
  • Fix a bunch of memory leaks and crashes on edge cases.
  • PDO_Firebird: Fixed GHSA-w476-322c-wpvm (SQL injection via NUL bytes in quoted strings). (CVE-2025-14179)
  • Fixed GHSA-w476-322c-wpvm (SQL injection via NUL bytes in quoted strings). (CVE-2025-14179)
  • PDO_PGSQL: Fixed bug GH-21683 (pdo_pgsql throws with ATTR_PREFETCH=0 on empty result set).
  • Fixed bug GH-21683 (pdo_pgsql throws with ATTR_PREFETCH=0 on empty result set).
  • Phar: Restore is_link handler in phar_intercept_functions_shutdown. Fixed bug GH-21797 (phar: NULL dereference in Phar::webPhar() when SCRIPT_NAME is absent from SAPI environment). Fix memory leak in Phar::offsetGet(). Fix memory leak in phar_add_file(). Fixed bug GH-21799 (phar: propagate phar_stream_flush return value from phar_stream_close). Fix memory leak in phar_verify_signature() when md_ctx is invalid.
  • Restore is_link handler in phar_intercept_functions_shutdown.
  • Fixed bug GH-21797 (phar: NULL dereference in Phar::webPhar() when SCRIPT_NAME is absent from SAPI environment).
  • Fix memory leak in Phar::offsetGet().
  • Fix memory leak in phar_add_file().
  • Fixed bug GH-21799 (phar: propagate phar_stream_flush return value from phar_stream_close).
  • Fix memory leak in phar_verify_signature() when md_ctx is invalid.
  • Random: Fixed bug GH-21731 (Random\Engine\Xoshiro256StarStar::__unserialize() accepts all-zero state).
  • Fixed bug GH-21731 (Random\Engine\Xoshiro256StarStar::__unserialize() accepts all-zero state).
  • Session: Fixed memory leak when session GC callback return a refcounted value.
  • Fixed memory leak when session GC callback return a refcounted value.
  • SOAP: Fixed GHSA-85c2-q967-79q5 (Stale SOAP_GLOBAL(ref_map) pointer with Apache Map). (CVE-2026-6722) Fixed GHSA-m33r-qmcv-p97q (Use-after-free after header parsing failure with SOAP_PERSISTENCE_SESSION). (CVE-2026-7261) Fixed GHSA-hmxp-6pc4-f3vv (Broken Apache map value NULL check). (CVE-2026-7262)
  • Fixed GHSA-85c2-q967-79q5 (Stale SOAP_GLOBAL(ref_map) pointer with Apache Map). (CVE-2026-6722)
  • Fixed GHSA-m33r-qmcv-p97q (Use-after-free after header parsing failure with SOAP_PERSISTENCE_SESSION). (CVE-2026-7261)
  • Fixed GHSA-hmxp-6pc4-f3vv (Broken Apache map value NULL check). (CVE-2026-7262)
  • SPL: Fixed bug GH-21499 (RecursiveArrayIterator getChildren UAF after parent free). Fix concurrent iteration and deletion issues in SplObjectStorage.
  • Fixed bug GH-21499 (RecursiveArrayIterator getChildren UAF after parent free).
  • Fix concurrent iteration and deletion issues in SplObjectStorage.
  • Sqlite3: Fixed wrong free list comparator pointer type.
  • Fixed wrong free list comparator pointer type.
  • Standard: Fixed GHSA-96wq-48vp-hh57 (Signed integer overflow of char array offset). (CVE-2026-7568) Fixed GHSA-m8rr-4c36-8gq4 (Consistently pass unsigned char to ctype.h functions). (CVE-2026-7258)
  • Fixed GHSA-96wq-48vp-hh57 (Signed integer overflow of char array offset). (CVE-2026-7568)
  • Fixed GHSA-m8rr-4c36-8gq4 (Consistently pass unsigned char to ctype.h functions). (CVE-2026-7258)
  • Streams: Fixed bug GH-21468 (Segfault in file_get_contents w/ a https URL and a proxy set). (CVE-2026-12184)
  • Fixed bug GH-21468 (Segfault in file_get_contents w/ a https URL and a proxy set). (CVE-2026-12184)
  • URI: Fixed CVE-2026-42371 (uriparser before 1.0.1 has numeric truncation in text range comparison). (CVE-2026-42371)
  • Fixed CVE-2026-42371 (uriparser before 1.0.1 has numeric truncation in text range comparison). (CVE-2026-42371)

Version 8.5.5

  • Core: Fixed bug GH-20672 (Incorrect property_info sizing for locally shadowed trait properties). Fixed bugs GH-20875, GH-20873, GH-20854 (Propagate IN_GET guard in get_property_ptr_ptr for lazy proxies).
  • Fixed bug GH-20672 (Incorrect property_info sizing for locally shadowed trait properties).
  • Fixed bugs GH-20875, GH-20873, GH-20854 (Propagate IN_GET guard in get_property_ptr_ptr for lazy proxies).
  • Bz2: Fix truncation of total output size causing erroneous errors.
  • Fix truncation of total output size causing erroneous errors.
  • DOM: Fixed bug GH-21486 (Dom\HTMLDocument parser mangles xml:space and xml:lang attributes).
  • Fixed bug GH-21486 (Dom\HTMLDocument parser mangles xml:space and xml:lang attributes).
  • FFI: Fixed resource leak in FFI::cdef() onsymbol resolution failure.
  • Fixed resource leak in FFI::cdef() onsymbol resolution failure.
  • GD: Fixed bug GH-21431 (phpinfo() to display libJPEG 10.0 support).
  • Fixed bug GH-21431 (phpinfo() to display libJPEG 10.0 support).
  • Opcache: Fixed bug GH-21052 (Preloaded constant erroneously propagated to file-cached script). Fixed bug GH-20838 (JIT compiler produces wrong arithmetic results). Fixed bug GH-21267 (JIT tracing: infinite loop on FETCH_OBJ_R with IS_UNDEF property in polymorphic context). Fixed bug GH-21395 (uaf in jit).
  • Fixed bug GH-21052 (Preloaded constant erroneously propagated to file-cached script).
  • Fixed bug GH-20838 (JIT compiler produces wrong arithmetic results).
  • Fixed bug GH-21267 (JIT tracing: infinite loop on FETCH_OBJ_R with IS_UNDEF property in polymorphic context).
  • Fixed bug GH-21395 (uaf in jit).
  • OpenSSL: Fixed bug GH-21083 (Skip private_key_bits validation for EC/curve-based keys). Fix missing error propagation for BIO_printf() calls.
  • Fixed bug GH-21083 (Skip private_key_bits validation for EC/curve-based keys).
  • Fix missing error propagation for BIO_printf() calls.
  • PCNTL: Fixed signal handler installation on AIX by bumping the storage size of the num_signals global.
  • Fixed signal handler installation on AIX by bumping the storage size of the num_signals global.
  • PCRE: Fixed re-entrancy issue on php_pcre_match_impl, php_pcre_replace_impl, php_pcre_split_impl, and php_pcre_grep_impl.
  • Fixed re-entrancy issue on php_pcre_match_impl, php_pcre_replace_impl, php_pcre_split_impl, and php_pcre_grep_impl.
  • Phar: Fixed bug GH-21333 (use after free when unlinking entries during iteration of a compressed phar).
  • Fixed bug GH-21333 (use after free when unlinking entries during iteration of a compressed phar).
  • SNMP: Fixed bug GH-21336 (SNMP::setSecurity() undefined behavior with NULL arguments).
  • Fixed bug GH-21336 (SNMP::setSecurity() undefined behavior with NULL arguments).
  • SOAP: Fixed Set-Cookie parsing bug wrong offset while scanning attributes.
  • Fixed Set-Cookie parsing bug wrong offset while scanning attributes.
  • SPL: Fixed bug GH-21454 (missing write lock validation in SplHeap).
  • Fixed bug GH-21454 (missing write lock validation in SplHeap).
  • Standard: Fixed bug GH-20906 (Assertion failure when messing up output buffers). Fixed bug GH-20627 (Cannot identify some avif images with getimagesize).
  • Fixed bug GH-20906 (Assertion failure when messing up output buffers).
  • Fixed bug GH-20627 (Cannot identify some avif images with getimagesize).
  • Sysvshm: Fix memory leak in shm_get_var() when variable is corrupted.
  • Fix memory leak in shm_get_var() when variable is corrupted.
  • XSL: Fix GH-21357 (XSLTProcessor works with DOMDocument, but fails with Dom\XMLDocument). Fixed bug GH-21496 (UAF in dom_objects_free_storage).
  • Fix GH-21357 (XSLTProcessor works with DOMDocument, but fails with Dom\XMLDocument).
  • Fixed bug GH-21496 (UAF in dom_objects_free_storage).

Version 8.5.4

  • Core: Fixed bug GH-21029 (zend_mm_heap corrupted on Aarch64, LTO builds). Fixed bug GH-21059 (Segfault when preloading constant AST closure). Fixed bug GH-21072 (Crash on (unset) cast in constant expression). Fix deprecation now showing when accessing null key of an array with JIT. Fixed bug GH-20657 (Assertion failure in zend_lazy_object_get_info triggered by setRawValueWithoutLazyInitialization() and newLazyGhost()). Fixed bug GH-20504 (Assertion failure in zend_get_property_guard when accessing properties on Reflection LazyProxy via isset()). Fixed OSS-Fuzz #478009707 (Borked assign-op/inc/dec on untyped hooked property backing value). Fixed bug GH-21215 (Build fails with -std=). Fixed bug GH-13674 (Build system installs libtool wrappers when using slibtool).
  • Fixed bug GH-21029 (zend_mm_heap corrupted on Aarch64, LTO builds).
  • Fixed bug GH-21059 (Segfault when preloading constant AST closure).
  • Fixed bug GH-21072 (Crash on (unset) cast in constant expression).
  • Fix deprecation now showing when accessing null key of an array with JIT.
  • Fixed bug GH-20657 (Assertion failure in zend_lazy_object_get_info triggered by setRawValueWithoutLazyInitialization() and newLazyGhost()).
  • Fixed bug GH-20504 (Assertion failure in zend_get_property_guard when accessing properties on Reflection LazyProxy via isset()).
  • Fixed OSS-Fuzz #478009707 (Borked assign-op/inc/dec on untyped hooked property backing value).
  • Fixed bug GH-21215 (Build fails with -std=).
  • Fixed bug GH-13674 (Build system installs libtool wrappers when using slibtool).
  • Curl: Don't truncate length.
  • Don't truncate length.
  • Date: Fixed bug GH-20936 (DatePeriod::__set_state() cannot handle null start). Fix timezone offset with seconds losing precision.
  • Fixed bug GH-20936 (DatePeriod::__set_state() cannot handle null start).
  • Fix timezone offset with seconds losing precision.
  • DOM: Fixed bug GH-21077 (Accessing Dom\Node::baseURI can throw TypeError). Fixed bug GH-21097 (Accessing Dom\Node properties can can throw TypeError).
  • Fixed bug GH-21077 (Accessing Dom\Node::baseURI can throw TypeError).
  • Fixed bug GH-21097 (Accessing Dom\Node properties can can throw TypeError).
  • LDAP: Fixed bug GH-21262 (ldap_modify() too strict controls argument validation makes it impossible to unset attribute).
  • Fixed bug GH-21262 (ldap_modify() too strict controls argument validation makes it impossible to unset attribute).
  • MBString: Fixed bug GH-21223; mb_guess_encoding no longer crashes when passed huge list of candidate encodings (with 200,000+ entries).
  • Fixed bug GH-21223; mb_guess_encoding no longer crashes when passed huge list of candidate encodings (with 200,000+ entries).
  • Opcache: Fixed bug GH-20718 ("Insufficient shared memory" when using JIT on Solaris). Fixed bug GH-21227 (Borked SCCP of array containing partial object).
  • Fixed bug GH-20718 ("Insufficient shared memory" when using JIT on Solaris).
  • Fixed bug GH-21227 (Borked SCCP of array containing partial object).
  • OpenSSL: Fix a bunch of leaks and error propagation.
  • Fix a bunch of leaks and error propagation.
  • Windows: Fixed compilation with clang (missing intrin.h include).
  • Fixed compilation with clang (missing intrin.h include).

Version 8.5.3

  • Core: Fixed bug GH-20806 (preserve_none feature compatiblity with LTO). Fixed bug GH-20767 (build failure with musttail/preserve_none feature on macOs). Fixed bug GH-20837 (NULL dereference when calling ob_start() in shutdown function triggered by bailout in php_output_lock_error()). Fix OSS-Fuzz #471533782 (Infinite loop in GC destructor fiber). Fix OSS-Fuzz #472563272 (Borked block_pass JMP[N]Z optimization). Fixed bug GH-20914 (Internal enums can be cloned and compared). Fix OSS-Fuzz #474613951 (Leaked parent property default value). Fixed bug GH-20895 (ReflectionProperty does not return the PHPDoc of a property if it contains an attribute with a Closure). Fixed bug GH-20766 (Use-after-free in FE_FREE with GC interaction). Fix OSS-Fuzz #471486164 (Broken by-ref assignment to uninitialized hooked backing value). Fix OSS-Fuzz #438780145 (Nested finally with repeated return type check may uaf). Fixed bug GH-20905 (Lazy proxy bailing __clone assertion). Fixed bug GH-20479 (Hooked object properties overflow).
  • Fixed bug GH-20806 (preserve_none feature compatiblity with LTO).
  • Fixed bug GH-20767 (build failure with musttail/preserve_none feature on macOs).
  • Fixed bug GH-20837 (NULL dereference when calling ob_start() in shutdown function triggered by bailout in php_output_lock_error()).
  • Fix OSS-Fuzz #471533782 (Infinite loop in GC destructor fiber).
  • Fix OSS-Fuzz #472563272 (Borked block_pass JMP[N]Z optimization).
  • Fixed bug GH-20914 (Internal enums can be cloned and compared).
  • Fix OSS-Fuzz #474613951 (Leaked parent property default value).
  • Fixed bug GH-20895 (ReflectionProperty does not return the PHPDoc of a property if it contains an attribute with a Closure).
  • Fixed bug GH-20766 (Use-after-free in FE_FREE with GC interaction).
  • Fix OSS-Fuzz #471486164 (Broken by-ref assignment to uninitialized hooked backing value).
  • Fix OSS-Fuzz #438780145 (Nested finally with repeated return type check may uaf).
  • Fixed bug GH-20905 (Lazy proxy bailing __clone assertion).
  • Fixed bug GH-20479 (Hooked object properties overflow).
  • Date: Update timelib to 2022.16.
  • Update timelib to 2022.16.
  • DOM: Fixed GH-21041 (Dom\HTMLDocument corrupts closing tags within scripts).
  • Fixed GH-21041 (Dom\HTMLDocument corrupts closing tags within scripts).
  • MbString: Fixed bug GH-20833 (mb_str_pad() divide by zero if padding string is invalid in the encoding). Fixed bug GH-20836 (Stack overflow in mb_convert_variables with recursive array references).
  • Fixed bug GH-20833 (mb_str_pad() divide by zero if padding string is invalid in the encoding).
  • Fixed bug GH-20836 (Stack overflow in mb_convert_variables with recursive array references).
  • Opcache: Fixed bug GH-20818 (Segfault in Tracing JIT with object reference).
  • Fixed bug GH-20818 (Segfault in Tracing JIT with object reference).
  • OpenSSL: Fix memory leaks when sk_X509_new_null() fails. Fix crash when in openssl_x509_parse() when i2s_ASN1_INTEGER() fails. Fix crash in openssl_x509_parse() when X509_NAME_oneline() fails.
  • Fix memory leaks when sk_X509_new_null() fails.
  • Fix crash when in openssl_x509_parse() when i2s_ASN1_INTEGER() fails.
  • Fix crash in openssl_x509_parse() when X509_NAME_oneline() fails.
  • Phar: Fixed bug GH-20882 (buildFromIterator breaks with missing base directory).
  • Fixed bug GH-20882 (buildFromIterator breaks with missing base directory).
  • PGSQL: Fixed INSERT/UPDATE queries building with PQescapeIdentifier() and possible UB.
  • Fixed INSERT/UPDATE queries building with PQescapeIdentifier() and possible UB.
  • Readline: Fixed bug GH-18139 (Memory leak when overriding some settings via readline_info()).
  • Fixed bug GH-18139 (Memory leak when overriding some settings via readline_info()).
  • SPL: Fixed bug GH-20856 (heap-use-after-free in SplDoublyLinkedList iterator when modifying during iteration).
  • Fixed bug GH-20856 (heap-use-after-free in SplDoublyLinkedList iterator when modifying during iteration).
  • Standard: Fixed bug #74357 (lchown fails to change ownership of symlink with ZTS) (Jakub Zelenka) Fixed bug GH-20843 (var_dump() crash with nested objects) (David Carlier)
  • Fixed bug #74357 (lchown fails to change ownership of symlink with ZTS) (Jakub Zelenka)
  • Fixed bug GH-20843 (var_dump() crash with nested objects) (David Carlier)

Version 8.5.2

  • Core: Fix OSS-Fuzz #465488618 (Wrong assumptions when dumping function signature with dynamic class const lookup default argument). Fixed bug GH-20695 (Assertion failure in normalize_value() when parsing malformed INI input via parse_ini_string()). Fixed bug GH-20714 (Uncatchable exception thrown in generator). Fixed bug GH-20352 (UAF in php_output_handler_free via re-entrant ob_start() during error deactivation). Fixed bug GH-20745 ("Casting out of range floats to int" applies to strings).
  • Fix OSS-Fuzz #465488618 (Wrong assumptions when dumping function signature with dynamic class const lookup default argument).
  • Fixed bug GH-20695 (Assertion failure in normalize_value() when parsing malformed INI input via parse_ini_string()).
  • Fixed bug GH-20714 (Uncatchable exception thrown in generator).
  • Fixed bug GH-20352 (UAF in php_output_handler_free via re-entrant ob_start() during error deactivation).
  • Fixed bug GH-20745 ("Casting out of range floats to int" applies to strings).
  • DOM: Fixed bug GH-20722 (Null pointer dereference in DOM namespace node cloning via clone on malformed objects). Fixed bug GH-20444 (Dom\XMLDocument::C14N() seems broken compared to DOMDocument::C14N()).
  • Fixed bug GH-20722 (Null pointer dereference in DOM namespace node cloning via clone on malformed objects).
  • Fixed bug GH-20444 (Dom\XMLDocument::C14N() seems broken compared to DOMDocument::C14N()).
  • EXIF: Fixed bug GH-20631 (Integer underflow in exif HEIF parsing when pos.size < 2).
  • Fixed bug GH-20631 (Integer underflow in exif HEIF parsing when pos.size < 2).
  • Intl: Fix leak in umsg_format_helper().
  • Fix leak in umsg_format_helper().
  • LDAP: Fix memory leak in ldap_set_options().
  • Fix memory leak in ldap_set_options().
  • Lexbor: Fixed bug GH-20668 (\Uri\WhatWg\Url::withHost() crashes (SEGV) for URLs using the file: scheme).
  • Fixed bug GH-20668 (\Uri\WhatWg\Url::withHost() crashes (SEGV) for URLs using the file: scheme).
  • Mbstring: Fixed bug GH-20674 (mb_decode_mimeheader does not handle separator).
  • Fixed bug GH-20674 (mb_decode_mimeheader does not handle separator).
  • PCNTL: Fixed bug with pcntl_getcpuaffinity() on solaris regarding invalid process ids handling.
  • Fixed bug with pcntl_getcpuaffinity() on solaris regarding invalid process ids handling.
  • Phar: Fixed bug GH-20732 (Phar::LoadPhar undefined behavior when reading fails). Fix SplFileInfo::openFile() in write mode. Fix build on legacy OpenSSL 1.1.0 systems. Fixed bug #74154 (Phar extractTo creates empty files).
  • Fixed bug GH-20732 (Phar::LoadPhar undefined behavior when reading fails).
  • Fix SplFileInfo::openFile() in write mode.
  • Fix build on legacy OpenSSL 1.1.0 systems.
  • Fixed bug #74154 (Phar extractTo creates empty files).
  • Session: Fix support for MM module.
  • Fix support for MM module.
  • Sqlite3: Fixed bug GH-20699 (SQLite3Result fetchArray return array|false, null returned).
  • Fixed bug GH-20699 (SQLite3Result fetchArray return array|false, null returned).
  • Standard: Fix error check for proc_open() command. Fix memory leak in mail() when header key is numeric. Fixed bug GH-20582 (Heap Buffer Overflow in iptcembed).
  • Fix error check for proc_open() command.
  • Fix memory leak in mail() when header key is numeric.
  • Fixed bug GH-20582 (Heap Buffer Overflow in iptcembed).
  • URI: Fixed bug GH-20771 (Assertion failure when getUnicodeHost() returns empty string).
  • Fixed bug GH-20771 (Assertion failure when getUnicodeHost() returns empty string).
  • Zlib: Fix OOB gzseek() causing assertion failure.
  • Fix OOB gzseek() causing assertion failure.

Version 8.5.1

  • Core: Sync all boost.context files with release 1.86.0. Fixed bug GH-20435 (SensitiveParameter doesn't work for named argument passing to variadic parameter). Fixed bug GH-20546 (preserve_none attribute configure check on macOs issue). Fixed bug GH-20286 (use-after-destroy during userland stream_close()).
  • Sync all boost.context files with release 1.86.0.
  • Fixed bug GH-20435 (SensitiveParameter doesn't work for named argument passing to variadic parameter).
  • Fixed bug GH-20546 (preserve_none attribute configure check on macOs issue).
  • Fixed bug GH-20286 (use-after-destroy during userland stream_close()).
  • Bz2: Fix assertion failures resulting in crashes with stream filter object parameters.
  • Fix assertion failures resulting in crashes with stream filter object parameters.
  • DOM: Fix memory leak when edge case is hit when registering xpath callback. Fixed bug GH-20395 (querySelector and querySelectorAll requires elements in $selectors to be lowercase). Fix missing NUL byte check on C14NFile().
  • Fix memory leak when edge case is hit when registering xpath callback.
  • Fixed bug GH-20395 (querySelector and querySelectorAll requires elements in $selectors to be lowercase).
  • Fix missing NUL byte check on C14NFile().
  • Fibers: Fixed bug GH-20483 (ASAN stack overflow with fiber.stack_size INI small value).
  • Fixed bug GH-20483 (ASAN stack overflow with fiber.stack_size INI small value).
  • Intl: Fixed bug GH-20426 (Spoofchecker::setRestrictionLevel() error message suggests missing constants).
  • Fixed bug GH-20426 (Spoofchecker::setRestrictionLevel() error message suggests missing constants).
  • Lexbor: Fixed bug GH-20501 (\Uri\WhatWg\Url lose host after calling withPath() or withQuery()). Fixed bug GH-20502 (\Uri\WhatWg\Url crashes (SEGV) when parsing malformed URL due to Lexbor memory corruption).
  • Fixed bug GH-20501 (\Uri\WhatWg\Url lose host after calling withPath() or withQuery()).
  • Fixed bug GH-20502 (\Uri\WhatWg\Url crashes (SEGV) when parsing malformed URL due to Lexbor memory corruption).
  • LibXML: Fix some deprecations on newer libxml versions regarding input buffer/parser handling.
  • Fix some deprecations on newer libxml versions regarding input buffer/parser handling.
  • MySQLnd: Fixed bug GH-20528 (Regression breaks mysql connexion using an IPv6 address enclosed in square brackets).
  • Fixed bug GH-20528 (Regression breaks mysql connexion using an IPv6 address enclosed in square brackets).
  • Opcache: Fixed bug GH-20329 (opcache.file_cache broken with full interned string buffer).
  • Fixed bug GH-20329 (opcache.file_cache broken with full interned string buffer).
  • PDO: Fixed bug GH-20553 (PDO::FETCH_CLASSTYPE ignores $constructorArgs in PHP 8.5.0). Fixed GHSA-8xr5-qppj-gvwj (PDO quoting result null deref). (CVE-2025-14180)
  • Fixed bug GH-20553 (PDO::FETCH_CLASSTYPE ignores $constructorArgs in PHP 8.5.0).
  • Fixed GHSA-8xr5-qppj-gvwj (PDO quoting result null deref). (CVE-2025-14180)
  • Phar: Fixed bug GH-20442 (Phar does not respect case-insensitiveness of __halt_compiler() when reading stub). Fix broken return value of fflush() for phar file entries. Fix assertion failure when fseeking a phar file out of bounds.
  • Fixed bug GH-20442 (Phar does not respect case-insensitiveness of __halt_compiler() when reading stub).
  • Fix broken return value of fflush() for phar file entries.
  • Fix assertion failure when fseeking a phar file out of bounds.
  • PHPDBG: Fixed ZPP type violation in phpdbg_get_executable() and phpdbg_end_oplog().
  • Fixed ZPP type violation in phpdbg_get_executable() and phpdbg_end_oplog().
  • SPL: Fixed bug GH-20614 (SplFixedArray incorrectly handles references in deserialization).
  • Fixed bug GH-20614 (SplFixedArray incorrectly handles references in deserialization).
  • Standard: Fix memory leak in array_diff() with custom type checks. Fixed bug GH-20583 (Stack overflow in http_build_query via deep structures). Fixed GHSA-www2-q4fc-65wf (Null byte termination in dns_get_record()). Fixed GHSA-h96m-rvf9-jgm2 (Heap buffer overflow in array_merge()). (CVE-2025-14178) Fixed GHSA-3237-qqm7-mfv7 (Information Leak of Memory in getimagesize). (CVE-2025-14177)
  • Fix memory leak in array_diff() with custom type checks.
  • Fixed bug GH-20583 (Stack overflow in http_build_query via deep structures).
  • Fixed GHSA-www2-q4fc-65wf (Null byte termination in dns_get_record()).
  • Fixed GHSA-h96m-rvf9-jgm2 (Heap buffer overflow in array_merge()). (CVE-2025-14178)
  • Fixed GHSA-3237-qqm7-mfv7 (Information Leak of Memory in getimagesize). (CVE-2025-14177)
  • URI: Fixed bug GH-20366 (ext/uri incorrectly throws ValueError when encountering null byte). Fixed CVE-2025-67899 (uriparser through 0.9.9 allows unbounded recursion and stack consumption).
  • Fixed bug GH-20366 (ext/uri incorrectly throws ValueError when encountering null byte).
  • Fixed CVE-2025-67899 (uriparser through 0.9.9 allows unbounded recursion and stack consumption).
  • XML: Fixed bug GH-20439 (xml_set_default_handler() does not properly handle special characters in attributes when passing data to callback).
  • Fixed bug GH-20439 (xml_set_default_handler() does not properly handle special characters in attributes when passing data to callback).
  • Zip: Fix crash in property existence test. Don't truncate return value of zip_fread() with user sizes.
  • Fix crash in property existence test.
  • Don't truncate return value of zip_fread() with user sizes.
  • Zlib: Fix assertion failures resulting in crashes with stream filter object parameters.
  • Fix assertion failures resulting in crashes with stream filter object parameters.

Version 8.5.0

  • Core: Added the #[\NoDiscard] attribute to indicate that a function's return value is important and should be consumed. Added the (void) cast to indicate that not using a value is intentional. Added get_error_handler(), get_exception_handler() functions. Added support for casts in constant expressions. Added the pipe (|>) operator. 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-20177 (Accessing overridden private property in get_object_vars() triggers assertion error). Fix OSS-Fuzz #447521098 (Fatal error during sccp shift eval). Fixed bug GH-20002 (Broken build on *BSD with MSAN). Fixed bug GH-19352 (Cross-compilation with musl C library). Fixed bug GH-19765 (object_properties_load() bypasses readonly property checks). Fixed hard_timeout with --enable-zend-max-execution-timers. Fixed bug GH-19839 (Incorrect HASH_FLAG_HAS_EMPTY_IND flag on userland array). Fixed bug GH-19823 (register_argc_argv deprecation emitted twice when using OPcache). Fixed bug GH-19480 (error_log php.ini cannot be unset when open_basedir is configured). Fixed bug GH-19719 (Allow empty statements before declare(strict_types)). Fixed bug GH-19934 (CGI with auto_globals_jit=0 causes uouv). Fixed bug GH-19613 (Stale array iterator pointer). Fixed bug GH-19679 (zend_ssa_range_widening may fail to converge). Fixed bug GH-19681 (PHP_EXPAND_PATH broken with bash 5.3.0). Fixed bug GH-18850 (Repeated inclusion of file with __halt_compiler() triggers "Constant already defined" warning). Fixed bug GH-19476 (pipe operator fails to correctly handle returning by reference). Fixed bug GH-19081 (Wrong lineno in property error with constructor property promotion). Fixed bug GH-17959 (Relax missing trait fatal error to error exception). 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)
  • Added the #[\NoDiscard] attribute to indicate that a function's return value is important and should be consumed.
  • Added the (void) cast to indicate that not using a value is intentional.
  • Added get_error_handler(), get_exception_handler() functions.
  • Added support for casts in constant expressions.
  • Added the pipe (|>) operator.
  • 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-20177 (Accessing overridden private property in get_object_vars() triggers assertion error).
  • Fix OSS-Fuzz #447521098 (Fatal error during sccp shift eval).
  • Fixed bug GH-20002 (Broken build on *BSD with MSAN).
  • Fixed bug GH-19352 (Cross-compilation with musl C library).
  • Fixed bug GH-19765 (object_properties_load() bypasses readonly property checks).
  • Fixed hard_timeout with --enable-zend-max-execution-timers.
  • Fixed bug GH-19839 (Incorrect HASH_FLAG_HAS_EMPTY_IND flag on userland array).
  • Fixed bug GH-19823 (register_argc_argv deprecation emitted twice when using OPcache).
  • Fixed bug GH-19480 (error_log php.ini cannot be unset when open_basedir is configured).
  • Fixed bug GH-19719 (Allow empty statements before declare(strict_types)).
  • Fixed bug GH-19934 (CGI with auto_globals_jit=0 causes uouv).
  • Fixed bug GH-19613 (Stale array iterator pointer).
  • Fixed bug GH-19679 (zend_ssa_range_widening may fail to converge).
  • Fixed bug GH-19681 (PHP_EXPAND_PATH broken with bash 5.3.0).
  • Fixed bug GH-18850 (Repeated inclusion of file with __halt_compiler() triggers "Constant already defined" warning).
  • Fixed bug GH-19476 (pipe operator fails to correctly handle returning by reference).
  • Fixed bug GH-19081 (Wrong lineno in property error with constructor property promotion).
  • Fixed bug GH-17959 (Relax missing trait fatal error to error exception).
  • 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).
  • 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).
  • Bz2: Fixed bug GH-19810 (Broken bzopen() stream mode validation).
  • Fixed bug GH-19810 (Broken bzopen() stream mode validation).
  • CLI: Add --ini=diff to print INI settings changed from the builtin default. Drop support for -z CLI/CGI flag. Fixed GH-17956 - development server 404 page does not adapt to mobiles. Fix useless "Failed to poll event" error logs due to EAGAIN in CLI server with PHP_CLI_SERVER_WORKERS. Fixed bug GH-19461 (Improve error message on listening error with IPv6 address).
  • Add --ini=diff to print INI settings changed from the builtin default.
  • Drop support for -z CLI/CGI flag.
  • Fixed GH-17956 - development server 404 page does not adapt to mobiles.
  • Fix useless "Failed to poll event" error logs due to EAGAIN in CLI server with PHP_CLI_SERVER_WORKERS.
  • Fixed bug GH-19461 (Improve error message on listening error with IPv6 address).
  • COM: Fixed property access of PHP objects wrapped in variant. Fixed method calls for PHP objects wrapped in variant.
  • Fixed property access of PHP objects wrapped in variant.
  • Fixed method calls for PHP objects wrapped in variant.
  • Curl: Added CURLFOLLOW_ALL, CURLFOLLOW_OBEYCODE and CURLFOLLOW_FIRSTONLY values for CURLOPT_FOLLOWLOCATION curl_easy_setopt option. Added curl_multi_get_handles(). Added curl_share_init_persistent(). Added CURLINFO_USED_PROXY, CURLINFO_HTTPAUTH_USED, and CURLINFO_PROXYAUTH_USED support to curl_getinfo. Add support for CURLINFO_CONN_ID in curl_getinfo() (thecaliskan) Add support for CURLINFO_QUEUE_TIME_T in curl_getinfo() (thecaliskan) Add support for CURLOPT_SSL_SIGNATURE_ALGORITHMS. The curl_close() function has been deprecated. The curl_share_close() function has been deprecated. Fix cloning of CURLOPT_POSTFIELDS when using the clone operator instead of the curl_copy_handle() function to clone a CurlHandle.
  • Added CURLFOLLOW_ALL, CURLFOLLOW_OBEYCODE and CURLFOLLOW_FIRSTONLY values for CURLOPT_FOLLOWLOCATION curl_easy_setopt option.
  • Added curl_multi_get_handles().
  • Added curl_share_init_persistent().
  • Added CURLINFO_USED_PROXY, CURLINFO_HTTPAUTH_USED, and CURLINFO_PROXYAUTH_USED support to curl_getinfo.
  • Add support for CURLINFO_CONN_ID in curl_getinfo() (thecaliskan)
  • Add support for CURLINFO_QUEUE_TIME_T in curl_getinfo() (thecaliskan)
  • Add support for CURLOPT_SSL_SIGNATURE_ALGORITHMS.
  • The curl_close() function has been deprecated.
  • The curl_share_close() function has been deprecated.
  • Fix cloning of CURLOPT_POSTFIELDS when using the clone operator instead of the curl_copy_handle() function to clone a CurlHandle.
  • Date: Fix undefined behaviour problems regarding integer overflow in extreme edge cases. 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.
  • Fix undefined behaviour problems regarding integer overflow in extreme edge cases.
  • 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). Fix getNamedItemNS() incorrect namespace check.
  • 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).
  • Fix getNamedItemNS() incorrect namespace check.
  • Enchant: Added enchant_dict_remove_from_session(). Added enchant_dict_remove(). Fix missing empty string checks.
  • Added enchant_dict_remove_from_session().
  • Added enchant_dict_remove().
  • Fix missing empty string checks.
  • EXIF: Add OffsetTime* Exif tags. Added support to retrieve Exif from HEIF file. Fix OSS-Fuzz #442954659 (zero-size box in HEIF file causes infinite loop). Fix OSS-Fuzz #442954659 (Crash in exif_scan_HEIF_header). Various hardening fixes to HEIF parsing.
  • Add OffsetTime* Exif tags.
  • Added support to retrieve Exif from HEIF file.
  • Fix OSS-Fuzz #442954659 (zero-size box in HEIF file causes infinite loop).
  • Fix OSS-Fuzz #442954659 (Crash in exif_scan_HEIF_header).
  • Various hardening fixes to HEIF parsing.
  • FileInfo: The finfo_close() function has been deprecated. The $context parameter of the finfo_buffer() function has been deprecated as it is ignored. Upgrade to file 5.46. Change return type of finfo_close() to true.
  • The finfo_close() function has been deprecated.
  • The $context parameter of the finfo_buffer() function has been deprecated as it is ignored.
  • Upgrade to file 5.46.
  • Change return type of finfo_close() to true.
  • Filter: Added support for configuring the URI parser for FILTER_VALIDATE_URL as described in https://wiki.php.net/rfc/url_parsing_api#plugability. Fixed bug GH-16993 (filter_var_array with FILTER_VALIDATE_INT|FILTER_NULL_ON_FAILURE should emit warning for invalid filter usage).
  • Added support for configuring the URI parser for FILTER_VALIDATE_URL as described in https://wiki.php.net/rfc/url_parsing_api#plugability.
  • Fixed bug GH-16993 (filter_var_array with FILTER_VALIDATE_INT|FILTER_NULL_ON_FAILURE should emit warning for invalid filter usage).
  • FPM: Fixed bug GH-19817 (Decode SCRIPT_FILENAME issue in php 8.5). Fixed bug GH-19989 (PHP 8.5 FPM access log lines also go to STDERR). Fixed GH-17645 (FPM with httpd ProxyPass does not decode script path). Make FPM access log limit configurable using log_limit. Fixed failed debug assertion when php_admin_value setting fails. Fixed GH-8157 (post_max_size evaluates .user.ini too late in php-fpm).
  • Fixed bug GH-19817 (Decode SCRIPT_FILENAME issue in php 8.5).
  • Fixed bug GH-19989 (PHP 8.5 FPM access log lines also go to STDERR).
  • Fixed GH-17645 (FPM with httpd ProxyPass does not decode script path).
  • Make FPM access log limit configurable using log_limit.
  • Fixed failed debug assertion when php_admin_value setting fails.
  • Fixed GH-8157 (post_max_size evaluates .user.ini too late in php-fpm).
  • GD: Fixed bug #68629 (Transparent artifacts when using imagerotate). Fixed bug #64823 (ZTS GD fails to find system TrueType font). Fix incorrect comparison with result of php_stream_can_cast(). The imagedestroy() function has been deprecated.
  • Fixed bug #68629 (Transparent artifacts when using imagerotate).
  • Fixed bug #64823 (ZTS GD fails to find system TrueType font).
  • Fix incorrect comparison with result of php_stream_can_cast().
  • The imagedestroy() function has been deprecated.
  • Iconv: Extends the ICONV_CONST preprocessor for illumos/solaris.
  • Extends the ICONV_CONST preprocessor for illumos/solaris.
  • Intl: Bumped ICU requirement to ICU >= 57.1. IntlDateFormatter::setTimeZone()/datefmt_set_timezone() throws an exception with uninitialised classes or clone failure. Added DECIMAL_COMPACT_SHORT/DECIMAL_COMPACT_LONG for NumberFormatter class. Added Locale::isRightToLeft to check if a locale is written right to left. Added null bytes presence in locale inputs for Locale class. Added grapheme_levenshtein() function. Added Locale::addLikelySubtags/Locale::minimizeSubtags to handle adding/removing likely subtags to a locale. Added IntlListFormatter class to format a list of items with a locale, operands types and units. Added grapheme_strpos(), grapheme_stripos(), grapheme_strrpos(), grapheme_strripos(), grapheme_substr(), grapheme_strstr(), grapheme_stristr() and grapheme_levenshtein() functions add $locale parameter (Yuya Hamada). 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.
  • Bumped ICU requirement to ICU >= 57.1.
  • IntlDateFormatter::setTimeZone()/datefmt_set_timezone() throws an exception with uninitialised classes or clone failure.
  • Added DECIMAL_COMPACT_SHORT/DECIMAL_COMPACT_LONG for NumberFormatter class.
  • Added Locale::isRightToLeft to check if a locale is written right to left.
  • Added null bytes presence in locale inputs for Locale class.
  • Added grapheme_levenshtein() function.
  • Added Locale::addLikelySubtags/Locale::minimizeSubtags to handle adding/removing likely subtags to a locale.
  • Added IntlListFormatter class to format a list of items with a locale, operands types and units.
  • Added grapheme_strpos(), grapheme_stripos(), grapheme_strrpos(), grapheme_strripos(), grapheme_substr(), grapheme_strstr(), grapheme_stristr() and grapheme_levenshtein() functions add $locale parameter (Yuya Hamada).
  • 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).
  • Allow ldap_get_option to retrieve global option by allowing NULL for connection instance ($ldap).
  • MBstring: Updated Unicode data tables to Unicode 17.0.
  • 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.
  • 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.
  • Added mysqlnd.collect_memory_statistics to ini quick reference.
  • ODBC: Removed driver-specific build flags and support. Remove ODBCVER and assume ODBC 3.5.
  • 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-20012 (heap buffer overflow in jit). Partially fixed bug GH-17733 (Avoid calling wrong function when reusing file caches across differing environments). Disallow changing opcache.memory_consumption when SHM is already set up. Fixed bug GH-15074 (Compiling opcache statically into ZTS PHP fails). Fixed bug GH-17422 (OPcache bypasses the user-defined error handler for deprecations). Fixed bug GH-19301 (opcache build failure). Fixed bug GH-20081 (access to uninitialized vars in preload_load()). Fixed bug GH-20121 (JIT broken in ZTS builds on MacOS 15). Fixed bug GH-19875 (JIT 1205 segfault on large file compiled in subprocess). Fixed segfault in function JIT due to NAN to bool warning. Fixed bug GH-19984 (Double-free of EG(errors)/persistent_script->warnings on persist of already persisted file). Fixed bug GH-19889 (race condition in zend_runtime_jit(), zend_jit_hot_func()). Fixed bug GH-19669 (assertion failure in zend_jit_trace_type_to_info_ex). Fixed bug GH-19831 (function JIT may not deref property value). Fixed bug GH-19486 (Incorrect opline after deoptimization). Fixed bug GH-19601 (Wrong JIT stack setup on aarch64/clang). Fixed bug GH-19388 (Broken opcache.huge_code_pages). 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).
  • 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-20012 (heap buffer overflow in jit).
  • Partially fixed bug GH-17733 (Avoid calling wrong function when reusing file caches across differing environments).
  • Disallow changing opcache.memory_consumption when SHM is already set up.
  • Fixed bug GH-15074 (Compiling opcache statically into ZTS PHP fails).
  • Fixed bug GH-17422 (OPcache bypasses the user-defined error handler for deprecations).
  • Fixed bug GH-19301 (opcache build failure).
  • Fixed bug GH-20081 (access to uninitialized vars in preload_load()).
  • Fixed bug GH-20121 (JIT broken in ZTS builds on MacOS 15).
  • Fixed bug GH-19875 (JIT 1205 segfault on large file compiled in subprocess).
  • Fixed segfault in function JIT due to NAN to bool warning.
  • Fixed bug GH-19984 (Double-free of EG(errors)/persistent_script->warnings on persist of already persisted file).
  • Fixed bug GH-19889 (race condition in zend_runtime_jit(), zend_jit_hot_func()).
  • Fixed bug GH-19669 (assertion failure in zend_jit_trace_type_to_info_ex).
  • Fixed bug GH-19831 (function JIT may not deref property value).
  • Fixed bug GH-19486 (Incorrect opline after deoptimization).
  • Fixed bug GH-19601 (Wrong JIT stack setup on aarch64/clang).
  • Fixed bug GH-19388 (Broken opcache.huge_code_pages).
  • 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.
  • 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.
  • Fixed calculation of aligned buffer size.
  • PCNTL: Extend pcntl_waitid with rusage parameter.
  • Extend pcntl_waitid with rusage parameter.
  • PCRE: Remove PCRE2_EXTRA_ALLOW_LOOKAROUND_BSK from pcre compile options.
  • 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.
  • 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.
  • 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)
  • 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)
  • PDO_SQLITE: Add PDO\Sqlite::ATTR_TRANSACTION_MODE connection attribute. 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.
  • Add PDO\Sqlite::ATTR_TRANSACTION_MODE connection attribute.
  • 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.
  • 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.
  • 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.
  • 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.
  • Moves from /dev/urandom usage to arc4random_buf on Haiku.
  • Reflection: Added ReflectionConstant::getExtension() and ::getExtensionName(). Added ReflectionProperty::getMangledName() method. ReflectionConstant is no longer final. The setAccessible() methods of various Reflection objects have been deprecated, as those no longer have an effect. ReflectionClass::getConstant() for constants that do not exist has been deprecated. ReflectionProperty::getDefaultValue() for properties without default values has been deprecated. Fixed bug GH-12856 (ReflectionClass::getStaticPropertyValue() returns UNDEF zval for uninitialized typed properties). 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).
  • Added ReflectionConstant::getExtension() and ::getExtensionName().
  • Added ReflectionProperty::getMangledName() method.
  • ReflectionConstant is no longer final.
  • The setAccessible() methods of various Reflection objects have been deprecated, as those no longer have an effect.
  • ReflectionClass::getConstant() for constants that do not exist has been deprecated.
  • ReflectionProperty::getDefaultValue() for properties without default values has been deprecated.
  • Fixed bug GH-12856 (ReflectionClass::getStaticPropertyValue() returns UNDEF zval for uninitialized typed properties).
  • 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().
  • 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.
  • 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).
  • 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.
  • 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).
  • 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(). Added TCP_FUNCTION_ALIAS, TCP_REUSPORT_LB_NUMA, TCP_REUSPORT_LB_NUMA_NODOM, TCP_REUSPORT_LB_CURDOM, TCP_BBR_ALGORITHM constants. socket_set_option() catches possible overflow with SO_RCVTIMEO/SO_SNDTIMEO with timeout setting on windows. socket_create_listen() throws an exception on invalid port value. socket_bind() throws an exception on invalid port value. socket_sendto() throws an exception on invalid port value. socket_addrinfo_lookup throws an exception on invalid hints value types. socket_addrinfo_lookup throws an exception if any of the hints value overflows. socket_addrinfo_lookup throws an exception if one or more hints entries has an index as numeric. socket_set_option with the options MCAST_LEAVE_GROUP/MCAST_LEAVE_SOURCE_GROUP will throw an exception if its value is not a valid array/object. socket_getsockname/socket_create/socket_bind handled AF_PACKET family socket. socket_set_option for multicast context throws a ValueError when the socket family is not of AF_INET/AF_INET6 family.
  • 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().
  • Added TCP_FUNCTION_ALIAS, TCP_REUSPORT_LB_NUMA, TCP_REUSPORT_LB_NUMA_NODOM, TCP_REUSPORT_LB_CURDOM, TCP_BBR_ALGORITHM constants.
  • socket_set_option() catches possible overflow with SO_RCVTIMEO/SO_SNDTIMEO with timeout setting on windows.
  • socket_create_listen() throws an exception on invalid port value.
  • socket_bind() throws an exception on invalid port value.
  • socket_sendto() throws an exception on invalid port value.
  • socket_addrinfo_lookup throws an exception on invalid hints value types.
  • socket_addrinfo_lookup throws an exception if any of the hints value overflows.
  • socket_addrinfo_lookup throws an exception if one or more hints entries has an index as numeric.
  • socket_set_option with the options MCAST_LEAVE_GROUP/MCAST_LEAVE_SOURCE_GROUP will throw an exception if its value is not a valid array/object.
  • socket_getsockname/socket_create/socket_bind handled AF_PACKET family socket.
  • socket_set_option for multicast context throws a ValueError when the socket family is not of AF_INET/AF_INET6 family.
  • Sodium: Fix overall theoretical overflows on zend_string buffer allocations.
  • Fix overall theoretical overflows on zend_string buffer allocations.
  • SPL: Fixed bug GH-20101 (SplHeap/SplPriorityQueue serialization exposes INDIRECTs). 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.
  • Fixed bug GH-20101 (SplHeap/SplPriorityQueue serialization exposes INDIRECTs).
  • 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.
  • 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). Fixed bug GH-16649 (UAF during array_splice). Passing strings which are not one byte long to ord() is now deprecated. Passing integers outside the interval [0, 255] to chr() is now deprecated. The socket_set_timeout() alias function has been deprecated. Passing null to readdir(), rewinddir(), and closedir() to use the last opened directory has been deprecated.
  • 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).
  • Fixed bug GH-16649 (UAF during array_splice).
  • Passing strings which are not one byte long to ord() is now deprecated.
  • Passing integers outside the interval [0, 255] to chr() is now deprecated.
  • The socket_set_timeout() alias function has been deprecated.
  • Passing null to readdir(), rewinddir(), and closedir() to use the last opened directory has been deprecated.
  • Streams: Fixed bug GH-16889 (stream_select() timeout useless for pipes on Windows). Fixed bug GH-19798: XP_SOCKET XP_SSL (Socket stream modules): Incorrect condition for Win32/Win64. Fixed bug GH-14506 (Closing a userspace stream inside a userspace handler causes heap corruption). Avoid double conversion to string in php_userstreamop_readdir().
  • Fixed bug GH-16889 (stream_select() timeout useless for pipes on Windows).
  • Fixed bug GH-19798: XP_SOCKET XP_SSL (Socket stream modules): Incorrect condition for Win32/Win64.
  • Fixed bug GH-14506 (Closing a userspace stream inside a userspace handler causes heap corruption).
  • Avoid double conversion to string in php_userstreamop_readdir().
  • Tests: Allow to shuffle tests even in non-parallel mode.
  • Allow to shuffle tests even in non-parallel mode.
  • Tidy: tidy::__construct/parseFile/parseString methods throw an exception if the configuration argument is invalid. Fixed GH-19021 (improved tidyOptGetCategory detection).
  • tidy::__construct/parseFile/parseString methods throw an exception if the configuration argument is invalid.
  • Fixed GH-19021 (improved tidyOptGetCategory detection).
  • Tokenizer: Fixed bug GH-19507 (Corrupted result after recursive tokenization during token_get_all()).
  • Fixed bug GH-19507 (Corrupted result after recursive tokenization during token_get_all()).
  • URI: Add new URI extension.
  • Add new URI extension.
  • Windows: Fixed bug GH-10992 (Improper long path support for relative paths). Fixed bug GH-16843 (Windows phpize builds ignore source subfolders). Fix GH-19722 (_get_osfhandle asserts in debug mode when given a socket).
  • Fixed bug GH-10992 (Improper long path support for relative paths).
  • Fixed bug GH-16843 (Windows phpize builds ignore source subfolders).
  • Fix GH-19722 (_get_osfhandle asserts in debug mode when given a socket).
  • XML: The xml_parser_free() function has been deprecated.
  • The xml_parser_free() function has been deprecated.
  • XMLWriter: Improved performance and reduce memory consumption.
  • Improved performance and reduce memory consumption.
  • XSL: Implement request #30622 (make $namespace parameter functional).
  • Implement request #30622 (make $namespace parameter functional).
  • Zlib: 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).
  • 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.
  • 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).
  • 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 GHSA-5j3f-64r7-f564 (PHP-CGI out-of-bounds read and write during PATH_INFO correction). (CVE-2026-129538)
  • CLI: Fixed bug GH-24697 (PHP_HTTP_PARSER_STRICT build option doesn't work). Fixed bug GH-9670 (List -C and -q in the CLI help). Fixed crash and leak in the built-in server on repeated request headers.
  • Fixed bug GH-24697 (PHP_HTTP_PARSER_STRICT build option doesn't work).
  • Fixed bug GH-9670 (List -C and -q in the CLI help).
  • Fixed crash and leak in the built-in server on repeated request headers.
  • COM: Fixed bug GH-25008 (com_event_sink() and com_print_typeinfo() crash resolving an event source with no loaded typelib).
  • 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.
  • Fix use-after-free of CURLOPT_STDERR stream on cloned curl handle.
  • Fix UAF on clone due to callback data pointer mismatch.
  • Date: Fixed bug GH-20503 (Assertion failure with ext/date DateInterval property hash construction). 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)
  • Fixed bug GH-20503 (Assertion failure with ext/date DateInterval property hash construction).
  • 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).
  • 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)
  • 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).
  • 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)
  • 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).
  • 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.
  • Fix double free in ext/ftp data_accept() on accept failure.
  • GD: Fixed imagetruecolortopalette() error message.
  • Fixed imagetruecolortopalette() error message.
  • Hash: Fix GOST and Snefru digests of 512 MiB or more.
  • Fix GOST and Snefru digests of 512 MiB or more.
  • Intl: Fixed IntlDateFormatter parse functions truncating an $offset below INT_MIN.
  • 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.
  • 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.
  • 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.
  • 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).
  • 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).
  • 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. Fix too wide type inference for ASSIGN_DIM_OP. Fix OSS-Fuzz #568005340 (FETCH_DIM_FUNC_ARG partial conversion). 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. Fix block pass dropping ZEND_FAST_CALL OP2 definition. 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). 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-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.
  • Fix too wide type inference for ASSIGN_DIM_OP.
  • Fix OSS-Fuzz #568005340 (FETCH_DIM_FUNC_ARG partial conversion).
  • 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.
  • Fix block pass dropping ZEND_FAST_CALL OP2 definition.
  • 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).
  • 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.
  • OpenSSL: Fixed build and test compatibility with OpenSSL 4.0 and 4.1. Fixed bug GH-24784 (openssl_pkcs7_read() and openssl_cms_read() overwrite certificates with CRLs).
  • Fixed build and test compatibility with OpenSSL 4.0 and 4.1.
  • Fixed bug GH-24784 (openssl_pkcs7_read() and openssl_cms_read() overwrite certificates with CRLs).
  • PDO: Fixed invalid ATTR_ORACLE_NULLS values being accepted and truncated. Fixed a duplicate warning when ATTR_STATEMENT_CLASS is rejected on a persistent connection.
  • Fixed invalid ATTR_ORACLE_NULLS values being accepted and truncated.
  • Fixed a duplicate warning when ATTR_STATEMENT_CLASS is rejected on a persistent connection.
  • PDO_Firebird: Fixed bug GH-25006 (getColumnMeta() reads out of bounds for an out-of-range column index).
  • Fixed bug GH-25006 (getColumnMeta() reads out of bounds for an out-of-range column index).
  • PDO_PGSQL: Fixed a use-after-free when a persistent connection receives a notice after the request that called Pdo\Pgsql::setNoticeCallback() has ended.
  • Fixed a use-after-free when a persistent connection receives a notice after the request that called Pdo\Pgsql::setNoticeCallback() has ended.
  • PDO_SQLite: Fixed bug GH-24990 (Statement unusable after a failed execute()). Fixed bug GH-25021 (SQLite createFunction corrupts large integers).
  • Fixed bug GH-24990 (Statement unusable after a failed execute()).
  • Fixed bug GH-25021 (SQLite createFunction corrupts large integers).
  • 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 GHSA-68fq-fh7h-f8gr (PHAR OpenSSL signature bypass via algorithm downgrade). (CVE-2026-128090)
  • 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 GHSA-68fq-fh7h-f8gr (PHAR OpenSSL signature bypass via algorithm downgrade). (CVE-2026-128090)
  • Phpdbg: Fix wrong command names. Fixed bug GH-22480 (Use-after-free when re-watching an already-watched variable). Fixed over-read when watching a packed array element. Fixed double free of watch element chains.
  • Fix wrong command names.
  • Fixed bug GH-22480 (Use-after-free when re-watching an already-watched variable).
  • Fixed over-read when watching a packed array element.
  • Fixed double free of watch element chains.
  • Readline: Fixed a crash in readline_info() when completion_append_character contains a non-ASCII byte.
  • Fixed a crash in readline_info() when completion_append_character contains a non-ASCII byte.
  • SAPI: Fixed infinite loop in sapi_header_op() for headers of 4 GiB or more.
  • Fixed infinite loop in sapi_header_op() for headers of 4 GiB or more.
  • SOAP: Fixed use of uninitialized func in do_request() on OOM bailout. 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)
  • Fixed use of uninitialized func in do_request() on OOM bailout.
  • 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)
  • Session: Validate whole session ID instead of stopping at the first NUL byte. 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)
  • Validate whole session ID instead of stopping at the first NUL byte.
  • 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)
  • SimpleXML: Fixed bug GH-24488 (GC double-frees the SimpleXMLElement properties table).
  • Fixed bug GH-24488 (GC double-frees the SimpleXMLElement properties table).
  • SPL: Fixed bug GH-24264 (Unwind/GracefulExit discarded in spl_iterators.c).
  • Fixed bug GH-24264 (Unwind/GracefulExit discarded in spl_iterators.c).
  • Sockets: Fixed bug GH-24748 (socket_set_option() crashes with declared object properties).
  • Fixed bug GH-24748 (socket_set_option() crashes with declared object properties).
  • Standard: Fixed memory leaks in checkdnsrr() and dns_check_record() on Windows. Fixed __unserialize() and __wakeup() being called for objects with a missing closing brace. Fixed bug GH-24308 (Request shutdown calls closelog() even when syslog was not opened by PHP). Fixed bug GH-24399 (usleep() and time_nanosleep() ignore queued APCs on Windows). Fixed chown() and lchown() failing to resolve user names in ZTS builds when getpwnam_r() needs a larger buffer. Fixed password_get_info() and password_needs_rehash() accepting malformed bcrypt costs. Fixed proc_open() null descriptor not being inheritable on Windows. Don't share the unserialize() context with enum autoloaders. Fixed bug GH-24373 (serialize() called from a destructor during var_hash destruction reuses the outer var_hash). Fixed bug GH-24552 (Case-insensitive substr_compare(), ksort() and krsort() are still locale-dependent). Fixed bug GH-24605 (var_export() crashes on deeply nested arrays and objects). Fix use-after-free in Randomizer::shuffleArray() when the engine throws. 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)
  • Fixed memory leaks in checkdnsrr() and dns_check_record() on Windows.
  • Fixed __unserialize() and __wakeup() being called for objects with a missing closing brace.
  • Fixed bug GH-24308 (Request shutdown calls closelog() even when syslog was not opened by PHP).
  • Fixed bug GH-24399 (usleep() and time_nanosleep() ignore queued APCs on Windows).
  • Fixed chown() and lchown() failing to resolve user names in ZTS builds when getpwnam_r() needs a larger buffer.
  • Fixed password_get_info() and password_needs_rehash() accepting malformed bcrypt costs.
  • Fixed proc_open() null descriptor not being inheritable on Windows.
  • Don't share the unserialize() context with enum autoloaders.
  • Fixed bug GH-24373 (serialize() called from a destructor during var_hash destruction reuses the outer var_hash).
  • Fixed bug GH-24552 (Case-insensitive substr_compare(), ksort() and krsort() are still locale-dependent).
  • Fixed bug GH-24605 (var_export() crashes on deeply nested arrays and objects).
  • Fix use-after-free in Randomizer::shuffleArray() when the engine throws.
  • 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). Fixed bug GH-24509 (HTTP wrapper leaks Location buffer on empty Location header). Fix out-of-bounds reads parsing ftp:// wrapper server replies.
  • Fixed bug GH-24508 (HTTP wrapper leaks the dechunk filter when header parsing fails after Transfer-Encoding).
  • Fixed bug GH-24509 (HTTP wrapper leaks Location buffer on empty Location header).
  • Fix out-of-bounds reads parsing ftp:// wrapper server replies.
  • Tidy: Fixed tidy_repair_string(), tidy_repair_file(), tidy::repairString() and tidy::repairFile() rejecting null for $encoding.
  • Fixed tidy_repair_string(), tidy_repair_file(), tidy::repairString() and tidy::repairFile() rejecting null for $encoding.
  • Windows: Fixed sapi_windows_cp_set() and sapi_windows_cp_conv() accepting a negative codepage on 32bit platforms. 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.
  • Fixed bug GH-25009 (GetConsoleTitleW() buffer size passed in bytes).
  • 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().
  • 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().
  • Zlib: Fixed use-after-free when an error handler removes a failing zlib.inflate filter (GH-24176). 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-24533 (zlib.lib could not be found because zlib 1.3.2 CMake build does not emit it).

Version 8.4.27

  • Core: Fixed GHSA-w8hw-w9fx-j79w, GHSA-6wmf-4rv5-p3rp (Avoid state corruption via bailout). Fix GH-21999: GC inconsistency with lazy object, var_dump(), and object comparison. Fixed OSS-Fuzz #536440507 (Immutable class incorrect assertion). Fixed AVX being reported as supported when the OS has not enabled AVX state. Fixed GH-23980 (ZEND_ASSERT violation @ ZEND_INCLUDE_OR_EVAL). 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.
  • Fixed GHSA-w8hw-w9fx-j79w, GHSA-6wmf-4rv5-p3rp (Avoid state corruption via bailout).
  • Fix GH-21999: GC inconsistency with lazy object, var_dump(), and object comparison.
  • Fixed OSS-Fuzz #536440507 (Immutable class incorrect assertion).
  • Fixed AVX being reported as supported when the OS has not enabled AVX state.
  • Fixed GH-23980 (ZEND_ASSERT violation @ ZEND_INCLUDE_OR_EVAL).
  • 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.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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).
  • 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.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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 inl…

The text above was extracted automatically from the source page and may miss images, tables or code blocks. The original is authoritative.

Published by Hacker News
This site only summarises and aggregates; copyright stays with the original author. Headlines and summaries follow the source — where they differ, the original wins.
Read the original ↗