PHP 8.5.6 được phát hành ngày 7 tháng 5 năm 2026. Dưới đây là danh sách đầy đủ các thay đổi trong phiên bản này, được nhóm theo phần của PHP mà mỗi thay đổi ảnh hưởng.
Bảo mật Bản phát hành này đã sửa các lỗi bảo mật. Kể từ đó PHP 8.5 đã có các bản phát hành mới hơn, vì vậy nếu trang web của bạn chạy trên PHP 8.5, hãy cập nhật lên PHP 8.5.12, phiên bản đã bao gồm các bản sửa lỗi này.
Các thay đổi được liệt kê bằng tiếng Anh, đúng như các nhà phát triển PHP đã viết (tổng cộng 42).
Core
Fixed bug GH-19983 (GC assertion failure with fibers, generators and destructors). (iliaal) Fixed ZEND_API mismatch on zend_ce_closure forward decl for Windows+Clang. (henderkes) Fixed bug GH-21504 (Incorrect RC-handling for ZEND_EXT_STMT op1). (ilutov) Fixed bug GH-21478 (Forward property operations to real instance for initialized lazy proxies). (iliaal) Fixed bug GH-21605 (Missing addref for Countable::count()). (ilutov) Fixed bug GH-21699 (Assertion failure in shutdown_executor when resolving self::/parent::/static:: callables if the error handler throws). (macoaure) Fixed bug GH-21603 (Missing addref for __unset). (ilutov) Fixed bug GH-21760 (Trait with class constant name conflict against enum case causes SEGV). (Pratik Bhujel)
CLI
Fixed bug GH-21754 (`--rf` command line option with a method triggers ext/reflection deprecation warnings). (DanielEScherzer)
Curl
Add support for brotli and zstd on Windows. (Shivam Mathur)
Iconv
Fixed bug GH-17399 (iconv memory leak on bailout). (iliaal)
Opcache
Fixed bug GH-21158 (JIT: Assertion jit->ra[var].flags & (1<<0) failed in zend_jit_use_reg). (Arnaud) Fixed bug GH-21593 (Borked function JIT JMPNZ smart branch). (ilutov) Fixed bug GH-21460 (COND optimization regression). (Dmitry, Arnaud) Fixed faulty returns out of zend_try block in zend_jit_trace(). (ilutov)
OpenSSL
Fix memory leak regression in openssl_pbkdf2(). (ndossche) Fix a bunch of memory leaks and crashes on edge cases. (ndossche)
PDO_PGSQL
Fixed bug GH-21683 (pdo_pgsql throws with ATTR_PREFETCH=0 on empty result set). (thomasschiet)
Phar
Restore is_link handler in phar_intercept_functions_shutdown. (iliaal) Fixed bug GH-21797 (phar: NULL dereference in Phar::webPhar() when SCRIPT_NAME is absent from SAPI environment). (iliaal) Fix memory leak in Phar::offsetGet(). (iliaal) Fix memory leak in phar_add_file(). (iliaal) Fixed bug GH-21799 (phar: propagate phar_stream_flush return value from phar_stream_close). (iliaal) Fix memory leak in phar_verify_signature() when md_ctx is invalid. (JarneClauw)
Random
Fixed bug GH-21731 (Random\Engine\Xoshiro256StarStar::__unserialize() accepts all-zero state). (iliaal)
Session
Fixed memory leak when session GC callback return a refcounted value. (jorgsowa)
SPL
Fixed bug GH-21499 (RecursiveArrayIterator getChildren UAF after parent free). (Girgias) Fix concurrent iteration and deletion issues in SplObjectStorage. (ndossche)
Sqlite3
Fixed wrong free list comparator pointer type. (David Carlier)
Streams
Fixed bug GH-21468 (Segfault in file_get_contents w/ a https URL and a proxy set). (CVE-2026-12184 ) (ndossche)
← Bản phát hành trước: PHP 8.5.5 Bản phát hành tiếp theo: PHP 8.5.7 →
Danh sách này lấy từ tệp NEWS mà các nhà phát triển PHP lưu cùng mã nguồn PHP, và danh sách tương tự cũng được đăng trên php.net .
Bài viết liên quan
Các bài viết hữu ích giúp bạn xác định xem bạn có cần nâng cấp phiên bản PHP của máy chủ hay không và cách thực hiện việc đó.
Đọc thêm →
Nếu bạn không muốn sử dụng công cụ của chúng tôi hoặc đã thử thì sau đây là danh sách ba thử nghiệm đơn giản mà bạn có thể thực hiện để xác định phiên bản PHP của mình.Chúng tôi đã liệt kê chúng theo thứ tự phức tạp, bắt đầu từ cách dễ nhất.
Đọc thêm →
← Quay lại: Mục lục hướng dẫn
Bài viết cập nhật lần cuối: 21st October, 2026