PHP 8.1 is currently only receiving security fixes. PHP 8.1.3 is not the latest version in the series, and using this release is not recommended. PHP 8.1.30 is the latest in the series.
Downloads
Source Code
git clone https://github.com/php/php-src.git --depth 1 --branch php-8.1.3
./buildconf
), configuring the build ./configure
, and running make
.Detailed articles on how to compile PHP are available for Ubuntu/Debian based systems and Fedora/RHEL based systems.
Windows binaries
Docker/Podman Containers
docker pull php:8.1.3-cli-alpine
docker pull php:8.1.3-cli
docker pull php:8.1.3-fpm-alpine
docker pull php:8.1.3-apache
docker pull php:8.1.3-fpm
ChangeLog
Core
- Fixed bug #81430 (Attribute instantiation leaves dangling pointer).
- Fixed bug GH-7896 (Environment vars may be mangled on Windows).
- Fixed bug GH-7883 (Segfault when INI file is not readable).
FFI
- Fixed bug GH-7867 (
FFI::cast()
from pointer to array is broken).
Filter
- Fix #81708: UAF due to
php_filter_float()
failing for ints. (CVE-2021-21708)
FPM
- Fixed memory leak on invalid port.
- Fixed bug GH-7842 (Invalid OpenMetrics response format returned by FPM status page.
MBString
- Fixed bug GH-7902 (
mb_send_mail
may delimit headers with LF only).
MySQLnd
- Fixed bug GH-7972 (MariaDB version prefix 5.5.5- is not stripped).
pcntl
- Fixed pcntl_rfork build for DragonFlyBSD.
Sockets
- Fixed bug GH-7978 (sockets extension compilation errors).
Standard
Commit List
Benjamin Eberlei
- Fix #81430: Attribute instantiation leaves dangling pointer in 2f6a06ccb0
Ben Ramsey
- Fix news entry for 8.1.2 in 6af65eac8d
Christoph M. Becker
- Fix ODBC test which may not properly clean up in 9781085782
- Fix GH-7867:
FFI::cast()
from pointer to array is broken in 703cac33db - Fix GH-7875: mails are sent even if failure to log throws exception in 478edcdacb
- Fix GH-7896: Environment vars may be mangled on Windows in 93a3c71eb4
- Fix GH-7902:
mb_send_mail
may delimit headers with LF only in 03816fba46 - Make
gh7875.phpt
more resilient in d2ec5bec29 - Fix #81708: UAF due to
php_filter_float()
failing for ints in 0a6f6817eb
David Carlier
- Fix memory leak on invalid port in c99a026c9c
- Fix pcntl_rfork build for DragonFlyBSD in be22018f35
- Fix GH-7978: sockets extension compilation errors in 07aaa34cd4
Dmitry Stogov
- JIT: Fix incorrect FETCH_THIS elimination in 4170d41a66
- Fix type inference for assign to string offset with invalid index in b80d30d821
- Added test in 71d6501346
- JIT: Fix array separation after capturing by user error handler in c958ab121b
- Fixed NAN handling in SCCP in 698ac23711
- Fix type inference in 1f58365438
- Fix register allocation on x86 in d8b0337cff
- JIT: Fix incorrect flag check in 522406c0ec
- Fix ext/
zend_test
/tests/observer_bug81430_2.phpt failure in f7c3f6e7e2 - JIT: Fix register allocation in 079c5af9ec
- JIT: Fix trace type inference in ee8f9d75c0
- JIT: Fix exception handling in 655e578e81
- Fix typo (wrong string length) in 464e725bb5
- Fix too aggressive DCE that leads to memory leak in 965dafe3e1
- Fix incorrect register allocation in f711c9603d
- JIT: Fix incorrect type store elimination in 54c952f11f
- Fix memory leak in a60a9b4a89
- Prevent array modification if it's captured by user error handler during in 718478377b
- JIT: Fix register alloction (missed store) in 478448d271
Joe Watkins
- Fix TSRM ignoring done in d7db5f6e21
Kamil Tekiela
- Strip MariaDB 10 prefix in 5fc0db989e
- Fix coding style from previous commit in 82b883034c
Máté Kocsis
- Fix class synopsis generation in 0462719999
- Add support for custom property links in 62e4ac9439
Patrick Allaert
- Preparing for 8.1.3-dev in 4ae75623fd
- Update versions for PHP 8.1.3 in 78fd573d0c
- Add fix to NEWS in 9bc17e44be
Remi Collet
- fix GH-7899 Regression in unpack for negative int value in e31c54d025
- Fix GH-7883 don't close not open file handle in cdfc4d3596
Sara Golemon
- Bump for 8.0.17-dev in 8a46311dbd
Stefano Arlandini
- Fix the OpenMetrics response format returned by the FPM status page in 46bec6de42