PHP 8.1 is no longer officially supported by the PHP project.
Official support refers to that provided direct by the PHP Project.
If you install PHP via third-party packages, support timelines may be different.
Please read the Release Support Policy for more information.
The latest release of PHP 8.1 is
8.1.34 which includes important security patches.
Source Code
-
PHP 8.1.0 (tar.gz)
- sha256: 848705043ea4a6e022246ae12a1bff6afcf5c73ea98c6ac4d2108d6028c5c125
-
PHP 8.1.0 (tar.bz2)
- sha256: 0725ed2baea125496a898455d501a77460218b2a0cfad773fa9322f491b82b61
-
PHP 8.1.0 (tar.xz)
- sha256: a1317eff0723a2b3d3122bbfe107a1158570ea2822dc35a5fb360086db0f6bbc
Change Log
-
core
-
cli
-
Fixed bug
#81496 (Server logs incorrect request method).
-
com
-
curl
-
Fixed bug
#81085 (Support CURLOPT_SSLCERT_BLOB for cert strings).
-
date
-
dba
-
Fixed bug
#81588 (TokyoCabinet driver leaks memory).
-
dom
-
Fixed bug
#81433 (DOMElement::setIdAttribute() called twice may remove ID).
-
ffi
-
Fixed bug
#79576 ("TYPE *" shows unhelpful message when type is not defined).
-
filter
-
Fixed bug
#61700 (FILTER_FLAG_IPV6/FILTER_FLAG_NO_PRIV|RES_RANGE failing).
-
fpm
-
Fixed bug
#81513 (Future possibility for heap overflow in FPM zlog).
-
Fixed bug
#81026 (PHP-FPM oob R/W in root process leading to privilege escalation) (CVE-2021-21703).
-
Added openmetrics status format.
-
Enable process renaming on macOS.
-
Added pm.max_spawn_rate option to configure max spawn child processes rate.
-
Fixed bug
#65800 (Events port mechanism).
-
ftp
-
gd
-
hash
-
Implemented FR
#68109 (Add MurmurHash V3).
-
Implemented FR
#73385 (Add xxHash support).
-
json
-
Fixed bug
#81532 (Change of $depth behaviour in json_encode() on PHP 8.1).
-
Fixed bug
GH-8238 (Register JSON_ERROR_NON_BACKED_ENUM constant).
-
ldap
-
Convert resource<ldap link> to object \LDAP\Connection.
-
Convert resource<ldap result> to object \LDAP\Result.
-
Convert resource<ldap result entry> to object \LDAP\ResultEntry.
-
mbstring
-
Fixed bug
#76167 (mbstring may use pointer from some previous request).
-
Fixed bug
#81390 (mb_detect_encoding() regression).
-
Fixed bug
#81349 (mb_detect_encoding misdetcts ASCII in some cases).
-
Fixed bug
#81298 (mb_detect_encoding() segfaults when 7bit encoding is specified).
-
mysqli
-
Fixed bug
#70372 (Emulate mysqli_fetch_all() for libmysqlclient).
-
Fixed bug
#80330 (Replace language in APIs and source code/docs).
-
Fixed bug
#80329 (Add option to specify LOAD DATA LOCAL white list folder (including libmysql)).
-
mysqlnd
-
Fixed bug
#63327 (Crash (Bus Error) in mysqlnd due to wrong alignment).
-
Fixed bug
#80761 (PDO uses too much memory).
-
opcache
-
Fixed bug
#81409 (Incorrect JIT code for ADD with a reference to array).
-
Fixed bug
#81255 (Memory leak in PHPUnit with functional JIT).
-
Fixed bug
#80959 (infinite loop in building cfg during JIT compilation).
-
Fixed bug
#81225 (Wrong result with pow operator with JIT enabled).
-
Fixed bug
#81249 (Intermittent property assignment failure with JIT enabled).
-
Fixed bug
#81256 (Assertion `zv != ((void *)0)' failed for "preload" with JIT).
-
Fixed bug
#81133 (building opcache with phpize fails).
-
Fixed bug
#81136 (opcache header not installed).
-
Added inheritance cache.
-
openssl
-
pcre
-
Fixed bug
#81424 (PCRE2 10.35 JIT performance regression).
-
Bundled PCRE2 is 10.37.
-
pdo
-
Fixed bug
#40913 (PDO_MYSQL: PDO::PARAM_LOB does not bind to a stream for fetching a BLOB).
-
pdo mysql
-
Fixed bug
#80908 (PDO::lastInsertId() return wrong).
-
Fixed bug
#81037 (PDO discards error message text from prepared statement).
-
pdo oci
-
Fixed bug
#77120 (Support 'success with info' at connection).
-
pdo odbc
-
pdo pgsql
-
Fixed bug
#81343 (pdo_pgsql: Inconsitent boolean conversion after calling closeCursor()).
-
pdo sqlite
-
Fixed bug
#38334 (Proper data-type support for PDO_SQLITE).
-
pgsql
-
Fixed bug
#81509 (pg_end_copy still expects a resource).
-
Convert resource<pgsql link> to object \PgSql\Connection.
-
Convert resource<pgsql result> to object \PgSql\Result.
-
Convert resource<pgsql large object> to object \PgSql\Lob.
-
phar
-
phpdbg
-
Fixed bug
#81135 (unknown help topic causes assertion failure).
-
pspell
-
readline
-
Fixed bug
#72998 (invalid read in readline completion).
-
reflection
-
shmop
-
Fixed bug
#81407 (shmop_open won't attach and causes php to crash).
-
simplexml
-
Fixed bug
#81325 (Segfault in zif_simplexml_import_dom).
-
snmp
-
sodium
-
Added the XChaCha20 stream cipher functions.
-
Added the Ristretto255 functions, which are available in libsodium 1.0.18.
-
spl
-
Fixed bug
#66588 (SplFileObject::fgetcsv incorrectly returns a row on premature EOF).
-
Fixed bug
#80663 (Recursive SplFixedArray::setSize() may cause double-free).
-
Fixed bug
#81477 (LimitIterator + SplFileObject regression in 8.0.1).
-
Fixed bug
#81112 (Special json_encode behavior for SplFixedArray).
-
Fixed bug
#80945 ("Notice: Undefined index" on unset() ArrayObject non-existing key).
-
Fixed bug
#80724 (FilesystemIterator::FOLLOW_SYMLINKS remove KEY_AS_FILE from bitmask).
-
standard
-
Fixed bug
#81441 (gethostbyaddr('::1') returns ip instead of name after calling some other method).
-
Fixed bug
#81491 (Incorrectly using libsodium for argon2 hashing).
-
Fixed bug
#81142 (PHP 7.3+ memory leak when unserialize() is used on an associative array).
-
Fixed bug
#81111 (Serialization is unexpectedly allowed on anonymous classes with __serialize()).
-
Fixed bug
#81137 (hrtime breaks build on OSX before Sierra).
-
Fixed bug
#77627 (method_exists on Closure::__invoke inconsistency).
-
streams
-
Fixed bug
#81475 (stream_isatty emits warning with attached stream wrapper).
-
xml
-
Fixed bug
#79971 (special character is breaking the path in xml function) (CVE-2021-21707).
-
Fixed bug
#70962 (XML_OPTION_SKIP_WHITE strips embedded whitespace).
-
zip
-
Fixed bug
#81490 (ZipArchive::extractTo() may leak memory).
-
Fixed bug
#77978 (Dirname ending in colon unzips to wrong dir).
-
Fixed bug
#81420 (ZipArchive::extractTo extracts outside of destination) (CVE-2021-21706).
-
Fixed bug
#80833 (ZipArchive::getStream doesn't use setPassword).