PHP 8.2.27: Downloads, Changelog, News

Release Information

Release
8.2.27
PHP Version
PHP 8.2
Release Date
Release Type
Security Update
Release Status
Latest Release in 8.2
Branch Status
Supported

Latest release for PHP 8.2. This release contains security fixes, and it is recommended to update as soon as possible.
PHP 8.2 continues to receive bug fixes and security fixes until 2024-12-31.

Downloads

Source Code

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

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

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

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

ChangeLog

Calendar

  • Fixed jdtogregorian overflow.
  • Fixed cal_to_jd julian_days argument overflow.

COM

  • Fixed bug GH-16991 (Getting typeinfo of non DISPATCH variant segfaults).

Core

  • Fail early in *nix configuration build script.
  • Fixed bug GH-16727 (Opcache bad signal 139 crash in ZTS bookworm (frankenphp)).
  • Fixed bug GH-16799 (Assertion failure at Zend/zend_vm_execute.h:7469).
  • Fixed bug GH-16630 (UAF in lexer with encoding translation and heredocs).
  • Fix is_zend_ptr() huge block comparison.
  • Fixed potential OOB read in zend_dirname() on Windows.

Curl

  • Fix various memory leaks in curl mime handling.

FPM

  • Fixed GH-16432 (PHP-FPM 8.2 SIGSEGV in fpm_get_status).

GD

  • Fixed GH-16776 (imagecreatefromstring overflow).

GMP

  • Revert gmp_pow() overly restrictive overflow checks.

Hash

Opcache

  • Fixed bug GH-16770 (Tracing JIT type mismatch when returning UNDEF).
  • Fixed bug GH-16851 (JIT_G(enabled) not set correctly on other threads).
  • Fixed bug GH-16902 (Set of opcache tests fail zts+aarch64).

OpenSSL

  • Prevent unexpected array entry conversion when reading key.
  • Fix various memory leaks related to openssl exports.
  • Fix memory leak in php_openssl_pkey_from_zval().

PDO

  • Fixed memory leak of setFetchMode().

Phar

  • Fixed bug GH-16695 (phar:// tar parser and zero-length file header blocks).

PHPDBG

  • Fixed bug GH-15208 (Segfault with breakpoint map and phpdbg_clear()).

SAPI

  • Fixed bug GH-16998 (UBSAN warning in rfc1867).

SimpleXML

  • Fixed bug GH-16808 (Segmentation fault in RecursiveIteratorIterator ->current() with a xml element input).

SNMP

  • Fixed bug GH-16959 (snmget modifies the object_id array).

Standard

  • Fixed bug GH-16905 (Internal iterator functions can't handle UNDEF properties).

Streams

  • Fixed network connect poll interuption handling.

Windows

  • Fixed bug GH-16849 (Error dialog causes process to hang).

Commit List

Ayesh Karunaratne

  • CI: FreeBSD on VM - set copyback: false in b263f351c4

Christoph M. Becker

  • Skip tests if ldap_set_rebind_proc() is not available in d276ea54f4
  • Fix rename_variation12*.phpt parallel test conflicts in 03eeec16f0
  • Patch libcurl.pc for macOS builds in 9196a72eb0
  • Need to define BREW_OPT in d6249b6e1f
  • Stick with icu4c 74.2 on macOS CI for PHP-8.1 in 9128fb8f1e
  • Update FreeBSD CI in 85e23dbbb2
  • Adapt ext/intl tests for ICU 75.1 and 76.1 in f725f504e8
  • Skip file_put_contents_variation7.phpt on Windows in 3656a84c39
  • Fix potential conflict of copy_variation5-win32.phpt in 12ef3da381
  • Fix GH-16849: Error dialog causes process to hang in e75061b512
  • Fix GH-16991: Getting typeinfo of non DISPATCH variant segfaults in 9bae8933a3
  • Fix potential OOB read in zend_dirname() on Windows in 94fa2a4ce1

David Carlier

Derick Rethans

Dmitry Stogov

  • Fix incorrect handling of ZEND_ACC_FINAL flag in JIT in GH-16778
  • Fix GH-16829: Segmentation fault with opcache.jit=tracing enabled on aarch64 in 79aaeeafe5
  • Fixed test in 71403558d3
  • Backport JIT fix: set valid EX(opline) before calling gc_possible_root() in GH-16858
  • Use the immutable twin of temporary op_array in GH-16861

Dylan K. Taylor

Gina Peter Banyard

Hans Krentel (hakre)

  • Fail early in *nix configuration build script in c075546320

Ilija Tovilo

  • Move FreeBSD build to GitHub actions with QEMU in aca88baf5f

Jakub Zelenka

Michael Orlitzky

Niels Dossche

Saki Takamachi

  • Added gc_handler to properly handle circular references. in GH-16703

Sergey Panteleev

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.

Support PHP.Watch — If you find the articles, version information, Codex, and other PHP.Watch contributions useful, consider supporting through GitHub Sponsors. Your sponsorship helps dedicate more time to creating valuable content and improving the PHP community. Together, we can keep the momentum going — thank you for your support!

Thanks to the highest tier sponsor: @TomasVotruba for your generous support to keep PHP.Watch moving 💜