PHP 8.1 is currently only receiving security fixes. PHP 8.1.13 is not the latest version in the series, and using this release is not recommended. PHP 8.1.31 is the latest in the series.
Downloads
Source Code
git clone https://github.com/php/php-src.git --depth 1 --branch php-8.1.13
./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.13-cli-alpine
docker pull php:8.1.13-cli
docker pull php:8.1.13-fpm-alpine
docker pull php:8.1.13-apache
docker pull php:8.1.13-fpm
ChangeLog
CLI
- Fixed bug GH-9709 (Null pointer dereference with -w/-s options).
Core
- Fixed bug GH-9752 (Generator crashes when interrupted during argument evaluation with extra named params).
- Fixed bug GH-9801 (Generator crashes when memory limit is exceeded during initialization).
- Fixed potential NULL pointer dereference Windows shm*() functions.
- Fixed bug GH-9750 (Generator memory leak when interrupted during argument evaluation.
Date
- Fixed bug GH-9763 (DateTimeZone ctr mishandles input and adds null byte if the argument is an offset larger than 100*60 minutes).
FPM
- Fixed bug GH-9754 (SaltStack (using Python subprocess) hangs when running php-fpm 8.1.11).
mysqli
- Fixed bug GH-9841 (mysqli_query throws warning despite using silenced error mode).
MySQLnd
- Fixed potential heap corruption due to alignment mismatch.
OpenSSL
- Fixed bug GH-8430 (OpenSSL compiled with no-md2, no-md4 or no-rmd160 does not build).
SOAP
- Fixed GH-9720 (Null pointer dereference while serializing the response).
Commit List
Adam Saponara
- Fix GH-9709: Guard against current_execute_data==NULL in is_handle_exception_set in 45e224cf51
Arnaud Le Blanc
- Restore extra_named_params when restoring frozen call stack in 86e1fea39a
- Fix crash when memory limit is exceeded during generator initialization in 26c7c82d32
- Fix generator memory leaks when interrupted during argument evaluation in GH-9756
Benoit
- Fix compilation warning in 994097093c
Christoph M. Becker
- Fix potential heap corruption due to alignment mismatch in 7e14d2466a
- Fix GH-9720: Null pointer dereference while serializing the response in e440e37fa8
- Fix #81739: OOB read due to insufficient validation in
imageloadfont()
in d50532be91 - Update new test to use EXTENSIONS section instead of
SKIPIF
in b4fb66463b - Fix potential NULL pointer dereference Windows shm*() functions in d1c9ff5642
- Don't skip test on Windows due to missing
ext/posix
in 4c35d6440b
Derick Rethans
- Updated to version 2022.5 (2022e) in 24963be8ef
- Empty merge in 0ff07838ed
- Updated to version 2022.5 (2022e) in 577b904fdc
- Fixed GH-9763: DateTimeZone ctr mishandles input and adds null byte if the argument is an offset larger than 100*60 minutes in 7b48053293
- Update NEWS in 41a6a298d9
- Test for bug #78055 (DatePeriod's getRecurrences and ->recurrences don't match) in 011b7f9840
- Bumb versions in 004cb82750
- Updated to version 2022.6 (2022f) in 2b5bed904e
- Empty merge in 65f31a49cd
- Updated to version 2022.6 (2022f) in bee083e2b8
Dmitry Stogov
- Discard disasm symbols on opcache restart in cefb228e15
- Reset JIT for dynamic functions on opcache restrart in 61e563ca40
- JIT: Fix incorrect EX(opline) override in 261a08af65
- Fix memory leak in f31f464cec
George Peter Banyard
- Add missing EXTENSION section to tests in a4acba9e52
Ilija Tovilo
- Fix failing date test in 4e8a6554cb
- Fix cli server blocking on accept when using multiple workers in d52f0451ad
- Revert incorrect PHP-7.4 version constants in 8b919c3175
- Fix user path in test in 537a104f14
- Migrate i386 to GitHub actions in 75970077b0
- Fix duplicate
SKIPIF
section in d2c663441d - Fix ext section in bca1e1f557
- Really fix test this time in 35167af771
Jakub Zelenka
- Fix GH-8430: OpenSSL compiled with old disgests does not build in fa1b6ab5db
- Fix GH-9754: SaltStack hangs when running php-fpm 8.1.11 in 1c5844aa3e
- Fix GH-9770: Add small timeout in status-listen test in 8229649045
Kamil Tekiela
- mysqli_query throws warning despite using silenced error mode in GH-9842
- Add a temporary fix for insufficient buffer size in mysqlnd in GH-9835
- Add NEWS entry for #9841 in 96049867d8
- Add NEWS entry for #9841 in bce12f4e57
Kévin Dunglas
Patrick Allaert
- Update versions and NEWS for PHP 8.1.13 in d2b294d318
Remi Collet
- move CVEs in 8.0.25 changelog in db28ee8fd0
- move CVEs in 8.1.12 changelog in c84d7cc27e
Stanislav Malyshev
- Fix bug #81738 (buffer overflow in
hash_update()
on long parameter) in 248f647724 - Update NEWS in 2669ed7d77
Tim Düsterhus
- Update to actions/checkout@v3 in GH-9759
- Update to actions/checkout@v3 (PHP-8.1) in 8cd1b837c1