PHP 7.2.11: Downloads, Changelog, News

Release Information

Release
7.2.11
PHP Version
PHP 7.2
Release Date
Release Type
Bug Fix Release
Release Status
EOL, Use PHP 7.2.34
Branch Status
Unsupported

PHP 7.2 reached EOL on , and all releases of this version no longer receive security or bug fixes. Using PHP 7.2.11 is not recommended. PHP 7.2.34 is the latest version in the series.

Downloads

Source Code

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

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

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

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

ChangeLog

Core

  • Fixed bug #76800 (foreach inconsistent if array modified during loop).
  • Fixed bug #76901 (method_exists on SPL iterator passthrough method corrupts memory).

CURL

  • Fixed bug #76480 (Use curl_multi_wait() so that timeouts are respected).

iconv

  • Fixed bug #66828 (iconv_mime_encode Q-encoding longer than it should be).

Opcache

  • Fixed bug #76832 (ZendOPcache.MemoryBase periodically deleted by the OS).
  • Fixed bug #76796 (Compile-time evaluation of disabled function in opcache causes segfault).

POSIX

  • Fixed bug #75696 (posix_getgrnam fails to print details of group).

Reflection

  • Fixed bug #74454 (Wrong exception being thrown when using ReflectionMethod).

Standard

  • Fixed bug #73457 (Wrong error message when fopen FTP wrapped fails to open data connection).
  • Fixed bug #74764 (Bindto IPv6 works with file_get_contents but fails with stream_socket_client).
  • Fixed bug #75533 (array_reduce is slow when $carry is large array).

XMLRPC

  • Fixed bug #76886 (Can't build xmlrpc with expat).

Zlib

  • Fixed bug #75273 (php_zlib_inflate_filter() may not update bytes_consumed).

Commit List

Anatol Belski

  • Switch to staging series on AppVeyor in 58339f37e5
  • Fix stack underflow in phar in 7fb7869e13
  • Fixed bug #76832 ZendOPcache.MemoryBase periodically deleted by the OS in f26172f934
  • Fixed bug #76833, backport change to stream_socket_enable_crypto-win32.phpt from 7.3 in 2476fb76a7
  • Sync with recent changes to default libcurl build in 28c6125053
  • 7.0.33 next in 1b89522974
  • Update binary SDK version for AppVeyor in 49511a5132
  • Improve error code matching in 19ab91781e
  • Backport changes for OpenSSL 1.1.1 CI integration in 922f1a0dcf
  • Sync version for vc++ 15.9 in d77ac7b3dc
  • Add spectre switch for suitable vc14 versions in be02b2e8fd

Christopher Jones

  • Remove trailing whitespace to help keep branches in sycn in eceb34073b
  • Remove trailing whitespace to help keep branches in sync in a2c0f8722b
  • Sync EXPECT usage with PHP-7.3 in bdd67d8175
  • And strip trailing tabs too in 37652336c7
  • Remove $id from phpinfo as already done in PHP-7.3 in 338802b543
  • Make tests portable across PHP 7.x versions in 3d497f884f
  • Backport master branch comment typo fix in 57eb25b393
  • Make usable for PECL OCI8 release for PHP 7.x in 91954c24da
  • Terminate smart string correctly in 9e56a3373e

Christoph M. Becker

Dmitry Stogov

  • Fixed incorrect ZEND_ACC_ARENA_ALLOCATED usage (it must be used only for internal functions) in 709e4e4f17
  • Fixed reference-countingin ZTS build in 7fde2243a7
  • Fixed bug #76800 (foreach inconsistent if array modified during loop) in 3bc4a63fc2

Ferenc Kovacs

Jakub Zelenka

  • Fix stream_security_level.phpt with OpenSSL 1.1.1 in cd0a37994e
  • Fix ssl stream reneg limit test to print only after first renegotiation in be50a72715

Manabu Matsui

Nikita Popov

Peter Kokot

Pierrick Charron

  • Fix 76480: Use curl_multi_wait() so that timeouts are respected in 3bb218a0a7

Remi Collet

Sara Golemon

Stanislav Malyshev

Thomas Petazzoni

Ville Hukkamaki

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.