PHP 8.1.13: Downloads, Changelog, News

Release Information

Release
8.1.13
PHP Version
PHP 8.1
Release Date
Release Type
Bug Fix Release
Release Status
Use PHP 8.1.28 instead
Branch Status
Security-Fixes Only

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.28 is the latest in the series.

Downloads

Source Code

Git Clone
Use Git to clone the 8.1.13 tag from the PHP Git repository.
git clone https://github.com/php/php-src.git --depth 1 --branch php-8.1.13
How to compile PHP
PHP can be compiled by setting up the dependencies, building the configure script (./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

Non-Thread Safe Builds
Non-Thread Safe (NTS) builds are single-threaded PHP builds. They can be used on web servers that integrate PHP over FastCGI protocol, such as Nginx, Caddy, and IIS.
Thread-Safe Builds
Thread-Safe (TS) builds are multi-thread PHP builds, often used to integrate PHP as a Server API for multithreaded servers. The most common use case is using PHP as an Apache module.

Docker/Podman Containers

PHP CLI
PHP CLI Containers images only include the PHP CLI, and no FPM or Apache modules. The Alpine builds are lightweight, but may introduce incompatibilities due to their musl builds. Albeit their larger size, the Debian-based (without the "-alpine" suffix) images are more complete, and widely used.

Alpine-based: Lightweight, but may introduce incompatibilities due to their musl builds.
docker pull php:8.1.13-cli-alpine

Debian-based: More compatible with other components, complete, and are widely used.
docker pull php:8.1.13-cli
PHP CLI + Web Server Integration
These container images include PHP CLI, and a web server integration. FPM container images can be integrated with web servers such as Nginx, Caddy, and Apache with Event MPM. The Apache container images include Apache web server, integrating PHP as an Apache module.

Alpine-based: Lightweight, but may introduce incompatibilities due to their musl builds.
docker pull php:8.1.13-fpm-alpine

Debian-based ZTS Apache: Includes Apache web server integrating PHP as an Apache module.
docker pull php:8.1.13-apache

Debian-based NTS FPM: PHP-FPM, can be integrated with Nginx, Caddy, and other web servers over Fast CGI.
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

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

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

Jakub Zelenka

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

Stanislav Malyshev

Tim Düsterhus

  • Update to actions/checkout@v3 in GH-9759
  • Update to actions/checkout@v3 (PHP-8.1) in 8cd1b837c1
Subscribe to PHP.Watch newsletter for monthly updates

You will receive an email on last Wednesday of every month and on major PHP releases with new articles related to PHP, upcoming changes, new features and what's changing in the language. No marketing emails, no selling of your contacts, no click-tracking, and one-click instant unsubscribe from any email you receive.