PHP 8.1.3: Downloads, Changelog, News

Release Information

Release
8.1.3
PHP Version
PHP 8.1
Release Date
Release Type
Security Update
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.3 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.3 tag from the PHP Git repository.
git clone https://github.com/php/php-src.git --depth 1 --branch php-8.1.3
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.3-cli-alpine

Debian-based: More compatible with other components, complete, and are widely used.
docker pull php:8.1.3-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.3-fpm-alpine

Debian-based ZTS Apache: Includes Apache web server integrating PHP as an Apache module.
docker pull php:8.1.3-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.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

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

  • Fixed bug GH-7899 (Regression in unpack for negative int value).
  • Fixed bug GH-7875 (mails are sent even if failure to log throws exception).

Commit List

Benjamin Eberlei

Ben Ramsey

Christoph M. Becker

David Carlier

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

Kamil Tekiela

Máté Kocsis

Patrick Allaert

Remi Collet

Sara Golemon

Stefano Arlandini

  • Fix the OpenMetrics response format returned by the FPM status page in 46bec6de42
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.