PHP 8.3.1: Downloads, Changelog, News

Release Information

Release
8.3.1
PHP Version
PHP 8.3
Release Date
Release Type
Bug Fix Release
Release Status
Use PHP 8.3.3 instead
Branch Status
Supported (Latest)

PHP 8.3.1 is an old release of PHP 8.3 series. Using the latest version PHP 8.3.3 is highly recommended.
PHP 8.3 continues to receive bug fixes and security fixes until 2025-11-23.

Downloads

Source Code

Git Clone
Use Git to clone the 8.3.1 tag from the PHP Git repository.
git clone https://github.com/php/php-src.git --depth 1 --branch php-8.3.1
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.3.1-cli-alpine

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

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

Debian-based NTS FPM: PHP-FPM, can be integrated with Nginx, Caddy, and other web servers over Fast CGI.
docker pull php:8.3.1-fpm

ChangeLog

Core

  • Fixed bug GH-12758 / GH-12768 (Invalid opline in OOM handlers within ZEND_FUNC_GET_ARGS and ZEND_BIND_STATIC).
  • Fix various missing NULL checks.
  • Fixed bug GH-12835 (Leak of call->extra_named_params on internal __call).
  • Fixed bug GH-12826 (Weird pointers issue in nested loops).

FPM

  • Fixed bug GH-12705 (Segmentation fault in fpm_status_export_to_zval).

FTP

  • Fixed bug GH-9348 (FTP & SSL session reuse).

LibXML

  • Fixed test failures for libxml2 2.12.0.

MySQLnd

  • Avoid using uninitialised struct.
  • Fixed bug GH-12791 (Possible dereference of NULL in MySQLnd debug code).

Opcache

  • Fixed JIT bug (Function JIT emits "Uninitialized string offset" warning at the same time as invalid offset Error).
  • Fixed JIT bug (JIT emits "Attempt to assign property of non-object" warning at the same time as Error is being thrown).

PDO PGSQL

  • Fixed the default value of $fetchMode in PDO::pgsqlGetNotify()

SOAP

  • Fixed bug GH-12838 ([SOAP] Temporary WSDL cache files not being deleted).

Standard

  • Fixed GH-12745 (http_build_query() default null argument for $arg_separator is implicitly coerced to string).

Commit List

Alex Dowad

  • Return value of mb_get_info can be NULL in d8ef868b92

Ben Ramsey

  • Merge changes to CertificateGenerator.inc from PHP-8.2 in 2b4a47ccec

Bob Weinand

ddv

  • Fix phpGH-12763: PGSQL pg_untrace(): Argument #1 ($connection) must be of type resource or null, PgSql\Connection given in 3f57bd80f6

Derick Rethans

Dmitry Stogov

Florian Engelhardt

  • Fix invalid opline in OOM handlers within ZEND_FUNC_GET_ARGS and ZEND_BIND_STATIC in GH-12768

Gina Peter Banyard

  • ext/standard: Fix GH-9316 in 37f67a9a98
  • Mention correct bug number in af155cf2dc
  • jit: fixed "Uninitialized string offset" warning being emitted at the same time as invalid offset Error in ed8b901869
  • jit: fixed JIT "Attempt to assign property of non-object" warning emitted at the same time as Error is being thrown in 126a255d66
  • Align error messages between normal VM and JIT for RW when using object as array in GH-12799

Ilija Tovilo

  • Fix undeclared variable in stat tests in db8c91ae9f
  • Disable -fsanitize=function on Clang 17 in f7f9401cc8
  • Fix astat imperciseness excemption in test in fe34dd1b49
  • Automatically mark tests as flaky in 9bdd0f0de9
  • Fix file test race condition in e1e140f2f2
  • Retry tests on deadlock in 2312637496
  • Temporarily disable failing zlib tests on travis in GH-10738
  • Fix use-after-free of name in var-var with malicious error handler in 1fdcfa4ebe
  • Fix in-place modification of filename in php_message_handler_for_zend in daa38dd63e
  • Reduce parallelism on frequently crashing jobs in ace91ddd73
  • Fix travis_wait in 706e51ad8a
  • Fix leak of call->extra_named_params on internal __call in f203edd3c5
  • Fix compilation of ftp without openssl in 4f934cb7f7

Jakub Zelenka

Levi Morrison

  • test: allow other zend extensions to not fail the test in c524dc6565

Mikhail Galanin

Muhammad Moinur Rahman

Máté Kocsis

  • Fix the default value of $fetchMode in PDO::pgsqlGetNotify() in 8387f2dfd4

Niels Dossche

Patrick Prasse

Pierrick Charron

Remi Collet

  • zip: use index to avoid search by name in 6eecb3e7f5
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.