Уведомление об истечении срока действия PHP : PHP v8.1 недавно истек срок действия. На вашем сайте все еще используется эта версия? Нажмите здесь для более подробной информации
БЕЗОПАСНЫЙ версии PHP: 8.5.12, 8.4.27, 8.3.36, 8.2.35
↑↓↵Используйте клавиши со стрелками, чтобы перемещаться по результатам, нажмите Enter, чтобы открыть один из них, и нажмите Esc, чтобы закрыть это окно.
PHP 8.5.9 вышла 30 июля 2026. Ниже приведён полный список изменений в этой версии, сгруппированных по тем частям PHP, которых касается каждое из них.
Безопасность В этом выпуске исправлены проблемы безопасности. С тех пор у PHP 8.5 вышли более новые версии, поэтому если ваш сайт работает на PHP 8.5, обновите его до PHP 8.5.12, где есть эти исправления.
Fixed bug GH-18173 (ext/hash relies on implementation-defined malloc alignment). (iliaal)
ODBC
Fixed bug GH-22668 (Heap buffer over-read when a column value exceeds the driver-reported display size). (iliaal)
Opcache
Fixed bug GH-22158 (Tracing JIT dispatches the observer begin handler through the wrong run_time_cache slot on megamorphic calls). (ptondereau, iliaal)
Fixed bug GH-22443 (Tracing JIT SIGSEGV on megamorphic dynamic calls from an undereferenced run_time_cache map_ptr offset). (iliaal)
Fixed bug GH-21770 (Infinite recursion in property hook getter in opcache preloaded trait). (iliaal)
OpenSSL
Fixed timeout for supplemental read at end of a blocking stream in SSL stream wrapper. (ilutov)
Intl
Fixed Locale::lookup() and locale_lookup() to return NULL instead of the fallback locale when a language tag cannot be canonicalized. (Weilin Du)
Fixed memory leaks when calling Collator::__construct() or Spoofchecker::__construct() twice. (Weilin Du)
Fixed memory leak when calling IntlListFormatter::__construct() twice. (Weilin Du)
Fixed IntlChar methods leaving stale global error state after successful calls. (Xuyang Zhang)
PDO_ODBC
Fixed bug GH-20726 (Crash with ODBC connection pooling when the DSN carries no credentials). (iliaal)
Fixed bug GH-22667 (Heap buffer over-read when a column value exceeds the driver-reported display size). (iliaal)
Fixed bug GH-22666 (Heap buffer overflow when an output parameter value is longer than the declared maxlen). (iliaal)
Fixed bug GH-22665 (Out-of-bounds write when the ODBC driver reports a diagnostic message length beyond the error buffer). (iliaal)
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-22683 (Reflection(Class)Constant::__toString() should not warn on NAN conversions). (Khaled Alam)
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-22395 (base_convert() outputs at most 64 characters). (Weilin Du)
Fixed bug GH-22678 (Use-after-free in array_multisort() when the comparator mutates the array being sorted). (azchin, iliaal)
URI
Fixed behavior of Uri\WhatWg\Url wither methods with regards to empty opaque hosts. (kocsismate)
Fixed bug GH-22628 (Percent-encoding of caret in WHATWG URL paths is not performed). (kocsismate)
Fixed bug GH-22629 (WHATWG Validation error incorrect with empty host and non-empty userinfo). (kocsismate)
Zip
Fixed bug GH-22649 (ZipArchive::setCommentName() and setCommentIndex() could crash after overwriting an entry and resetting its inherited unchanged comment). (Weilin Du)
Если вы не хотите использовать наш инструмент или уже попробовали, ниже приведен список из трех простых тестов, которые вы можете выполнить, чтобы определить свою версию PHP.Мы перечислили их в порядке сложности, начиная с самого простого.