Commit ab05b44386f for php
commit ab05b44386f16a7fe45ca73e3b175e2e14b9ab79
Merge: 2cedcc59edc 1c6be9ff5ac
Author: Jakub Zelenka <bukka@php.net>
Date: Thu Nov 19 16:10:28 2026 +0100
Merge branch 'PHP-8.3' into PHP-8.4
* PHP-8.3:
PHP-8.3 is now for PHP 8.3.38-dev
Fix GHSA-g3vh-838c-65v7: Zero PS(session_started_filename) early
PHP-8.2 is now for PHP 8.2.37-dev
Add NEWS entries
Fix GHSA-jm4m-qfqx-967m: FPM worker stdio pipe fd closed twice
Fix GHSA-mmf9-xm3v-hg2x: quadratic folded header concatenation
Fix GHSA-f6gg-rchx-xw8j: mixed case HTTPS and FTPS
Fix GHSA-658j-r8rw-q6mx: session.upload_progress.enabled is off by default
Fix GHSA-fm2m-fjf5-v3cp: RCE via corrupted session file
Fix GHSA-gr4f-wgx5-jpfv: DATEG(tzcache) use-after-free
Fix GHSA-4646-p932-gw34: keep SOAP DTD alive during cleanup
Fix GHSA-qc49-hpvq-g2w6: Drain unread request bodies
Fix GHSA-3mg3-cr28-46gc: FPM XSS within status endpoint via user and script
Fix GHSA-5j3f-64r7-f564: PATH_INFO underflow in CGI init_request_info()
Fix GHSA-68fq-fh7h-f8gr: refuse keyless phar signature when .pubkey exists
Fix GHSA-q23r-hr55-xmpg: out-of-bounds read on empty SOAP-ENC:arraySize
# Conflicts:
# NEWS
# Zend/zend.h
# configure.ac
# main/php_version.h
diff --cc NEWS
index 67008609a29,9fe9546b3b6..d5aa3407361
--- a/NEWS
+++ b/NEWS
@@@ -1,555 -1,52 +1,580 @@@
PHP NEWS
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-?? ??? ????, PHP 8.3.38
+?? ??? ????, PHP 8.4.29
+- CLI:
+ . Fixed built-in server rejecting long request paths, or paths received in
+ several pieces, as malformed. (Ilia Alshanetsky)
+
+- Core:
+ . Fixed AST printing of interface extends list as implements. (Jorg Sowa)
+ . Fixed AST printing dropping fully qualified and namespace-relative prefixes
+ of class names in implements, catch, and trait use lists. (Jorg Sowa)
+ . Fixed AST export dropping the braces of dynamic class constant fetches.
+ (Jorg Sowa)
+ . Fixed bug GH-25265 (Misaligned read for virtual internal props in
+ hooked subclass). (Lazizbek Ergashev)
+ . Fixed bug GH-25299 (Exception string code is lost after unserialize()).
+ (Lazizbek Ergashev, David Carlier)
+ . Fixed bug GH-25302 (Use-after-free in zend_compile_const_decl() with
+ OPcache during concurrent compilation). (Nicolas Grekas)
+ . Fixed use-after-free when the error handler releases a string while an
+ "Illegal string offset" warning is raised for its offset in a read, ?? or
+ nested isset()/empty(). (Jorg Sowa)
+ . Fixed AST printing dropping readonly on promoted constructor parameters.
+ (Jorg Sowa)
+ . Fixed bug GH-25311 (Assertion ret == SUCCESS in array_map()/array_filter()
+ after delayed out-of-memory). (ndossche)
+ . Fixed AST export of by-reference property hooks. (Jorg Sowa)
+ . Fixed object_properties_load() adding integer keys to property tables, which
+ made the properties unreadable and clone hit an assertion.
+ (Nicolas Grekas)
+
+- Curl:
+ . Fixed curl_reset() retaining CURLOPT_PRIVATE after reset. (lacatoire)
+
+- Date:
+ . Fixed truncated timezone name for UTC offsets of 100 hours or more
+ created by DateTime::createFromFormat(). (Jorg Sowa)
+
+- DBA:
+ . Fixed dba_close() not closing a database opened with dba_popen().
+ (Ilia Alshanetsky)
+
+- DOM:
+ . Fixed bug GH-25268 (NULL php_libxml_ref_obj dereference in
+ dom_objects_store_clone_obj when cloning Dom\Notation). (David Carlier)
+ . Fixed bug GH-25306 (Assertion status == LXB_STATUS_OK in dom_parse_selector
+ when lexbor allocation fails). (ndossche)
+ . Fixed bug GH-25434 (C14NFile() on a Dom\XMLDocument leaves the document
+ changed and leaks memory). (lazerg)
+
+- Filter:
+ . Fixed stack overflow in filter_var() and filter_var_array() with deeply
+ nested arrays. (Eyüp Can Akman)
+
+- GD:
+ . Fixed use-after-free when drawing with a brush or tile image that was
+ released after imagesetbrush() or imagesettile(). (lacatoire)
+ . Fixed the argument blamed by the imagepolygon(), imageopenpolygon() and
+ imagefilledpolygon() too few points error. (lacatoire)
+
+- Intl:
+ . Fixed Locale::lookup() ignoring the default locale when the language tag
+ list is empty. (Weilin Du)
+
+- JSON:
+ . Fixed json_decode() and json_validate() error messages. (lacatoire)
+
+- MBString:
+ . Fixed stack overflow in mb_check_encoding() and mb_convert_encoding() with
+ deeply nested arrays. (Eyüp Can Akman)
+
+- Opcache:
+ . Fixed bug GH-24801 (JIT: SIGFPE in ir_fold MUL_OV constant folding).
+ (waroad)
+ . Fixed bug GH-25165 (Tracing JIT loops forever once opcache.jit_buffer_size
+ is exhausted while compiling side traces). (Ilia Alshanetsky)
+ . Fixed bug GH-25164 (Function JIT loop calling a user function runs once
+ or never terminates). (Ilia Alshanetsky)
+ . Fixed memory leak in JIT ASSIGN_DIM when the assignment fails. (Jorg Sowa)
+ . Fixed bug GH-16396 (Failed to invoke user error handler during index
+ conversion in JIT). (Jorg Sowa)
+ . Fixed bug GH-25037 (Function JIT ENTRY live var assertion).
+ (Ilia Alshanetsky)
+ . Fixed JIT ignoring leading-numeric string offsets in isset(), empty() and
+ ??. (Jorg Sowa)
+ . Fixed use-after-free in JIT when the error handler releases a string while
+ an "Undefined variable" warning is raised for its offset in ?? or nested
+ isset()/empty(). (Jorg Sowa)
+ . Fixed tracing JIT reading the int result of ++/-- on a reference as a
+ double. (ChrisAbner)
+ . Fixed bug GH-25359 (Tracing JIT drops reference type of a named by-ref
+ argument). (David Carlier)
+ . Fixed bug GH-8739 (OPcache restart corrupts SHM in threaded SAPIs).
+ (pavimus)
+ . Fixed opcache.enable_file_override lookups racing with OPcache restarts
+ (pavimus)
+
+- PDO_Firebird:
+ . Fixed stack buffer overflow with long connection user names, passwords,
+ charsets, or roles. (Ilia Alshanetsky)
+
+- PCNTL:
+ . Fixed pcntl_signal() raising a fatal error for SIGKILL and SIGSTOP.
+ (lacatoire)
+
+- PCRE:
+ . Fixed \C being allowed in patterns enabling UTF mode with (*UTF) instead
+ of the u modifier. (Jorg Sowa)
+
+- PDO_MYSQL:
+ . Fixed a crash when executing a prepared statement again after a failed
+ execute() with libmysqlclient. (Ilia Alshanetsky)
-19 Nov 2026, PHP 8.3.37
+- POSIX:
+ . Fixed bug GH-25530 (posix_get_last_error() returns an error from a
+ previous request). (Artem Ukrainskiy)
+
+- Readline:
+ . Fixed incorrect handling of non-ASCII pending_input bytes in readline_info(),
+ which could cause readline() to return false prematurely. (Weilin Du)
+
+- Reflection:
+ . Fix trampoline leak when object construction fails for lazy object.
+ (ndossche)
+ . Fixed ReflectionMethod::getClosure() returning a closure for abstract
+ methods, which crashed when called for the ones of internal classes.
+ (Nicolas Grekas)
+
+- SNMP:
+ . Fixed use-after-free of the context name set by SNMP::setSecurity().
+ (lacatoire)
+
+- SOAP:
+ . Fixed bug GH-25267 (NULL dereference in to_xml_any() with integer key).
+ (lazerg)
+ . Fixed bug GH-25094 (NULL dereference in get_doc_function() with missing
+ parts). (lazerg)
+
+- Sockets:
+ . Fixed bug GH-25530 (socket_last_error() without a socket returns an error
+ from a previous request). (Artem Ukrainskiy)
+
+- Session:
+ . Fixed session upload progress to respect session.use_only_cookies.
+ (jorgsowa)
+
+- Standard:
+ . Fixed bug GH-25474 (version_compare() treats large numeric parts as equal
+ on 64-bit Windows). (lazerg, timwolla)
+ . Fixed dns_get_record() returning partially built records for malformed
+ DNS responses. (Marti2203)
+ . Fixed bug GH-25387 (Uploaded files leak in request_parse_body()).
+ (Kévin Dunglas)
+ . Fixed bug GH-24743 (var_export() ignores exceptions from lazy object
+ initialization). (lazerg)
+ . Fixed memory leak in get_meta_tags() when a tag opens while an attribute
+ value is expected. (Jorg Sowa)
+ . Fixed bug GH-25284 (quoted_printable_encode() splits UTF-8 characters).
+ (Lazizbek Ergashev, Matthijs Kooijman)
+ . Fixed bug GH-24441 (quoted_printable_encode() produces lines longer than
+ 76 characters for bytes 0xF5 to 0xFF). (Sebastian Turner,
+ Lazizbek Ergashev)
+ . Fixed getimagesize() reporting wrapped dimensions for XBM images with
+ out-of-range width or height. (Ilia Alshanetsky)
+
+- Streams:
+ . Fixed bug GH-22063 (Stream filter chain UAF on self-removal during
+ callback). (Ilia Alshanetsky)
+ . Fixed leaks and data loss when user filter leaves buckets on input
+ brigade. (ndossche, Matthias Goergens, Jakub Zelenka)
+ . Fixed bug GH-24175 (Use-after-free when pclose() closes a stream from its
+ user filter). (Edmond)
+ . Fixed bug GH-15701 (Build failure: incompatible funopen() seeker pointer
+ type on 32-bit platforms). (Kamil Tekiela)
+
+19 Nov 2026, PHP 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). (Levi Morrison)
+ . Fixed memory leak when an exception already contains the pending exception
+ in its previous chain. (Edmond)
+ . Fixed bug GH-23979 (Nullsafe operator must not flush delayed oplines of an
+ enclosing function). (ndossche)
+ . 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. (Marc Bennewitz)
+ . Fixed bug GH-24218 (Invalid opcode for count() of a literal array
+ without SCCP). (lazerg)
+ . Fix throwing behaviour with recursive arrays in VM. (ndossche)
+ . Fixed skipped catch block when switching fibers during exception unwinding
+ (Nicolas Grekas)
+ . Fix escape analysis for objects implementing ArrayAccess. (ndossche, Arnaud)
+ . Fix UAF for resolved callable zval. (EdmondDantes)
+ . Fix memory leak for nested HTTP calls. (EdmondDantes)
+ . Fixed pthread attribute leak in zend_call_stack_get_netbsd_pthread().
+ (David Carlier)
+ . Fixed bug GH-24321 (ZTS: global_map_ptr_last survives zend_shutdown(),
+ so an in-process engine restart keeps growing the map_ptr table).
+ (David Carlier)
+ . Fix function and constant imports in compile_to_ast and add support
+ for grouping. (Klaas Skelte van der Werf)
+ . Fixed bug GH-24265 (Unwind/GracefulExit discarded in
+ zend_fiber_execute()). (David Carlier)
+ . Fixed bug GH-24668 (zend_set_local_var() leaks the previous value of an
+ existing CV). (yasu20200121web-prog, lazerg)
+ . 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).
+ (David Carlier)
+ . Fixed bug GH-24534 (Segfault in zend_try_early_bind when a parent class
+ autoloads its cached child during linking). (David Carlier)
+ . Fixed AST printing dropping final on class constants and properties, and
+ abstract on properties. (Jorg Sowa)
+ . Fixed AST export of readonly anonymous classes dropping the readonly
+ modifier. (Jorg Sowa)
+ . Fixed memory leak of a duplicate named argument in new in initializer.
+ (Jorg Sowa)
+ . Fixed bug GH-25061 ($x = $x - 1 on null is optimized to PRE_DEC).
+ (Lazizbek Ergashev)
+ . 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).
+ (C. Scott Ananian)
+ - CGI:
+ . Fixed GHSA-5j3f-64r7-f564 (PHP-CGI out-of-bounds read and write during
+ PATH_INFO correction). (CVE-2026-129538) (Jakub Zelenka)
+
+- CLI:
+ . Fixed bug GH-24697 (PHP_HTTP_PARSER_STRICT build option doesn't work).
+ (ndossche, devnexen)
+ . Fixed bug GH-9670 (List -C and -q in the CLI help). (Juan Versolato Lopes)
+ . Fixed crash and leak in the built-in server on repeated request headers.
+ (David Carlier)
+
+- COM:
+ . Fixed bug GH-25008 (com_event_sink() and com_print_typeinfo() crash
+ resolving an event source with no loaded typelib). (Ilia Alshanetsky)
+
+- Curl:
+ . Fix use-after-free of CURLOPT_STDERR stream on cloned curl handle.
+ (lacatoire)
+ . Fix UAF on clone due to callback data pointer mismatch. (ndossche)
+
- Date:
+ . Fixed bug GH-20503 (Assertion failure with ext/date DateInterval property
+ hash construction). (heathdutton)
+ . Fixed bug GH-24350 (MINIT reads a stale external tz database after an
+ in-process module restart). (Lazizbek Ergashev)
+ . Fixed GHSA-gr4f-wgx5-jpfv (Timezone cache use-after-free can lead to remote
+ code execution). (CVE-2026-129496) (Ilija Tovilo)
+- DBA:
+ . Fixed bug GH-24641 (ndbm backend never checks dbm_open() return value,
+ NULL deref on first use after a failed open). (Girgias)
+
+- DOM:
+ . Fixed a use-after-free when reflected attribute setters replace an
+ attribute whose child still has a live wrapper. (Jakub Zelenka)
+ . Fixed bug GH-23352 (UAF reading an attribute value node retained across
+ DOMDocument::adoptNode()). (David Carlier)
+ . Fixed bug GH-24260 (querySelectorAll() returns duplicate elements for
+ selector lists). (fivefilters)
+ . Fixed bug GH-23334 (Use-after-free in php_dom_free_templated_content()).
+ (David Carlier, ndossche)
+ . Fixed bug GH-22077 (UAF in custom XPath function). (Joe Afflerbach)
+ . Fixed bug GH-22554 (use-after-free with XPath callback returning a node
+ from a foreign document). (David Carlier)
+ . Fixed DOMXPath crash wrapping a foreign node after a nodeset callback.
+ (Ilia Alshanetsky)
+ . Fix error paths in dom_xml_serializing_a_document_node(). (ndossche)
+ . Fixed use-after-free on namespace axis results with a foreign-document
+ XPath callback node. (David Carlier)
++ . Fixed GHSA-x8r7-mg3g-74hg (Double free during DOM XML serialization).
++ (CVE-2026-129501) (ndossche)
+
+- FFI:
+ . Fixed bug GH-24582 (Memory leaks in ext/ffi parser when finalize_type()
+ bails out). (matyapiro31, David Carlier)
+
- FPM:
+ . Fixed bug GH-24229 (fcgi_close() passes shutdown() a literal 1, which is
+ SHUT_RD in WASI). (Ryosuke Ishibashi)
+ . Fixed crash and stack memory disclosure in the worker output logging with
+ a pool name longer than the message prefix buffer or log_limit.
+ (Martin Mirchev)
- . Fixed bug GH-24046 (FPM worker stdio pipe fd closed twice when a child
- process outlives the worker, breaking a later worker's stdio).
- (Ian P. Christian, ndossche)
++ . Fixed GHSA-jm4m-qfqx-967m (PHP-FPM epoll use-after-free can lead to local
++ privilege escalation). (CVE-2026-129291) (Ian P. Christian, ndossche)
+ . Fixed memory leaks of the _GET string on the status page error and HEAD
+ request paths. (Marcel Hernandez)
+ . Fixed use-after-free of the scoreboard copy when logging invalid status
+ values. (Marcel Hernandez)
+ . Fixed null pointer dereference in fpm_get_status() when the scoreboard
+ copy fails. (Marcel Hernandez)
+ . Fixed GHSA-qc49-hpvq-g2w6 (PHP-FPM request smuggling through an unread HTTP
+ request body). (CVE-2026-129289) (Jakub Zelenka)
+ . Fixed GHSA-3mg3-cr28-46gc (PHP-FPM status endpoint XSS via unescaped user
+ and script fields). (CVE-2026-129292) (Jakub Zelenka)
- . Fixed GHSA-jm4m-qfqx-967m (PHP-FPM epoll use-after-free can lead to local
- privilege escalation). (CVE-2026-129291) (Ian P. Christian, Nora Dossche)
+
+- Fileinfo:
+ . Fixed bug GH-24289 (finfo::file() reports the wrong argument number for
+ an invalid $filename). (Lazizbek Ergashev)
+
+- FTP:
+ . Fix double free in ext/ftp data_accept() on accept failure. (alepacheco)
+
+- GD:
+ . Fixed imagetruecolortopalette() error message. (Marc Bennewitz)
+
+- Hash:
+ . Fix GOST and Snefru digests of 512 MiB or more. (Martin Mirchev)
+
+- Intl:
+ . Fixed IntlDateFormatter parse functions truncating an $offset below
+ INT_MIN. (Marc Bennewitz)
+
+- JSON:
+ . Fixed json_encode() leaving the recursion guard set on objects with hooked
+ properties after running out of memory while escaping a property name.
+ (adapik)
+ . Fixed json_encode() silently narrowing $depth values outside the int range,
+ which wrapped to an unrelated depth. (cuishuang)
+ . Fixed json_encode() continuing to encode after an array or object key
+ failed to encode. (Ilia Alshanetsky)
+
+- LDAP:
+ . Fix crash in ldap_exop_sync() when $response_data is omitted. (lacatoire)
+
+- MBString:
+ . Fixed bug GH-23958 (truncated encoding names resolving to full names). (Kamil Tekiela)
+ . Fixed out-of-bounds read in php_mb_rfc1867_getword() on a multibyte lead
+ byte at the end of a multipart field name. (Jorg Sowa)
+ . Fixed negative mbstring.regex_stack_limit and mbstring.regex_retry_limit
+ on 32bit platforms. (Marc Bennewitz)
+
+- MySQLnd:
+ . Fixed bug GH-24293 (Segfault on connect with an empty password to a
+ MariaDB PAM account). (lazerg)
+ . Fixed bug GH-24609 (OK packets without an info message rejected on x32
+ builds). (lazerg)
+
+- ODBC:
+ . Fixed bug GH-24736 (php_odbc_connstr_is_quoted() treats a value with no
+ closing brace as quoted). (lazerg)
+ . Fixed bug GH-25036 (odbc_prepare() corrupts the heap when the driver
+ cannot describe a parameter). (Ilia Alshanetsky)
+
+- Opcache:
+ . Fixed bug GH-24397 (Assertion failure when dumping JIT IR).
+ (Ilia Alshanetsky)
+ . 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. (Ilia Alshanetsky)
+ . Fixed bug GH-20890 (Segfault in zval_undefined_cv with non-simple property
+ hook with minimal tracing JIT). (ndossche)
+ . 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). (RV7PR)
+ . Fix type inference of ADD_ARRAY_UNPACK with integer keys. (ndossche)
+ . Fix too wide type inference for ASSIGN_DIM_OP. (ndossche)
+ . Fix OSS-Fuzz #568005340 (FETCH_DIM_FUNC_ARG partial conversion). (ndossche)
+ . Fixed bug GH-24218 (Invalid opcode for count() of a literal array when
+ SCCP is disabled). (Lazizbek Ergashev)
+ . Fixed bug GH-24337 (JIT: segfault when decrementing a non-numeric string
+ property). (Lazizbek Ergashev)
+ . Fix SIGFPE on LONG_MIN % -1 with a constant divisor. (waroad)
+ . Fixed bug GH-24388 (Tracing JIT: segfault when a trace runs out of side
+ exits). (Lazizbek Ergashev)
+ . Fixed bug GH-24391 (JIT switch on constant null takes default instead of
+ case 0). (ndossche)
+ . Fixed bug GH-24206 (Tracing JIT loses loop-carried CV when its loop PHI
+ is reloaded from memory). (ndossche)
+ . Fixed bug GH-24386 (JIT: register operand must be loaded before the typed
+ reference check). (ndossche)
+ . Fixed bug GH-24437 (JIT: Fix OP_DATA read from an unwritten slot in
+ zend_jit_assign_dim_op()). (waroad)
+ . Fixed bug GH-24398 (JIT: minimal JIT segfault when a hooked property is
+ passed to a run-time-resolved function). (waroad)
+ . Fixed bug GH-24389 (Tracing JIT: type guard on entry of an inlined call
+ exits with an uninitialized opline). (waroad)
+ . Fixed use-after-free in JIT ASSIGN_DIM_OP when concatenating into an
+ empty array element. (jorgsowa)
+ . Fixed bug GH-24396 (Assertion failure in zend_jit_def_reg() "reg forwarding"
+ with chained Pi nodes). (ndossche)
+ . Fixed JIT treating an array as packed after a string key write turned it
+ into a hash. (jorgsowa)
+ . Fixed bug GH-24436 (Tracing JIT: keep the SEND_VAL type guard after
+ assigning to a reference). (waroad)
+ . Fixed bug GH-17733 (System entropy does not take into account function
+ order, resulting in wrong functions possibly called
+ in different configurations). (ndossche)
+ . Fixed bug GH-24438 (Preserve indirect types in JIT side traces). (aasul)
+ . Fixed bug GH-24577 (CE-cache flag on interned class name visible before
+ map_ptr offset). (prateekbhujel)
+ . Fixed tracing JIT losing register-allocated CVs when an interrupt is
+ handled at the end of a loop trace. (Levi Morrison)
+ . Fixed bug GH-24675 (function with >~1.7 MB of machine code corrupts JIT
+ buffer accounting). (ndossche)
+ . Call orig_post_shutdown_cb(). (ndossche)
+ . Fixed JIT segfault on switch over a string reference holding a
+ non-string value. (jorgsowa)
+ . Fixed AArch64 JIT encoding of invalid logical immediates. (jorgsowa)
+ . Fixed unsound shift_left_overflows range when shift wraps. (mkrishna793)
+ . Fix block pass dropping ZEND_FAST_CALL OP2 definition. (Mrmaxmeier)
+ . Fixed bug GH-23626 (orphaned temporaries cause leaks and assertions).
+ (ndossche, khaledalam)
+ . Fix preloaded functions JIT-compiled on load being overwritten
+ after restart. (Pavel Gushcha)
+ . Fix opcache.interned_strings_buffer being 0 in threads started later (ZTS).
+ (Pavel Gushcha)
+ . Fixed potential infinite recursion/hang (HYBRID/TAILCALL respectively)
+ when zend_interrupt_function resets EG(vm_interrupt). (Levi Morrison)
+ . Fixed preloaded functions not JIT-compiled again after OPcache restart.
+ (Jorg Sowa)
+ . Fixed bug GH-24988 (Incorrect opcode range check causes bugs with exceptions in
+ function JIT). (ndossche, Jorg Sowa)
+ . Fix opcache phar check. (ndossche)
+
+- OpenSSL:
+ . Fixed build and test compatibility with OpenSSL 4.0 and 4.1.
+ (Sam James, Weilin Du, Shivam Mathur)
+ . Fixed bug GH-24784 (openssl_pkcs7_read() and openssl_cms_read() overwrite
+ certificates with CRLs). (Alexander Danilov)
+
+- PDO:
+ . Fixed invalid ATTR_ORACLE_NULLS values being accepted and truncated.
+ (Ilia Alshanetsky)
+ . Fixed a duplicate warning when ATTR_STATEMENT_CLASS is rejected on a
+ persistent connection. (Ilia Alshanetsky)
+
+- PDO_Firebird:
+ . Fixed bug GH-25006 (getColumnMeta() reads out of bounds for an
+ out-of-range column index). (Ilia Alshanetsky)
+
+- PDO_PGSQL:
+ . Fixed a use-after-free when a persistent connection receives a notice
+ after the request that called Pdo\Pgsql::setNoticeCallback() has ended.
+ (Ilia Alshanetsky)
+
+- PDO_SQLite:
+ . Fixed bug GH-24990 (Statement unusable after a failed execute()). (lazerg)
+ . Fixed bug GH-25021 (SQLite createFunction corrupts large integers).
+ (mvorisek)
- Phar:
+ . Fixed bug GH-25093 (Phar::webPhar() redirect reads past the request URI).
+ (lazerg)
+ . Fixed bug GH-25089 (Heap buffer over-read via crafted alias size in
+ zip-based phar). (Lazizbek Ergashev)
+ . Fixed bug GH-8469 (Phar::decompressFiles() and Phar::compressFiles() retain
+ compressed contents after changing compression). (Raphael Paez)
+ . Fixed bug GH-24740 (Oversized tar metadata exhausts the memory limit).
+ (Lazizbek Ergashev)
+ . Fixed bug GH-25090 (UAF in phar rename() of an entry with metadata).
+ (Lazizbek Ergashev)
+ . Fixed bug GH-25091 (UAF in phar rename() when source and destination
+ are equal). (Lazizbek Ergashev)
+ . Fixed bug GH-25092 (Double free in Phar::copy() on link and
+ mounted entries). (Lazizbek Ergashev)
+ . Fixed bug GH-24531 (Crash when modifying a zip-based phar whose file was
+ renamed). (Ilia Alshanetsky)
+ . Fixed GHSA-68fq-fh7h-f8gr (PHAR OpenSSL signature bypass via algorithm
+ downgrade). (CVE-2026-128090) (Alexandre Daubois)
+- Phpdbg:
+ . Fix wrong command names. (ndossche, Weilin Du)
+ . Fixed bug GH-22480 (Use-after-free when re-watching an already-watched
+ variable). (Ilia Alshanetsky)
+ . Fixed over-read when watching a packed array element. (Ilia Alshanetsky)
+ . Fixed double free of watch element chains. (Arnaud)
+
+- Readline:
+ . Fixed a crash in readline_info() when completion_append_character
+ contains a non-ASCII byte. (Weilin Du)
+
+- SAPI:
+ . Fixed infinite loop in sapi_header_op() for headers of 4 GiB or more.
+ (Martin Mirchev)
+
+- SOAP:
+ . Fixed use of uninitialized func in do_request() on OOM bailout.
+ (David Carlier)
++ . Fixed GHSA-q23r-hr55-xmpg (SOAP information disclosure through malformed
++ array dimensions). (CVE-2026-15353) (Alexandre Daubois)
++ . Fixed GHSA-4646-p932-gw34 (SOAP use-after-free when processing DTD entity
++ references). (CVE-2026-129506) (Jakub Zelenka)
+
- Session:
+ . Validate whole session ID instead of stopping at the first NUL byte.
+ (Sjoerd Langkemper)
- . Fixed session data loss in the files save handler when writing the session
- file fails after it was already truncated. (Ilia Alshanetsky)
+ . Fixed GHSA-fm2m-fjf5-v3cp (Partially overwritten session files can lead to
+ remote code execution). (CVE-2026-126714) (Ilija Tovilo)
+ . Fixed GHSA-658j-r8rw-q6mx (Session serializer mismatch can lead to remote
+ code execution). (CVE-2026-115560) (Arnaud Le Blanc)
+ . Fixed GHSA-g3vh-838c-65v7 (Use-after-free after interrupted session
+ shutdown). (CVE-2026-129481) (Arnaud Le Blanc, Jakub Zelenka)
-- SOAP:
- . Fixed GHSA-q23r-hr55-xmpg (SOAP information disclosure through malformed
- array dimensions). (CVE-2026-15353) (Alexandre Daubois)
- . Fixed GHSA-4646-p932-gw34 (SOAP use-after-free when processing DTD entity
- references). (CVE-2026-129506) (Jakub Zelenka)
+- SimpleXML:
+ . Fixed bug GH-24488 (GC double-frees the SimpleXMLElement properties
+ table). (evankford)
+
+- SPL:
+ . Fixed bug GH-24264 (Unwind/GracefulExit discarded in spl_iterators.c).
+ (Lazizbek Ergashev)
+
+- Sockets:
+ . Fixed bug GH-24748 (socket_set_option() crashes with declared object
+ properties). (Lazizbek Ergashev)
- Standard:
+ . Fixed memory leaks in checkdnsrr() and dns_check_record() on Windows.
+ (Ilia Alshanetsky)
+ . Fixed __unserialize() and __wakeup() being called for objects with a missing
+ closing brace. (Ilia Alshanetsky)
+ . Fixed bug GH-24308 (Request shutdown calls closelog() even when syslog
+ was not opened by PHP). (lazerg)
+ . Fixed bug GH-24399 (usleep() and time_nanosleep() ignore queued APCs on
+ Windows). (Nicolas Grekas)
+ . Fixed chown() and lchown() failing to resolve user names in ZTS builds
+ when getpwnam_r() needs a larger buffer. (Ilia Alshanetsky)
+ . Fixed password_get_info() and password_needs_rehash() accepting malformed
+ bcrypt costs. (Ilia Alshanetsky)
+ . Fixed proc_open() null descriptor not being inheritable on Windows.
+ (Jorg Sowa)
+ . Don't share the unserialize() context with enum autoloaders.
+ (Nicolas Grekas)
+ . Fixed bug GH-24373 (serialize() called from a destructor during var_hash
+ destruction reuses the outer var_hash). (David Carlier)
+ . Fixed bug GH-24552 (Case-insensitive substr_compare(), ksort() and
+ krsort() are still locale-dependent). (Lazizbek Ergashev, Jon Surrell)
+ . Fixed bug GH-24605 (var_export() crashes on deeply nested arrays and
+ objects). (Labish Bardiya)
+ . Fix use-after-free in Randomizer::shuffleArray() when the engine throws.
+ (Marti2203)
+ . Fixed GHSA-f6gg-rchx-xw8j (Mixed-case HTTPS and FTPS URLs can expose data
+ in plaintext). (CVE-2026-128064) (Jakub Zelenka)
+ . Fixed GHSA-mmf9-xm3v-hg2x (Denial of service through folded HTTP response
+ headers). (CVE-2026-127960) (Jakub Zelenka)
+- Streams:
+ . Fixed bug GH-24508 (HTTP wrapper leaks the dechunk filter when header
+ parsing fails after Transfer-Encoding). (bercedev)
+ . Fixed bug GH-24509 (HTTP wrapper leaks Location buffer on empty
+ Location header). (bercedev)
+ . Fix out-of-bounds reads parsing ftp:// wrapper server replies.
+ (Alejandro Pacheco)
+
+- Tidy:
+ . Fixed tidy_repair_string(), tidy_repair_file(), tidy::repairString() and
+ tidy::repairFile() rejecting null for $encoding. (lacatoire)
+
+- Windows:
+ . Fixed sapi_windows_cp_set() and sapi_windows_cp_conv() accepting a negative
+ codepage on 32bit platforms. (Marc Bennewitz)
+ . Fixed bug GH-25009 (GetConsoleTitleW() buffer size passed in bytes).
+ (Lazizbek Ergashev)
+
+- Zip:
+ . Reject broken libzip versions 1.3.1, 1.7.0 and 1.12.0 during Windows
+ configuration. (Weilin Du)
+ . Excluded libzip 1.12.0 due to a regression preventing additions and
+ replacements in torrentzip archives. (Weilin Du)
+ . Fixed use-after-free when re-entering ZipArchive during destruction or
+ a close warning, and rejected opening streams while closing. (jvoisin)
+ . Fixed a use-after-free when a ZipArchive method that modifies the archive
+ is called from a progress or cancel callback during close().
+ (Ilia Alshanetsky)
+
+- Zlib:
+ . Fixed use-after-free when an error handler removes a failing zlib.inflate
+ filter (GH-24176). (Edmond)
+ . Fixed bug GH-24533 (zlib.lib could not be found because zlib 1.3.2
+ CMake build does not emit it). (Lazizbek Ergashev)
-21 Oct 2026, PHP 8.3.36
+22 Oct 2026, PHP 8.4.27
- Core:
. Fixed GHSA-w8hw-w9fx-j79w, GHSA-6wmf-4rv5-p3rp (Avoid state corruption via
diff --cc ext/session/session.c
index fc4f201a63d,ac429988347..ba59607dbc1
--- a/ext/session/session.c
+++ b/ext/session/session.c
@@@ -829,44 -817,6 +847,46 @@@ static PHP_INI_MH(OnUpdateSidBits) /* {
}
/* }}} */
+static PHP_INI_MH(OnUpdateSessionGcProbability) /* {{{ */
+{
++ SESSION_CHECK_UPLOAD_PROGRESS_STATE;
+ SESSION_CHECK_ACTIVE_STATE;
+ SESSION_CHECK_OUTPUT_STATE;
+
+ zend_long tmp = zend_ini_parse_quantity_warn(new_value, entry->name);
+
+ if (tmp < 0) {
+ php_error_docref("session.gc_probability", E_WARNING, "session.gc_probability must be greater than or equal to 0");
+ return FAILURE;
+ }
+
+ zend_long *p = (zend_long *) ZEND_INI_GET_ADDR();
+ *p = tmp;
+
+ return SUCCESS;
+}
+/* }}} */
+
+static PHP_INI_MH(OnUpdateSessionDivisor) /* {{{ */
+{
++ SESSION_CHECK_UPLOAD_PROGRESS_STATE;
+ SESSION_CHECK_ACTIVE_STATE;
+ SESSION_CHECK_OUTPUT_STATE;
+
+ zend_long tmp = zend_ini_parse_quantity_warn(new_value, entry->name);
+
+ if (tmp <= 0) {
+ php_error_docref("session.gc_divisor", E_WARNING, "session.gc_divisor must be greater than 0");
+ return FAILURE;
+ }
+
+ zend_long *p = (zend_long *) ZEND_INI_GET_ADDR();
+ *p = tmp;
+
+ return SUCCESS;
+}
+/* }}} */
+
static PHP_INI_MH(OnUpdateRfc1867Freq) /* {{{ */
{
int tmp = ZEND_ATOL(ZSTR_VAL(new_value));
@@@ -886,40 -836,6 +906,43 @@@
return SUCCESS;
} /* }}} */
+static PHP_INI_MH(OnUpdateUseOnlyCookies)
+{
++ SESSION_CHECK_UPLOAD_PROGRESS_STATE;
+ SESSION_CHECK_ACTIVE_STATE;
+ SESSION_CHECK_OUTPUT_STATE;
+ bool *p = (bool *) ZEND_INI_GET_ADDR();
+ *p = zend_ini_parse_bool(new_value);
+ if (!*p) {
+ php_error_docref("session.configuration", E_DEPRECATED, "Disabling session.use_only_cookies INI setting is deprecated");
+ }
+ return SUCCESS;
+}
+
+static PHP_INI_MH(OnUpdateUseTransSid)
+{
++ SESSION_CHECK_UPLOAD_PROGRESS_STATE;
+ SESSION_CHECK_ACTIVE_STATE;
+ SESSION_CHECK_OUTPUT_STATE;
+ bool *p = (bool *) ZEND_INI_GET_ADDR();
+ *p = zend_ini_parse_bool(new_value);
+ if (*p) {
+ php_error_docref("session.configuration", E_DEPRECATED, "Enabling session.use_trans_sid INI setting is deprecated");
+ }
+ return SUCCESS;
+}
+
+static PHP_INI_MH(OnUpdateRefererCheck)
+{
++ SESSION_CHECK_UPLOAD_PROGRESS_STATE;
+ SESSION_CHECK_ACTIVE_STATE;
+ SESSION_CHECK_OUTPUT_STATE;
+ if (ZSTR_LEN(new_value) != 0) {
+ php_error_docref("session.configuration", E_DEPRECATED, "Usage of session.referer_check INI setting is deprecated");
+ }
+ return OnUpdateString(entry, new_value, mh_arg1, mh_arg2, mh_arg3, stage);
+}
+
/* {{{ PHP_INI */
PHP_INI_BEGIN()
STD_PHP_INI_ENTRY("session.save_path", "", PHP_INI_ALL, OnUpdateSaveDir, save_path, php_ps_globals, ps_globals)
diff --cc ext/session/tests/session_ini_set_upload_progress_enabled.phpt
index 00000000000,15429299a67..92c35f9a3c5
mode 000000,100644..100644
--- a/ext/session/tests/session_ini_set_upload_progress_enabled.phpt
+++ b/ext/session/tests/session_ini_set_upload_progress_enabled.phpt
@@@ -1,0 -1,127 +1,128 @@@
+ --TEST--
+ ini_set() for session.* is not allowed when session.upload_progress.enabled is On
+ --EXTENSIONS--
+ session
+ --SKIPIF--
+ <?php include('skipif.inc'); ?>
+ --INI--
++error_reporting=E_ALL & ~E_DEPRECATED
+ session.upload_progress.enabled=1
+ session.save_path=
+ session.name=NOTPHPSESSID
+ session.save_handler=files
+ session.serialize_handler=php_serialize
+ session.cookie_lifetime=42
+ session.gc_probability=2
+ session.cookie_path=/startup
+ session.cookie_secure=1
+ session.sid_length=40
+ session.sid_bits_per_character=5
+ --FILE--
+ <?php
+ /* The INI section above is applied at the startup stage, so these values must
+ * have been applied even though session.upload_progress.enabled is On. */
+ echo "*** Settings applied at startup ***\n";
+ foreach ([
+ "session.name",
+ "session.serialize_handler",
+ "session.cookie_lifetime",
+ "session.gc_probability",
+ "session.cookie_path",
+ "session.cookie_secure",
+ "session.sid_length",
+ "session.sid_bits_per_character",
+ ] as $name) {
+ printf("%s=%s\n", $name, var_export(ini_get($name), true));
+ }
+
+ echo "\n*** ini_set() is rejected at runtime ***\n";
+
+ function try_ini_set($name, $value) {
+ try {
+ var_dump(ini_set($name, $value));
+ } catch (\Throwable $e) {
+ echo $e::class, ": ", $e->getMessage(), "\n";
+ }
+ }
+
+ /* One entry per ini modify handler guarded by the check. */
+ try_ini_set("session.save_path", "/tmp");
+ try_ini_set("session.name", "PHPSESSID");
+ try_ini_set("session.save_handler", "user");
+ try_ini_set("session.serialize_handler", "php");
+ try_ini_set("session.cookie_lifetime", "1");
+ try_ini_set("session.gc_probability", "1");
+ try_ini_set("session.cookie_path", "/runtime");
+ try_ini_set("session.cookie_secure", "0");
+ try_ini_set("session.sid_length", "32");
+ try_ini_set("session.sid_bits_per_character", "4");
+
+ echo "\n*** ini_restore() is rejected at runtime ***\n";
+ try {
+ var_dump(ini_restore("session.name"));
+ } catch (\Throwable $e) {
+ echo $e::class, ": ", $e->getMessage(), "\n";
+ }
+ var_dump(ini_get("session.name"));
+
+ echo "\n*** Values are unchanged ***\n";
+ foreach ([
+ "session.name",
+ "session.serialize_handler",
+ "session.cookie_lifetime",
+ "session.gc_probability",
+ "session.cookie_path",
+ "session.cookie_secure",
+ "session.sid_length",
+ "session.sid_bits_per_character",
+ ] as $name) {
+ printf("%s=%s\n", $name, var_export(ini_get($name), true));
+ }
+
+ echo "\n*** Non-session ini settings are unaffected ***\n";
+ var_dump(ini_set("precision", "10"));
+ var_dump(ini_get("precision"));
+
+ echo "Done\n";
+ ?>
+ --EXPECT--
+ *** Settings applied at startup ***
+ session.name='NOTPHPSESSID'
+ session.serialize_handler='php_serialize'
+ session.cookie_lifetime='42'
+ session.gc_probability='2'
+ session.cookie_path='/startup'
+ session.cookie_secure='1'
+ session.sid_length='40'
+ session.sid_bits_per_character='5'
+
+ *** ini_set() is rejected at runtime ***
+ Error: Session ini settings cannot be changed at runtime when session.upload_progress.enabled is On
+ Error: Session ini settings cannot be changed at runtime when session.upload_progress.enabled is On
+ Error: Session ini settings cannot be changed at runtime when session.upload_progress.enabled is On
+ Error: Session ini settings cannot be changed at runtime when session.upload_progress.enabled is On
+ Error: Session ini settings cannot be changed at runtime when session.upload_progress.enabled is On
+ Error: Session ini settings cannot be changed at runtime when session.upload_progress.enabled is On
+ Error: Session ini settings cannot be changed at runtime when session.upload_progress.enabled is On
+ Error: Session ini settings cannot be changed at runtime when session.upload_progress.enabled is On
+ Error: Session ini settings cannot be changed at runtime when session.upload_progress.enabled is On
+ Error: Session ini settings cannot be changed at runtime when session.upload_progress.enabled is On
+
+ *** ini_restore() is rejected at runtime ***
+ Error: Session ini settings cannot be changed at runtime when session.upload_progress.enabled is On
+ string(12) "NOTPHPSESSID"
+
+ *** Values are unchanged ***
+ session.name='NOTPHPSESSID'
+ session.serialize_handler='php_serialize'
+ session.cookie_lifetime='42'
+ session.gc_probability='2'
+ session.cookie_path='/startup'
+ session.cookie_secure='1'
+ session.sid_length='40'
+ session.sid_bits_per_character='5'
+
+ *** Non-session ini settings are unaffected ***
+ string(2) "14"
+ string(2) "10"
+ Done
diff --cc ext/soap/php_encoding.c
index 56317abf4ab,71eb8f397f5..2d5c15d22a1
--- a/ext/soap/php_encoding.c
+++ b/ext/soap/php_encoding.c
@@@ -2078,18 -2064,9 +2078,18 @@@ static int calc_dimension_12(const char
}
str++;
}
- return i;
+ return i != 0 ? i : 1;
}
+static void soap_array_position_add_digit(int *position, int digit)
+{
+ if (*position > (INT_MAX - digit) / 10) {
+ soap_error0(E_ERROR, "Encoding: array index out of range");
+ }
+
+ *position = (*position * 10) + digit;
+}
+
static int* get_position_12(int dimension, const char* str)
{
int *pos;
diff --cc ext/standard/http_fopen_wrapper.c
index 1d6c551bc8c,91242c806f0..8a44ded7fd7
--- a/ext/standard/http_fopen_wrapper.c
+++ b/ext/standard/http_fopen_wrapper.c
@@@ -333,9 -301,9 +329,9 @@@ static bool php_stream_http_response_he
"HTTP Location header size is over the limit of %d bytes",
HTTP_HEADER_MAX_LOCATION_SIZE);
zend_string_efree(last_header_line_str);
- return NULL;
+ return false;
}
- if (header_info->location_len == 0) {
+ if (header_info->location == NULL) {
header_info->location = emalloc(last_header_value_len + 1);
} else if (header_info->location_len <= last_header_value_len) {
header_info->location = erealloc(header_info->location, last_header_value_len + 1);
diff --cc ext/zend_test/php_test.h
index ea567169d25,f8f7c4d5b92..9f06d960c4f
--- a/ext/zend_test/php_test.h
+++ b/ext/zend_test/php_test.h
@@@ -58,8 -53,8 +58,9 @@@ ZEND_BEGIN_MODULE_GLOBALS(zend_test
HashTable *global_weakmap;
int replace_zend_execute_ex;
int register_passes;
+ bool rearm_vm_interrupt;
bool print_stderr_mshutdown;
+ bool warn_on_startup;
zend_long limit_copy_file_range;
int observe_opline_in_zendmm;
zend_mm_heap* zend_orig_heap;