PHP Release 8.1.2


PHP 8.1.2 Release Announcement

The PHP development team announces the immediate availability of PHP 8.1.2. This is a bug fix release.

All PHP 8.1 users are encouraged to upgrade to this version.

For source downloads of PHP 8.1.2 please visit our downloads page, Windows source and binaries can be found on windows.php.net/download/. The list of changes is recorded in the ChangeLog.

Source Code
PHP 8.1.2 (tar.gz)
SHA256: 9992409c0543e0c8e89914f7307e1485a08c057091146e4731565b59065f8bde
PHP 8.1.2 (tar.bz2)
SHA256: 913dc7dd4388427fa33ea4ac89834e856ff5394f4218eace260a3a279f5b53a9
PHP 8.1.2 (tar.xz)
SHA256: 6b448242fd360c1a9f265b7263abf3da25d28f2b2b0f5465533b69be51a391dd
Change Logs
core
  • Fixed bug #81216 (Nullsafe operator leaks dynamic property name).
  • Fixed bug #81684 (Using null coalesce assignment with $GLOBALS["x"] produces opcode error).
  • Fixed bug #81656 (GCC-11 silently ignores -R).
  • Fixed bug #81683 (Misleading "access type ... must be public" error message on final or abstract interface methods).
  • Fixed bug #81585 (cached_chunks are not counted to real_size on shutdown).
  • Fixed bug GH-7757 (Multi-inherited final constant causes fatal error).
  • Fixed zend_fibers.c build with ZEND_FIBER_UCONTEXT.
  • Added riscv64 support for fibers.
filter
  • Fixed FILTER_FLAG_NO_RES_RANGE flag.
hash
  • Fixed bug GH-7759 (Incorrect return types for hash() and hash_hmac()).
  • Fixed bug GH-7826 (Inconsistent argument name in hash_hmac_file and hash_file).
mbstring
  • Fixed bug #81693 (mb_check_encoding(7bit) segfaults).
mysqli
  • Fixed bug #81658 (MYSQL_OPT_LOAD_DATA_LOCAL_DIR not available in MariaDB).
  • Introduced MYSQLI_IS_MARIADB.
  • Fixed bug GH-7746 (mysqli_sql_exception->getSqlState()).
mysqlnd
  • Fixed bug where large bigints may be truncated.
oci8
  • Fixed bug GH-7765 (php_oci_cleanup_global_handles segfaults at second call).
opcache
  • Fixed bug #81679 (Tracing JIT crashes on reattaching).
readline
  • Fixed bug #81598 (Cannot input unicode characters in PHP 8 interactive shell).
reflection
  • Fixed bug #81681 (ReflectionEnum throwing exceptions).
pdo_pgsql
  • Fixed error message allocation of PDO PgSQL.
sockets
  • Avoid void* arithmetic in sockets/multicast.c on NetBSD.
  • Fixed ext/sockets build on Haiku.
spl
  • Fixed bug #75917 (SplFileObject::seek broken with CSV flags).
  • Fixed bug GH-7809 (Cloning a faked SplFileInfo object may segfault).
standard
  • Fixed bug GH-7748 (gethostbyaddr outputs binary string).
  • Fixed bug GH-7815 (php_uname doesn't recognise latest Windows versions).
To Top