PHP 8.5.8 được phát hành ngày 2 tháng 7 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.
Fixed bug GH-21972 (Corrupted variable type when a typed by-value return contains a reference wrapper). (Weilin Du)
OpenSSL
Fixed bug GH-22187 (Memory corruption (zend_mm_heap corrupted) in openssl_encrypt with AES-WRAP-PAD). (CVE-2026-14355) (David Carlier)
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. (Weilin Du)
Fixed an integer underflow when parsing ZIP extra fields. (Weilin Du)
Reflection
Preserve class-name case in ReflectionClass::getProperty() error messages and autoloading. (jorgsowa)
SOAP
Fixed bug GH-22218 (SoapServer::handle() crash on $_SERVER not being an array). (David Carlier / Rex-Reynolds)
Fixed bug GH-22285 (Soap server requires the raw input to be passed to $server->handle). (David Carlier / ndossche)
Sqlite
Fix error checks for column retrieval. (ndossche)
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. (Luther Monson)
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. (kocsismate)
Zip
Fixed error-related memory leaks. (ndossche)
Zlib
Fixed memory leak if deflate initialization fails and there is a dict. (ndossche)
Fixed memory leak in inflate_add(). (ndossche)
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.
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.