PHP 8.4.24 được phát hành ngày 30 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.4 đã 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.4, hãy cập nhật lên PHP 8.4.27, phiên bản đã bao gồm các bản sửa lỗi này.
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. (Weilin Du)
Fixed bug GH-17387 (Trivial crash in phpdbg lexer). (iliaal)
Fixed fleaked lowercased lookup keys in phpdbg_resolve_opline_break. (jorgsowa)
Fixed off-by-one in phpdbg_safe_class_lookup() causing class lookups to always fail during phpdbg's signal-safe interruption path. (jorgsowa)
Reflection
Fixed bug GH-22324 (Ignore leading namespace separator in ReflectionParameter::__construct()). (jorgsowa)
Fixed bug GH-22441 (ReflectionClass::hasProperty() and getProperty() ignore dynamic properties shadowing a private parent property). (iliaal)
Fixed bug GH-22658 (ReflectionConstant::__toString() with a string value with null bytes truncates output). (DanielEScherzer)
Fixed bug GH-22681 (Reflection*::__toString() truncates on null bytes). (DanielEScherzer)
Session
Fixed bug GH-21314 (Different session garbage collector behavior between PHP 8.3 and PHP 8.5). (jorgsowa)
SPL
Fix class_parents for classes with leading slash in non-autoload mode. (jorgsowa)
Ignore leading back-slash in class_parents(), class_implements(), and class_uses(). (jorgsowa)
Fixed bug GH-16217 (SplFileObject::fputcsv() on an uninitialized object segfaults). (iliaal)
Standard
Fixed bug GH-22360 (convert.base64-encode corruption on incremental flush). (David Carlier)
Fixed bug GH-22395 (base_convert() outputs at most 64 characters). (Weilin Du)
Fixed integer overflow in getimagesize() and getimagesizefromstring() when parsing an IFF chunk with a size of INT_MAX. (David Carlier, Weilin Du)
Fixed bug GH-22678 (Use-after-free in array_multisort() when the comparator mutates the array being sorted). (azchin, iliaal)
Streams
Fixed bug GH-22617 (persistent stream keys truncated at null bytes, causing distinct abstract unix domain sockets to share a resource). (David Carlier)
Zip
Fixed bug GH-22649 (ZipArchive::setCommentName() and setCommentIndex() could crash after overwriting an entry and resetting its inherited unchanged comment). (Weilin Du)
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.