Release Information
- Release Type
- Security Update
- Release Status
- Latest Release in 8.5
- Branch Status
- Supported
Latest release for PHP 8.5. This release contains security fixes, and it is recommended to update as soon as possible.
PHP 8.5 continues to receive bug fixes and security fixes until 2027-12-31.
Downloads
Source Code
Git Clone
Use Git to clone the 8.5.13 tag from the PHP Git repository.
git clone https://github.com/php/php-src.git --depth 1 --branch php-8.5.13How to compile PHP
PHP can be compiled by setting up the dependencies, building the configure script (
Detailed articles on how to compile PHP are available for Ubuntu/Debian based systems and Fedora/RHEL based systems.
./buildconf), configuring the build ./configure, and running make.Detailed articles on how to compile PHP are available for Ubuntu/Debian based systems and Fedora/RHEL based systems.
Windows binaries
Non-Thread Safe Builds
Non-Thread Safe (NTS) builds are single-threaded PHP builds. They can be used on web servers that integrate PHP over FastCGI protocol, such as Nginx, Caddy, and IIS.
php-8.5.13-x64NTS.zip
Size: 34.71 MiB SHA256:
4ae6c72bc0ca4f6b8f3e9b107874bae0135699f3aabe6c26a1f6103d040eea97 php-8.5.13-x86NTS.zip
Size: 31.21 MiB SHA256:
3db0d8ec1618b06b20470c438e009836614cb35533d92b6cec048fcdaddc7a0a Thread-Safe Builds
Thread-Safe (TS) builds are multi-thread PHP builds, often used to integrate PHP as a Server API for multithreaded servers. The most common use case is using PHP as an Apache module.
php-8.5.13-x64TS.zip
Size: 34.85 MiB SHA256:
792fe1553895ee98f9bc3c9d50c539910f7d0066676a6523207ca91429d4d475 php-8.5.13-x86TS.zip
Size: 31.26 MiB SHA256:
8d3adfc7411c7b1b8a6d283e0f456e01a70151665ee81c03178c1285efce62c2 Docker/Podman Containers
PHP CLI
PHP CLI Containers images only include the PHP CLI, and no FPM or Apache modules. The Alpine builds are lightweight, but may introduce incompatibilities due to their musl builds. Albeit their larger size, the Debian-based (without the "-alpine" suffix) images are more complete, and widely used.
Alpine-based: Lightweight, but may introduce incompatibilities due to their musl builds.
docker pull php:8.5.13-cli-alpineDebian-based: More compatible with other components, complete, and are widely used.
docker pull php:8.5.13-cliPHP CLI + Web Server Integration
These container images include PHP CLI, and a web server integration. FPM container images can be integrated with web servers such as Nginx, Caddy, and Apache with Event MPM. The Apache container images include Apache web server, integrating PHP as an Apache module.
Alpine-based: Lightweight, but may introduce incompatibilities due to their musl builds.
docker pull php:8.5.13-fpm-alpineDebian-based ZTS Apache: Includes Apache web server integrating PHP as an Apache module.
docker pull php:8.5.13-apacheDebian-based NTS FPM: PHP-FPM, can be integrated with Nginx, Caddy, and other web servers over Fast CGI.
docker pull php:8.5.13-fpmChangeLog
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
- 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
- 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)
CLI
- Fixed bug GH-24697 (
PHP_HTTP_PARSER_STRICTbuild option doesn't work). - Fixed bug GH-9670 (List -C and -q in the CLI help).
COM
- Fixed bug GH-25008 (
com_event_sink()andcom_print_typeinfo()crash resolving an event source with no loaded typelib).
Curl
- Fix use-after-free of
CURLOPT_STDERRstream on cloned curl handle. - Fix UAF on clone due to callback data pointer mismatch.
Date
- Fixed bug GH-20503 (Assertion failure with
ext/dateDateInterval 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).
DOM
- Fixed a use-after-free when reflected attribute setters replace an attribute whose child still has a live wrapper.
- Fix error paths in
dom_xml_serializing_a_document_node(). - Fixed bug GH-25118 (
Dom\HTMLDocument::createFromString()crash on OOM). - Fixed GHSA-x8r7-mg3g-74hg (Double free during DOM XML serialization). (CVE-2026-129501)
FFI
- Fixed bug GH-24582 (Memory leaks in
ext/ffiparser whenfinalize_type()bails out).
Fileinfo
- Fixed bug GH-24289 (
finfo::file()reports the wrong argument number for an invalid $filename).
FPM
- Fixed bug GH-24229 (
fcgi_close()passesshutdown()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/ftpdata_accept()on accept failure.
GD
- Fixed
imagetruecolortopalette()error message.
Hash
- Fix GOST and Snefru digests of 512 MiB or more.
Intl
- Fixed IntlDateFormatter parse functions truncating an
$offsetbelow 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$depthvalues 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_datais omitted.
MBString
- Fixed bug GH-23958 (truncated encoding names resolving to full names).
- Fixed out-of-bounds read in
php_mb_rfc1867_getword()on a multibyte lead byte at the end of a multipart field name. - Fixed negative mbstring.regex_stack_limit and mbstring.regex_retry_limit on 32bit platforms.
MySQLnd
- Fixed bug GH-24293 (Segfault on connect with an empty password to a MariaDB PAM account).
- Fixed bug GH-24609 (OK packets without an info message rejected on x32 builds).
ODBC
- Fixed bug GH-25036 (
odbc_prepare()corrupts the heap when the driver cannot describe a parameter).
Opcache
- Fixed bug GH-24397 (Assertion failure when dumping JIT IR).
- Fixed tracing JIT returning a wrapped integer instead of a float on integer overflow after an integer was compared with a float or numeric-string literal.
- Fixed bug GH-17626 (JIT corrupts an opline handler when blacklisting a root trace at the opcache.jit_max_root_traces limit, causing spurious "Too few arguments" errors and crashes).
- Fix type inference of ADD_ARRAY_UNPACK with integer keys.
- Fix 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_CALLOP2 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_functionresets 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()andopenssl_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).
PDO_Firebird
- 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.
PDO_SQLite
- 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()andPhar::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.
POSIX
- Fixed
posix_setrlimit()rejecting POSIX_RLIMIT_INFINITY on Solaris.
Readline
- Fixed a crash in
readline_info()when completion_append_character contains a non-ASCII byte.
SAPI
- 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)
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)
SPL
- Fixed bug GH-24264 (Unwind/GracefulExit discarded in
spl_iterators.c).
Sockets
- Fixed bug GH-24748 (
socket_set_option()crashes with declared object properties).
Standard
- Fixed memory leaks in
checkdnsrr()anddns_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()andpassword_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()andtime_nanosleep()ignore queued APCs on Windows). - Fixed
glob()not negating bracket expressions that start with "^". - Fixed bug GH-24552 (Case-insensitive
substr_compare(),ksort()andkrsort()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.
Tidy
- Fixed
tidy_repair_string(),tidy_repair_file(),tidy::repairString()andtidy::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)
Windows
- Fixed bug GH-25009 (GetConsoleTitleW() buffer size passed in bytes).
- Fixed
sapi_windows_cp_set()andsapi_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().
Zlib
Commit List
aasim
- Fix GH-24438: Preserve indirect types in JIT side traces in 061f0ce293
aasul
- Add FPM test for INI diagnostics after fatal error with backtrace in GH-24638
Alejandro Pacheco
- Fix double free in
ext/ftpdata_accept()on accept failure in 0d780377e5 - Fix out-of-bounds reads parsing ftp:// wrapper server replies in 7774891f16
Alessio Attilio
ext/intl: Adapt timezone test expectations for ICU 79.1 in 47d959923c- Backport: Adapt intl timezone test expectations for ICU 79.1 in GH-24684
Alexander Danilov
- Fix GH-24784: Preserve certificates when reading PKCS7/CMS CRLs in GH-24785
- Fix
json_encode()reporting false "Recursion detected" after OOM for hooked-property objects in GH-24992
Alexandre Daubois
- Backport PCRE2 security fixes to bundled 10.40 in 1e8a51d545
- Fix GHSA-q23r-hr55-xmpg: out-of-bounds read on empty SOAP-ENC:arraySize in 5d2c00f38d
- Fix GHSA-68fq-fh7h-f8gr: refuse keyless phar signature when .pubkey exists in 093a4bfd4f
Arnaud Le Blanc
- JIT: Fix TLS access with SHM reattachment in GH-24355
- Avoid state corruption via bailout in 3584a98bda
- Fix merge in a4b0658540
- Fix GHSA-658j-r8rw-q6mx: session.upload_progress.enabled is off by default in 522afb690f
- Fix GHSA-g3vh-838c-65v7: Zero PS(session_started_filename) early in c33785f490
- Fix GHSA-8mjj-2r7p-4hg2: UAF in
debug_backtrace_get_args()on trampoline calls in 03c403286d - Fix GHSA-2fjv-p558-g82m: do not set last_fatal_error_backtrace during shutdown in ed18995b71
berce
- Fix GH-24508: HTTP wrapper leaks dechunk filter when header parsing fails in 4fd56dc469
- Fix GH-24509: HTTP wrapper leaks Location buffer on empty Location header in ad7ad7c425
C. Scott Ananian
- Fix GH-24480: finally block running twice when a VM interrupt throws in FAST_RET in 07fc1f9d2f
cuishuang
- Fix
json_encode()depth range check before narrowing in 1ef1dd53bb
Daisuke Komazaki
- Fixed GH-22216: don't warn in OnUpdateMemoryConsumption on ZTS thread init in 4eac7a399a
Daniel Scherzer
- Persist the
pear/install-pear-nozlib.pharfile in a082f1211a
David Carlier
- Fix GH-24081: User opcode DISPATCH runs on a stale frame in the TAILCALL VM in 2cf7ad09bd
- ext/
zend_test: fixgh24081.phpton arm CI in d9fb6eb570 - Zend:
zend_call_stack_get_netbsd_pthread()pthread attribute leak in 81fd6105bc - Fix GH-24321: reset global_map_ptr_last on shutdown in 171f81f4a4
- Fix GH-23334:
ext/dom:php_dom_free_templated_content()use-after-free in 5587c3265c - Fix GH-24373:
serialize()context reused by destructors during teardown in 08f4b64e0a - Fix GH-22554:
ext/dom: UAF with XPath callback returning foreign-doc node in a44a529d26 - Fix GH-24265:
zend_fiber_execute()discardsexit()in a destroyed fiber in afd156921e ext/dom: fix UAF on namespace axis results with foreign-doc XPath callback nodes in 98b580b0d2- Fix GH-24989: Use-after-free in GC when an exception is thrown in 7abaad3e21
- Fix GH-24534: inheritance cache records unlinked child dependencies in 614f935fe0
- Fix GH-25118:
Dom\HTMLDocument::createFromString()crash on OOM in 0614b703d8 - sapi/cli:
php_cli_server_client_save_header()crash on repeated headers in 53681619e9
Derick Rethans
- Updated to version 2026.6 (2026f) in aec4f50908
Edmond
- Fix leak when the added previous exception is already in the chain in GH-24177
- Fix use-after-free when removing a failing zlib.inflate filter in GH-24176
- Fiber: hold the object a callable resolved to in the creating frame in GH-24134
- std: Fix memory leak of the last response headers after a nested HTTP request in GH-24201
evanford
- Fix GH-24488: GC double-frees the SimpleXMLElement properties table in f963484725
George Wang
- Update LiteSpeed API to v8.4 in 084e7a07b7
Gina Peter Banyard
- Update NEWS in 9c160f2013
- Revert "ext/standard/tests: work around Windows quoting with tempfiles." in 2ef5270053
- ci: fix
system_id_reinitialization.phpttest on opcache variation CI in 2998188948 - dba: fix GH-24641 (NULL dereferencement with ndbm backend) in b309533729
hakre
- Fix
bug66338.phptmangling path containing '.php' sequences in fd3a97d1c8
Heath Dutton🕴️
Ian P. Christian
- Fix GH-24046: FPM worker stdio pipe fd closed twice in cd161267c0
Ilia Alshanetsky
ext/zip: Reject ZipArchive mutators duringclose()in GH-24025ext/standard: Validate the bcrypt cost before reading it in 2f7951d649ext/pdo: Avoid a duplicate warning for a rejected statement class in 26e5bc454cext/session: do not reuse session state a save handler tore down in 751190d8e0ext/pdo: Report$optionsas the argument for constructor option errors in d8d55b75c5ext/session: Truncate session file after successful write in c2b02f24df- Fix GH-24372: Keep stmt->executed set across
PDOStatement::execute()in d5696b8cd1 ext/opcache: Mark dl()-created persistent strings as thread-local in 77dbc2ca54ext/pdo: Validate Oracle null handling modes in bba94675f5ext/opcache: Fix tracing JIT range narrowing against a non-integer operand in 07fc708950- phpdbg: Backport watchpoint fixes to PHP-8.4 in 055e11e0c7
ext/standard: Free Windows DNS query results in b175769022ext/pdo_firebird: Fix getColumnMeta() bounds check in 5577b0b540ext/odbc: Fix double free on parameter description failure in 083e1a6d79ext/standard: Validate objects before queuing unserialize callbacks in 2b99297b76ext/opcache: Clear vacated MERGE inputs before conversion to BEGIN in 84da3f525aext/json: Stop encoding after a key fails to encode in de6ffebd1a- Fix GH-24531: Crash when flushing a renamed zip-based phar in 985b66bb67
ext/com_dotnet: Fix GH-25008 event source typelib crash in 2c4fdd71b3ext/pdo_pgsql: Clear the notice callback when a persistent handle is released in 6e6ec4b267
Ilija Tovilo
- Add NEWS entry in a34a205c29
- Fix GHSA-gr4f-wgx5-jpfv: DATEG(tzcache) use-after-free in c11ede2ddb
- Fix GHSA-fm2m-fjf5-v3cp: RCE via corrupted session file in 2139e7e6ce
Jakub Zelenka
- Fix flaky FPM log-bwd-multiple-msgs-stdout-stderr test and remove
XFAILin GH-24998 - Fix flaky FPM test for bug #77023 (#24999) in 084271b8fd
- Revert "Update LiteSpeed API to v8.4" in ce76acbdbd
- Fix UAF in reflected attribute write paths in GH-25120
- Skip
header_over_4gib.phptwhen available memory is insufficient in 22786fa704 - Fix GHSA-5j3f-64r7-f564: PATH_INFO underflow in CGI
init_request_info()in 25567b58e2 - Fix GHSA-3mg3-cr28-46gc: FPM XSS within status endpoint via user and script in 8d6c4a9548
- Fix GHSA-qc49-hpvq-g2w6: Drain unread request bodies in e0b8eb8ace
- Fix GHSA-4646-p932-gw34: keep SOAP DTD alive during cleanup in 8e59740e82
- Revert "
ext/session: Truncate session file after successful write" in 3298e10ac6 - Fix GHSA-f6gg-rchx-xw8j: mixed case HTTPS and FTPS in c225e9502e
- Fix GHSA-mmf9-xm3v-hg2x: quadratic folded header concatenation in 32a682e7a7
- Add NEWS entries in 87bc4f73d3
Jorg Sowa
- Fix
proc_open()null descriptor not inheritable on Windows in 6ec698758e ext/opcache: movebug66338.phptcleanup to--CLEAN--in 14f0d871e5- Fix
posix_setrlimit()rejecting POSIX_RLIMIT_INFINITY on Solaris in 602ba3ac97 - Fix xxh64 seed deprecation emitted when no seed is given in 17f94f0a4c
- JIT: Fix use-after-free in ASSIGN_DIM_OP with CONCAT in fe8ce13ef7
ext/mbstring: fix over-read inphp_mb_rfc1867_getword()in f6852befa3ext/standard: Skipproc_opendescriptor 0 tests without /proc/self/fd symlinks in 0ddabc30e8- Fix JIT reading packed-turned-hash array as packed after string key write in 51808ac547
- Fix JIT SWITCH_STRING type checks on referenced operand in ef873f64f3
- Fix AArch64 JIT encoding of invalid logical immediates in aa6e3a84e8
- Fix GH-23572: JIT calls wrong static method from trait clones in 62a2b3d8c9
- Fix AST printing of final and abstract on class constants and properties in ce899c8c68
- Fix preloaded functions not JIT-compiled again after OPcache restart in 896f76d2c7
- Fix AST export of readonly anonymous classes in 5300734e3f
- Fix leak of duplicate named argument in new in initializer in dfcc0433fc
- Fix FCC in trait const expressions resolving to the first using class in 44a2a2c3db
Juan Versolato Lopes
- Fix GH-23875: Skip
gh7980.phptwithout windows-1258 in GH-24789 - Fix GH-9670: List -C and -q in the CLI help in b4539c0e1b
jvoisin
ext/zip: Fix use-after-free in the archive destructor path in GH-23779
Kamil Tekiela
ext/mbstring: Fix truncated encoding names resolving to full names in GH-23974- Update NEWS in b4e7f8ac0f
Keyvan Minoukadeh
- Fix GH-24260: querySelectorAll() returns duplicate elements for selector lists in d1fdbbacfb
Kévin Dunglas
- Fix free of uninitialized date last_errors after a failed request startup in GH-25127
Labish Bardiya
lacatoire
ext/tidy: Accept null for the$encodingof the repair functions in 48994f596f- Fix use-after-free of
CURLOPT_STDERRstream on cloned curl handle in 59f8e1d265 ext/ldap: fix crash inldap_exop_sync()when$response_datais omitted in 56bd75634f
lazerg
- Fix GH-24139: NULL dereference in
php_ini.cwhenexpand_filepath()fails in c88c89e351 - Fix GH-24218: Invalid opcode for
count()of a literal array without SCCP in 06be15d22e - Fix GH-24289:
finfo::file()reports the wrong argument number in 19a50604f9 - Fix GH-24293: Segfault with an empty password in MariaDB PAM in GH-24294
- Fix GH-24337: JIT segfault when decrementing a non-numeric string property in 25348e809d
- Fix GH-24350: Stale external tz database read after module restart in GH-24354
- Fix GH-24388: Tracing JIT segfault when a trace runs out of side exits in 6db2baf86f
- Fix GH-24308: Preserve syslog handles not opened by PHP in GH-24310
- Fix GH-24264: Unwind/GracefulExit discarded in
spl_iterators.cin 861d2b6c4e - Fix GH-24745: File cache loses attributes on constants on 32-bit builds in a2052f318a
- Fix GH-24552: Use ASCII case folding in string comparisons in GH-24558
ext/sockets: Handle declared object properties insocket_set_option()in 7adcf5a580ext/phar: Bound tar metadata size before allocation in f9129bd1a1- Fix GH-24668:
zend_set_local_var()leaks the previous CV value in GH-24670 - Fix GH-25029: Align the fileinfo built-in magic database in GH-25030
- Fix GH-25019: Uri\Rfc3986\Uri rejects a port with leading zeros as out of range in c95e572696
- Fix GH-25061:
$x=$x- 1 on null is optimized to PRE_DEC in 0c406ea172 - Fix GH-25089: Heap buffer over-read via crafted alias size in zip-based phar in GH-25099
- Fix GH-25090: UAF in phar
rename()of an entry with metadata in d0828881d5 - Fix GH-25091: UAF in phar
rename()when source and destination are equal in 24377a0adc - Fix GH-25092: Double free in
Phar::copy()on link and mounted entries in 99ec10237a - Fix GH-25009: GetConsoleTitleW() buffer size passed in bytes in 113bc87d5a
- Fix GH-25093:
Phar::webPhar()redirect reads past the request URI in GH-25102 - Fix GH-24990: pdo_sqlite statement unusable after failed
execute()in GH-24991
Lazizbek Ergashev
- Fix GH-24523: UAF in
zend_test_compile_to_ast()on parse error in GH-24524 - Fix GH-24533: Accept z.lib from zlib 1.3.2 CMake builds on Windows in GH-24539
- Fix GH-24695: FPM tester sends signal to process group when PID is missing in GH-24698
- Fix GH-24736:
php_odbc_connstr_is_quoted()accepts missing closing brace in GH-24737 - Fix GH-24609: mysqlnd OK packets without info rejected on x32 builds in GH-24614
Levi Morrison
- fix: system ID for Apache graceful restart in GH-24184
- JIT: fix lost register-allocated CVs on interrupt at the end of a loop trace in GH-24610
- JIT: fix vm_interrupt resumption in TAILCALL/CALL VMs in GH-24793
- Fix potential infinite recursion in HYBRID/TAILCALL VMs in GH-25039
mainframe98
zend_test: Fix function and constant imports in compile_to_ast and add support for grouping in f6c9428b97
Marc Bennewitz
zend_alloc: move a small block shrunk to the size of the bin below in 630406c895- Fix -Wint-to-pointer-cast warnings in the CALL VM on 32-bit in GH-24360
- Fix IntlDateFormatter parse functions truncating an
$offsetbelow INT_MIN in GH-24781 - Fix
ZEND_LONG_UINT_OVFL()accepting negative values on 32-bit platforms in GH-24778 - Fix
imagetruecolortopalette()error message for$num_colorsin GH-24780
Marcel Hernandez
- fpm: fix potential null dereference in
fpm_status_export_to_zval()in ce3e1bac17 - fpm: fix a use-after-free of scoreboard_p in 3aa4da4a20
- fpm: fix _GET_str memory leaks and test headers_only status path in 0e7e36c896
Martin Mirchev
- Fix infinite loop in
sapi_header_op()for headers of 4 GiB or more in GH-24540 - Fix GOST and Snefru digests of 512 MiB or more in 89f4d82157
- Fix unmapping of an unrelated range when the aligned chunk mmap fails in GH-24542
- Fix GH-24616: Socket transports accept ports above 65535 in bad5aaca7a
- Fix FPM worker output prefix longer than its buffer or log_limit in 974de49381
- Fix use-after-free in
Randomizer::shuffleArray()when the engine throws in 3a8bcb6d18
Matyapiro31
- Fix GH-24582: Memory leaks in
ext/ffiparser whenfinalize_type()bails out in b97f7881de
Michael Orlitzky
sapi/cli/tests/023.phpt: supportTEST_PHP_EXTRA_ARGSin c522554a02- ext/standard/tests: pass
TEST_PHP_EXTRA_ARGSto someproc_open()tests in f93f92db37 - {
ext/standard,sapi/cli}/tests: passTEST_PHP_EXTRA_ARGSto php in b9f41139cf - github/scripts/windows: pass an extension_dir to the test runner in e56aedb3f7
- ext/standard/tests: work around Windows quoting with tempfiles in 077d7d6024
Michael Voříšek
- Fix GH-25021: SQLite createFunction corrupts large integers in 9c69d7c6a7
mkrishna793
- Fix
zend_inference: fix unsound shift_left_overflows range when shift wraps in 8df212a4b6
Mrmaxmeier
- Fix block pass dropping
ZEND_FAST_CALLOP2 definition in 139c84bc2d
ndossche
- Fix type inference of ADD_ARRAY_UNPACK with integer keys in c8e5c27b3d
- Fix too wide type inference for ASSIGN_DIM_OP in fb1bdd6ff6
- Fix OSS-Fuzz #568005340: FETCH_DIM_FUNC_ARG partial conversion in ddbb581f1b
- Fix GH-23979: Nullsafe operator must not flush delayed oplines of an enclosing function in 3986719628
- Fix throwing behaviour with recursive arrays in VM in d5a94412e3
- Fix exception checks due to NAN warnings and object
empty()'s in 269f7b762b - Backport GH-24241 to 8.4 in 2842e1e76e
- phpdbg: Fix wrong command names in f735f33d49
- Fix backport in ebf5128991
- Fix escape analysis for objects implementing ArrayAccess in 59de8a86e5
- Fix test expectation in cdde0c4340
- zip: test skip for buggy libzip version in 8c1d3d55d8
- Fix GH-24391: JIT: switch on constant null takes default instead of case 0 in 1fb0b45dde
- Fix GH-24206: Tracing JIT loses loop-carried CV when its loop PHI is reloaded from memory in 88b48dc323
- Fix GH-24386: JIT: register operand must be loaded before the typed reference check in e31268f3de
zend_test: Backportzend_test_compile_to_ast()function in 359ce15176- Fix GH-24396: Assertion failure in
zend_jit_def_reg()"reg forwarding" with chained Pi nodes in fc05c9bf24 - Fix error paths in
dom_xml_serializing_a_document_node()in 6454e102d8 - Fix GH-17733: System entropy does not take into account function order, resulting in wrong functions possibly called in different configurations in d6541df639
- Fix GH-24697: cli: passing
PHP_HTTP_PARSER_STRICTbuild option doesn't work in 470af312dd - IR: Backport code buffer rollback fix in ddde35ce8b
- JIT: Discard veneers if generation failed in 11bea59cfb
- opcache: Call
orig_post_shutdown_cb()in 37f495c3f5 - curl: Fix UAF on clone due to callback data pointer mismatch in 154b090df2
- Fix GH-23626: OPcache: orphaned temporaries cause leaks and assertions in c7ea9b1758
- Fix JIT losing the called scope of self::/parent:: calls in included files in a7a49e039d
- Fix GH-24988: Incorrect opcode range check causes bugs with exceptions in function JIT in bc3a830f94
- Fix deprecation warn in test in 8b03a99f87
- Fix macOS nightly failure in 3ccde25486
- Fix coverage nightly job failure in 1256242883
- Fix opcache phar check in cbd65db2af
- Fix GHSA-x8r7-mg3g-74hg: Lifetime issue in Dom\XMLDocument serialiser in 58a77f284e
Nicolas Grekas
- Fix skipped catch block when switching fibers during exception unwinding in GH-24117
ext/standard: Don't share theunserialize()context with enum autoloaders in b4a63ecd70- Make
usleep()andtime_nanosleep()alertable on Windows in GH-24399 - Fix
glob()not negating bracket expressions that start with "^" in GH-24422
Nora Dossche
Pavel Gushcha
- Fix preloaded functions JIT-compiled on load being overwritten after restart in 5e7bad4748
- Fix opcache.interned_strings_buffer being 0 in threads started later (ZTS) in 38eabd0452
Peter Kokot
- Update PEAR failed download installation banner in GH-14216
Pratik Bhujel
Raphael Paez
RV7PR
- Fix GH-17626: JIT corrupts opline handler when blacklisting root trace in 7050d57e0e
- Fix GH-24270: JIT loses called scope of self::/parent:: in closures in 4c3d44638e
Ryosuke Ishibashi
Shivam Mathur
ext/gd: Drop useless and doubtful MSVC specific code (libgd/libgd@f1480ab) in GH-24316- Use the default archive names for Windows ARM64 builds in GH-24313
- Fix v142 ARM64 hash and floating point results in GH-24317
- Pin macOS CI to OpenSSL 3 in GH-24332
- Fix Windows quoting in
proc_opentests in GH-24343 - Fix macOS CI in GH-24409
- Fix SQL test on Windows in GH-24755
- Fix calling conventions in Windows alertable sleep test in GH-25125
- Fix linking
ext/curlagainst OpenSSL (#13262) in GH-25129 - Preserve PATH in filter OOM tests for Windows ASan in GH-25163
- Pin Linux x86 CI to Ubuntu 24.04 in GH-25416
Sjoerd Langkemper
- Use FreeBSD 14.4 in GitHub actions in 810f0c6a81
ext/session: validate full length of session ID in 55230ecea9
Tim Düsterhus
- Update GitHub Action workflows to
actions/checkout@v7in 6a1a57dc4b - Update GitHub Action workflows to
actions/checkout@v7(8.4) in 6f5a41524d - Update GitHub Action workflows to
actions/checkout@v7(8.5) in dad7ab67c5 - uri: Update to uriparser-1.0.3 in GH-25145
- Fix GHSA-mg3p-mxj9-g2mm: handle uriparser failures in
php_uri_parser_rfc3986_to_string()in 3cdfa8340b
Volker Dusch
- Update versions for PHP 8.5.13 in 46bcb661df
waroad
- JIT: Fix SIGFPE on LONG_MIN % -1 with a constant divisor in fe6a0ef59d
- JIT: Fix OP_DATA read from an unwritten slot in
zend_jit_assign_dim_op()in a1975b108b - JIT: Fix function JIT level 1 crash on FETCH_OBJ_FUNC_ARG of a hooked property in cfe77b82a6
- Tracing JIT: give the type guard on entry of an inlined call an exit opline in b4ca62e317
- Tracing JIT: keep the SEND_VAL type guard after assigning to a reference in d5ab3605e9
Weilin Du
ext/intl: Fixgrapheme_extract()next offset in GH-24160ext/readline: Fix non-ASCII completion append characters inreadline_info()in GH-24263- ci: Fix stale
zend_teststub hash on PHP 8.4 in GH-24483 - ci: Fix OOM failures in
header_over_4gib.phptin b232da5d0a - JIT: Fix upper-bound inference in tracing JIT comparisons in GH-24633
- JIT: Fix operand type check in
zend_redo_pass_two_ex()in GH-24658 ext/zip: Exclude broken libzip 1.12 in GH-24358ext/zip: Reject broken libzip versions on Windows in GH-24371- Backport: Adapt intl timezone test expectations for ICU 79.1 in GH-24724
ext/phar: Fix repeated compression with the same algorithm in 7dd0cebbc8ext/openssl: Restore OpenSSL 4.x compatibility on PHP 8.4 in GH-25140ext/openssl: Restore OpenSSL 4.x compatibility on PHP 8.5 in GH-25139