Skip to content

Releases

PHP 8.5 for FreeBSD: latest (8.5.13, 05.12.2026)

Choose a tag to compare

@azsupport azsupport released this 05 Dec 00:22

Moving release: always the newest build of freebsd/8.5, now PHP 8.5.13.

Tarball php-8.5-fbsd-latest.tar.xz, unpacks into php-8.5.13-fbsd-20261205-46bcb661/
SHA-256 55d530b722077989436899643350b145b87e39f017984c5876c4f2cfabad11e7
php -v PHP 8.5.13 (...) (fork: 20261205-fbsd-46bcb661)
Same tarball as freebsd-8.5-20261205-46bcb661: upstream commit and the FreeBSD ports patches, applied and not applied

© aZsupport.com

PHP 8.5.13 for FreeBSD (8.5, 05.12.2026)

Choose a tag to compare

PHP 8.5.13 for FreeBSD from branch freebsd/8.5, not an official PHP release.

Upstream php/php-src php-8.5.13 @ 46bcb661df53
Branch commit 1bc32bc0ce5c
php -v PHP 8.5.13 (...) (fork: 20261205-fbsd-46bcb661)
Tarball php-8.5.13-fbsd-20261205-46bcb661.tar.xz, unpacks into php-8.5.13-fbsd-20261205-46bcb661/
SHA-256 55d530b722077989436899643350b145b87e39f017984c5876c4f2cfabad11e7

FreeBSD ports patches

From freebsd-ports lang/php85 @ b786be424cfd.

Applied (commit "Apply curated FreeBSD ports patches"):

  • patch-TSRM_TSRM.c (TSRM/TSRM.c): Do not use the Linux aarch64 TLS assembly on FreeBSD (no effect on amd64).
  • patch-build_Makefile.global (build/Makefile.global): 'make test' does not stop when the egrep that copies the loaded php.ini and the scanned .ini files into tmp-php.ini finds nothing (an empty php.ini, a scan directory without .ini files): BSD make runs the recipe with sh -e.
  • patch-ext_hash_xxhash_xxhash.h (ext/hash/xxhash/xxhash.h): xxHash on PowerPC with VSX and on s390x: altivec.h and s390intrin.h included with bool, vector and pixel saved and restored (push_macro/pop_macro), as xxHash upstream; no effect on amd64.
  • patch-ext_pcre_php__pcre.h (ext/pcre/php_pcre.h): With --with-external-pcre, include the system <pcre2.h> as the port does; no effect with the bundled PCRE.
  • patch-php.ini-development (php.ini-development): php.ini-development: session.upload_progress.enabled = Off, a temporary mitigation of CVE-2026-115560 (and CVE-2026-109619) until the next PHP release, as the port; existing php.ini files stay as they are.
  • patch-php.ini-production (php.ini-production): php.ini-production: session.upload_progress.enabled = Off, a temporary mitigation of CVE-2026-115560 (and CVE-2026-109619) until the next PHP release, as the port; existing php.ini files stay as they are.
  • patch-sapi_apache2handler_config.m4 (sapi/apache2handler/config.m4): 'make install' installs the module without editing httpd.conf (no apxs -a).
  • patch-sapi_fpm_www.conf.in (sapi/fpm/www.conf.in): Document that IPv4-mapped addresses are disabled by default on FreeBSD.

Not applied:

  • patch-configure.ac: ports build layout: makes php_config.h include ext/php_config.h, which only the port's Makefile creates (a hand build fails without it), drops the configure pthreads check and sets the ports' PEAR include_path
  • php_session.h: the full source tree has its own ext/session/php_session.h; the port's copy only serves building ext/soap as a separate package without the session sources
  • php_fpm.in: the rc.d script of the port, not a source patch; your own rc.d scripts stay in use

Build compatibility patches

By azsupport (commit "Apply build compatibility patches"):

  • compat-apache-module-name.patch: make install puts the Apache module into the modules directory of Apache as libphp85.so instead of libphp.so (every branch of this fork: libphpXY.so), so that the builds of several PHP versions do not overwrite each other. httpd.conf is not changed: the install names the LoadModule line it needs. (azsupport)
  • compat-opcache-ioncube-stream.patch: OPcache takes the time of a file whose zend_stream holds no php_stream (the ionCube Loader gives the file one of its own, phar one over its archive) by its path, as for a file name: zend_get_file_handle_timestamp() read the handle as a php_stream and called a stat function of whatever lay there, and php -l of a file encoded by ionCube died of SIGBUS with the ionCube Loader loaded (8.1 and 8.4, 21.11.2026). PHP 8.5 builds OPcache in, so the fix is here for every SAPI (for 8.4 it is in the port www/php84-opcache of azsupport/ports). php-src master has the same code. (azsupport (files/patch-ZendAccelerator.c of www/php84-opcache of azsupport/ports))

Interim security backports

By azsupport, carried only until the upstream branch has its own fix; not reviewed upstream:

  • mysqlnd, the greeting of the server: the 12 bytes of the second part of the scramble were copied when one byte of them was left in the packet, so that a greeting that ended inside them gave the bytes after the packet in the command buffer, or after that buffer, to the scramble (an over-read a hostile or man-in-the-middle server triggers; the fix of GHSA-r6x9-5r99-36j7 left it out, php-src has it too); the 12 bytes and the 0x0 after them have to be in the packet now, otherwise the greeting fails as too short. Two tests for the fake MySQL server, their scenarios in ext/mysqli/tests/fake_server.inc (azsupport: our check of PHP 5.6 (backport-mysqlnd-overread.patch, 22.10.2026 to 04.12.2026) with its test and scenario, the bound of php-src pull request 26018 (Ian Mattas, 02.12.2026, open, not merged): it counts the 0x0 after the 12 bytes too, stricter than our check, and a greeting of MySQL or MariaDB always has it; the second test is for that byte)
  • SOAP: the DTD node that the fix of GHSA-4646-p932-gw34 keeps in the document is named after its DOCTYPE, so the lookups of an element by its name (the Envelope of a request, the definitions of a WSDL, a schema) could take the DTD for that element and read its fields as those of an element; only elements match now, and the root is copied when the to_xml() callback of a typemap puts a DOCTYPE or a processing instruction before it (phpGH-25628); with its tests (php-src commit 7d0baa8 (Jakub Zelenka, 19.11.2026, merged 30.11.2026; not in php-8.2.36, php-8.3.37, php-8.4.28, php-8.5.13), without its NEWS; Remi Collet's 7.4 and 8.1 branches carry it since 04.12.2026 (98b160a, 8acdc6c))

Bundled PECL extensions

In ext/ (commit "Bundle PECL extensions"), built only when enabled with their option:

  • redis 6.3.0 (phpredis/phpredis @ df4fab2de7fc): --enable-redis
  • memcached 3.4.0 (php-memcached-dev/php-memcached @ ce37962769fc): --enable-memcached --with-libmemcached-dir=/usr/local --disable-memcached-sasl (package libmemcached)
  • memcache 8.6 (websupport-sk/pecl-memcache @ 56bef9e138da): --enable-memcache; patch memcache-8.6.patch: Build inside php-src as ext/memcache (bundled by this fork), not only with phpize: config9.m4 looked for its src/ sources under abs_srcdir, which is the PHP tree there, and its PHP version test could not find php_version.h, so configure stopped ("checking PHP version... unknown"); main/internal_functions.c needs ext/memcache/php_memcache.h for phpext_memcache_ptr. config9.m4 now uses PHP_EXT_SRCDIR(memcache), the extension directory in both cases, adds main/ for the version test, and a top-level php_memcache.h includes src/php_memcache.h.
  • imagick 3.8.1 (Imagick/imagick @ 70087bab33ea): --with-imagick=/usr/local (package ImageMagick7 or ImageMagick7-nox11; not together with gmagick); patch imagick-3.8.1.patch: Build inside php-src as ext/imagick (bundled by this fork): buildconf runs in the top of the PHP tree, where m4_include of imagemagick.m4 finds no file, so config.m4 now includes ext/imagick/imagemagick.m4; and set the version that PECL packaging fills in ("@PACKAGE_VERSION@" in the git sources) to 3.8.1, for phpversion('imagick').
  • gmagick 2.0.6RC1 (vitoc/gmagick @ 2936e731e964): --with-gmagick=/usr/local (package GraphicsMagick; not together with imagick); patch gmagick-2.0.6RC1-8.5.patch: Build inside php-src as ext/gmagick (bundled by this fork): configure stops when --with-imagick is given too. GraphicsMagick and ImageMagick have the same MagickWand function names, so built into one PHP, gmagick and imagick would call each other's library. Also the generated arginfo of thresholdimage() and negateimage(): the default of $channel is Gmagick::CHANNEL_DEFAULT, not the undefined global constant CHANNEL_DEFAULT (ReflectionParameter::getDefaultValue() threw "Undefined constant"; the stub was corrected upstream in 0f96aa3, its arginfo was not). For PHP 8.5 (this file, for 8.5 alone; gmagick-2.0.6RC1.patch for 7.4 to 8.4): the two exception classes are registered as subclasses of zend_ce_exception: PHP 8.5 removed zend_exception_get_default(), which gmagick still called (an implicit declaration, an error with clang 16 and later), and no release of gmagick, nor its git master (last changed 10.10.2021), supports PHP 8.5.
  • igbinary 3.2.16 (igbinary/igbinary @ 8326f6a69ebb): --enable-igbinary; the igbinary serializer of redis and memcached: --enable-redis-igbinary, --enable-memcached-igbinary; patch igbinary-3.2.16-8.5.patch: PHP 8.5 removed ext/standard/php_smart_string.h: php_igbinary.h includes Zend/zend_smart_string.h (the smart_string API of PHP 7.0 and later) instead, so that igbinary 3.2.16 builds with 8.5.
  • swoole 6.3.0 (swoole/swoole-src @ e0d606594e13): --enable-swoole (OpenSSL when PHP is built --with-openssl; brotli compression with the package brotli); patch swoole-6.3.0.patch: Build inside php-src as ext/swoole (bundled by this fork): the default of --enable-swoole was...
Read more

PHP 8.4 for FreeBSD: latest (8.4.28, 05.12.2026)

Choose a tag to compare

@azsupport azsupport released this 05 Dec 00:20

Moving release: always the newest build of freebsd/8.4, now PHP 8.4.28.

Tarball php-8.4-fbsd-latest.tar.xz, unpacks into php-8.4.28-fbsd-20261205-6c4c8ecd/
SHA-256 077ca44000a31b7f62c396c3990f0f068fa8d38a95c019e7df598a1e81f9210d
php -v PHP 8.4.28 (...) (fork: 20261205-fbsd-6c4c8ecd)
Same tarball as freebsd-8.4-20261205-6c4c8ecd: upstream commit and the FreeBSD ports patches, applied and not applied

© aZsupport.com

PHP 8.4.28 for FreeBSD (8.4, 05.12.2026)

Choose a tag to compare

PHP 8.4.28 for FreeBSD from branch freebsd/8.4, not an official PHP release.

Upstream php/php-src php-8.4.28 @ 6c4c8ecd1c66
Branch commit 96fd2451264a
php -v PHP 8.4.28 (...) (fork: 20261205-fbsd-6c4c8ecd)
Tarball php-8.4.28-fbsd-20261205-6c4c8ecd.tar.xz, unpacks into php-8.4.28-fbsd-20261205-6c4c8ecd/
SHA-256 077ca44000a31b7f62c396c3990f0f068fa8d38a95c019e7df598a1e81f9210d

FreeBSD ports patches

From freebsd-ports lang/php84 @ 1a235373d266.

Applied (commit "Apply curated FreeBSD ports patches"):

  • patch-TSRM_TSRM.c (TSRM/TSRM.c): Do not use the Linux aarch64 TLS assembly on FreeBSD (no effect on amd64).
  • patch-build_Makefile.global (build/Makefile.global): 'make test' does not stop when the egrep that copies the loaded php.ini and the scanned .ini files into tmp-php.ini finds nothing (an empty php.ini, a scan directory without .ini files): BSD make runs the recipe with sh -e.
  • patch-ext_hash_xxhash_xxhash.h (ext/hash/xxhash/xxhash.h): xxHash on PowerPC with VSX and on s390x: altivec.h and s390intrin.h included with bool, vector and pixel saved and restored (push_macro/pop_macro), as xxHash upstream; no effect on amd64.
  • patch-ext_pcre_php__pcre.h (ext/pcre/php_pcre.h): With --with-external-pcre, include the system <pcre2.h> as the port does; no effect with the bundled PCRE.
  • patch-php.ini-development (php.ini-development): php.ini-development: session.upload_progress.enabled = Off, a temporary mitigation of CVE-2026-115560 (and CVE-2026-109619) until the next PHP release, as the port; existing php.ini files stay as they are.
  • patch-php.ini-production (php.ini-production): php.ini-production: session.upload_progress.enabled = Off, a temporary mitigation of CVE-2026-115560 (and CVE-2026-109619) until the next PHP release, as the port; existing php.ini files stay as they are.
  • patch-sapi_apache2handler_config.m4 (sapi/apache2handler/config.m4): 'make install' installs the module without editing httpd.conf (no apxs -a).
  • patch-sapi_fpm_www.conf.in (sapi/fpm/www.conf.in): Document that IPv4-mapped addresses are disabled by default on FreeBSD.

Not applied:

  • patch-configure.ac: ports build layout: makes php_config.h include ext/php_config.h, which only the port's Makefile creates (a hand build fails without it), drops the configure pthreads check and sets the ports' PEAR include_path
  • libressl-patch-ext_openssl_openssl.c: only for builds against LibreSSL (the port applies it only then)
  • php_session.h: the full source tree has its own ext/session/php_session.h; the port's copy only serves building ext/soap as a separate package without the session sources
  • php_fpm.in: the rc.d script of the port, not a source patch; your own rc.d scripts stay in use

Build compatibility patches

By azsupport (commit "Apply build compatibility patches"):

  • compat-apache-module-name.patch: make install puts the Apache module into the modules directory of Apache as libphp84.so instead of libphp.so (every branch of this fork: libphpXY.so), so that the builds of several PHP versions do not overwrite each other. httpd.conf is not changed: the install names the LoadModule line it needs. (azsupport)

Interim security backports

By azsupport, carried only until the upstream branch has its own fix; not reviewed upstream:

  • mysqlnd, the greeting of the server: the 12 bytes of the second part of the scramble were copied when one byte of them was left in the packet, so that a greeting that ended inside them gave the bytes after the packet in the command buffer, or after that buffer, to the scramble (an over-read a hostile or man-in-the-middle server triggers; the fix of GHSA-r6x9-5r99-36j7 left it out, php-src has it too); the 12 bytes and the 0x0 after them have to be in the packet now, otherwise the greeting fails as too short. Two tests for the fake MySQL server, their scenarios in ext/mysqli/tests/fake_server.inc (azsupport: our check of PHP 5.6 (backport-mysqlnd-overread.patch, 22.10.2026 to 04.12.2026) with its test and scenario, the bound of php-src pull request 26018 (Ian Mattas, 02.12.2026, open, not merged): it counts the 0x0 after the 12 bytes too, stricter than our check, and a greeting of MySQL or MariaDB always has it; the second test is for that byte)
  • SOAP: the DTD node that the fix of GHSA-4646-p932-gw34 keeps in the document is named after its DOCTYPE, so the lookups of an element by its name (the Envelope of a request, the definitions of a WSDL, a schema) could take the DTD for that element and read its fields as those of an element; only elements match now, and the root is copied when the to_xml() callback of a typemap puts a DOCTYPE or a processing instruction before it (phpGH-25628); with its tests (php-src commit 7d0baa8 (Jakub Zelenka, 19.11.2026, merged 30.11.2026; not in php-8.2.36, php-8.3.37, php-8.4.28, php-8.5.13), without its NEWS; Remi Collet's 7.4 and 8.1 branches carry it since 04.12.2026 (98b160a, 8acdc6c))

Bundled PECL extensions

In ext/ (commit "Bundle PECL extensions"), built only when enabled with their option:

  • redis 6.3.0 (phpredis/phpredis @ df4fab2de7fc): --enable-redis
  • memcached 3.4.0 (php-memcached-dev/php-memcached @ ce37962769fc): --enable-memcached --with-libmemcached-dir=/usr/local --disable-memcached-sasl (package libmemcached)
  • memcache 8.6 (websupport-sk/pecl-memcache @ 56bef9e138da): --enable-memcache; patch memcache-8.6.patch: Build inside php-src as ext/memcache (bundled by this fork), not only with phpize: config9.m4 looked for its src/ sources under abs_srcdir, which is the PHP tree there, and its PHP version test could not find php_version.h, so configure stopped ("checking PHP version... unknown"); main/internal_functions.c needs ext/memcache/php_memcache.h for phpext_memcache_ptr. config9.m4 now uses PHP_EXT_SRCDIR(memcache), the extension directory in both cases, adds main/ for the version test, and a top-level php_memcache.h includes src/php_memcache.h.
  • imagick 3.8.1 (Imagick/imagick @ 70087bab33ea): --with-imagick=/usr/local (package ImageMagick7 or ImageMagick7-nox11; not together with gmagick); patch imagick-3.8.1.patch: Build inside php-src as ext/imagick (bundled by this fork): buildconf runs in the top of the PHP tree, where m4_include of imagemagick.m4 finds no file, so config.m4 now includes ext/imagick/imagemagick.m4; and set the version that PECL packaging fills in ("@PACKAGE_VERSION@" in the git sources) to 3.8.1, for phpversion('imagick').
  • gmagick 2.0.6RC1 (vitoc/gmagick @ 2936e731e964): --with-gmagick=/usr/local (package GraphicsMagick; not together with imagick); patch gmagick-2.0.6RC1.patch: Build inside php-src as ext/gmagick (bundled by this fork): configure stops when --with-imagick is given too. GraphicsMagick and ImageMagick have the same MagickWand function names, so built into one PHP, gmagick and imagick would call each other's library. Also the generated arginfo of thresholdimage() and negateimage(): the default of $channel is Gmagick::CHANNEL_DEFAULT, not the undefined global constant CHANNEL_DEFAULT (ReflectionParameter::getDefaultValue() threw "Undefined constant"; the stub was corrected upstream in 0f96aa3, its arginfo was not).
  • igbinary 3.2.16 (igbinary/igbinary @ 8326f6a69ebb): --enable-igbinary; the igbinary serializer of redis and memcached: --enable-redis-igbinary, --enable-memcached-igbinary
  • swoole 6.3.0 (swoole/swoole-src @ e0d606594e13): --enable-swoole (OpenSSL when PHP is built --with-openssl; brotli compression with the package brotli); patch swoole-6.3.0.patch: Build inside php-src as ext/swoole (bundled by this fork): the default of --enable-swoole was "yes", which built it into every PHP configured without --disable-all; it is now "no"; drop the -std=c++14 that config.m4 appends to CXXFLAGS, which inside php-src applies to every C++ file and overrides the C++17 that ext/intl needs with ICU 75 and newer.
  • openswoole 4.12.1 (openswoole/ext-openswoole @ b4a458b59e18): --enable-openswoole (OpenSSL when PHP is built --with-openssl; not together with swoole); patch openswoole-4.12.1.patch: Build inside php-src as ext/openswoole (bundled by this fork), on PHP 7.4 to 8.4. configure built OpenSwoole into every PHP, as it tested PHP_SWOOLE (left over from swoole, unset there) instead of PHP_OPENSWOOLE, and the default of --enable-openswoole was "yes"; now only --enable-openswoole builds it, and configure stops when --enable-swoole is given too (same C++ symbols). Drop the option --enable-openssl, which reset PHP_OPENSSL of --with-openssl to "no" so that mysqlnd built without its OpenSSL code (OpenSwoole now uses OpenSSL when PHP is built --with-openssl, as swoole 6.2 does); drop the -std=c++11 that config.m4 appends to CXXFLAGS, which ins...
Read more

PHP 8.3 for FreeBSD: latest (8.3.37, 05.12.2026)

Choose a tag to compare

@azsupport azsupport released this 05 Dec 00:18

Moving release: always the newest build of freebsd/8.3, now PHP 8.3.37.

Tarball php-8.3-fbsd-latest.tar.xz, unpacks into php-8.3.37-fbsd-20261205-ab4b1884/
SHA-256 fb8332c6d282a753c132228954881e6030a211db5fd6fe3d5423f781c0a7076c
php -v PHP 8.3.37 (...) (fork: 20261205-fbsd-ab4b1884)
Same tarball as freebsd-8.3-20261205-ab4b1884: upstream commit and the FreeBSD ports patches, applied and not applied

© aZsupport.com

PHP 8.3.37 for FreeBSD (8.3, 05.12.2026)

Choose a tag to compare

PHP 8.3.37 for FreeBSD from branch freebsd/8.3, not an official PHP release.

Upstream php/php-src php-8.3.37 @ ab4b18847bcc
Branch commit 90fbd6dc2572
php -v PHP 8.3.37 (...) (fork: 20261205-fbsd-ab4b1884)
Tarball php-8.3.37-fbsd-20261205-ab4b1884.tar.xz, unpacks into php-8.3.37-fbsd-20261205-ab4b1884/
SHA-256 fb8332c6d282a753c132228954881e6030a211db5fd6fe3d5423f781c0a7076c

FreeBSD ports patches

From freebsd-ports lang/php83 @ eb0100f974b6.

Applied (commit "Apply curated FreeBSD ports patches"):

  • patch-TSRM_TSRM.c (TSRM/TSRM.c): Do not use the Linux aarch64 TLS assembly on FreeBSD (no effect on amd64).
  • patch-build_Makefile.global (build/Makefile.global): 'make test' does not stop when the egrep that copies the loaded php.ini and the scanned .ini files into tmp-php.ini finds nothing (an empty php.ini, a scan directory without .ini files): BSD make runs the recipe with sh -e.
  • patch-ext_hash_xxhash_xxhash.h (ext/hash/xxhash/xxhash.h): xxHash on PowerPC with VSX and on s390x: altivec.h and s390intrin.h included with bool, vector and pixel saved and restored (push_macro/pop_macro), as xxHash upstream; no effect on amd64.
  • patch-php.ini-development (php.ini-development): php.ini-development: session.upload_progress.enabled = Off, a temporary mitigation of CVE-2026-115560 (and CVE-2026-109619) until the next PHP release, as the port; existing php.ini files stay as they are.
  • patch-php.ini-production (php.ini-production): php.ini-production: session.upload_progress.enabled = Off, a temporary mitigation of CVE-2026-115560 (and CVE-2026-109619) until the next PHP release, as the port; existing php.ini files stay as they are.
  • patch-sapi_apache2handler_config.m4 (sapi/apache2handler/config.m4): 'make install' installs the module without editing httpd.conf (no apxs -a).
  • patch-sapi_fpm_config.m4 (sapi/fpm/config.m4): Report the listen queue via SO_LISTENQLEN; FreeBSD's struct tcp_info lacks the Linux fields.
  • patch-sapi_fpm_www.conf.in (sapi/fpm/www.conf.in): Document that IPv4-mapped addresses are disabled by default on FreeBSD.

Not applied:

  • patch-configure.ac: its ifunc hunk is applied as compat-freebsd-ifunc.patch (configure checks the ifunc and target function attributes on FreeBSD too); the other hunks are not: three are the ports build layout, which makes php_config.h include ext/php_config.h that only the port's Makefile creates (a hand build fails without it), drops the configure pthreads check and sets the ports' PEAR include_path, and two do not matter here: the nanosleep hunk (libc before librt) would only drop a NEEDED librt.so.1 (librt is part of the base system), and php-src has no include/ for the header hunk to leave out
  • patch-ext_pcre_pcre2lib_sljit_sljitConfigInternal.h: PowerPC 32-bit, for the copy of PCRE2 that upstream bundles; this fork bundles PCRE2 10.49 instead (freebsd/pcre.conf), whose sljit already leaves out __builtin___clear_cache on every PowerPC (SLJIT_CONFIG_PPC, 32 and 64 bit), so its change is there already
  • php_fpm.in: the rc.d script of the port, not a source patch; your own rc.d scripts stay in use

Build compatibility patches

By azsupport (commit "Apply build compatibility patches"):

  • compat-apache-module-name.patch: make install puts the Apache module into the modules directory of Apache as libphp83.so instead of libphp.so (every branch of this fork: libphpXY.so), so that the builds of several PHP versions do not overwrite each other. httpd.conf is not changed: the install names the LoadModule line it needs. (azsupport)
  • compat-freebsd-ifunc.patch: configure checks the ifunc and target function attributes on FreeBSD too, as the official port does, so that PHP picks its SIMD code by the CPU at run time. Upstream 8.3 skips both checks on FreeBSD (PHP bug #77284, FreeBSD 11), and that code ran only where the -march of the build had the instructions: with x86-64-v3 no crc32 with PCLMUL (crc32(), the crc32 hashes) and no base64 with AVX-512, with x86-64-v2 also no base64 and mbstring with AVX2. PHP 8.4 runs these checks upstream on FreeBSD 12 and later. (freebsd-ports lang/php83/files/patch-configure.ac @ eb0100f974b6, its ifunc hunk only, the same change; the port has carried it at least since its patch of 16.01.2024)
  • compat-openssl-legacy-provider.patch: --with-openssl-legacy-provider of PHP 8.4: load the OpenSSL 3 legacy provider (RC4, Blowfish, DES, RC2, CAST5, MD4 and others) together with the default provider at startup; off by default, no change with OpenSSL 1.1. (php-src PHP-8.4 ext/openssl/config0.m4 and openssl.c (phpGH-13951, "ext/openssl: Add option to load legacy algorithm provider"), the same code)

Interim security backports

By azsupport, carried only until the upstream branch has its own fix; not reviewed upstream:

  • mysqlnd, the greeting of the server: the 12 bytes of the second part of the scramble were copied when one byte of them was left in the packet, so that a greeting that ended inside them gave the bytes after the packet in the command buffer, or after that buffer, to the scramble (an over-read a hostile or man-in-the-middle server triggers; the fix of GHSA-r6x9-5r99-36j7 left it out, php-src has it too); the 12 bytes and the 0x0 after them have to be in the packet now, otherwise the greeting fails as too short. Two tests for the fake MySQL server, their scenarios in ext/mysqli/tests/fake_server.inc (azsupport: our check of PHP 5.6 (backport-mysqlnd-overread.patch, 22.10.2026 to 04.12.2026) with its test and scenario, the bound of php-src pull request 26018 (Ian Mattas, 02.12.2026, open, not merged): it counts the 0x0 after the 12 bytes too, stricter than our check, and a greeting of MySQL or MariaDB always has it; the second test is for that byte)
  • php_zip_add_file() leaked the file it had opened for ZIP_FL_OPEN_FILE_NOW when zip_source_filep() failed (PHP 8.4.23, not in this branch); its tests taken (php-src commit 4c54dce (ndossche, 06.06.2026, PHP 8.4.23))
  • php_zip_pcre() (addPattern()) freed only the current name when a path was too long and returned, leaking the rest of the list (PHP 8.4.23, not in this branch); its tests taken (php-src commit c4d4cea (ndossche, 06.06.2026, PHP 8.4.23))
  • getFromName() and getFromIndex() did not close the entry when zip_fread() failed or read nothing (PHP 8.4.23, not in this branch); its tests taken (php-src commit 17f6752 (ndossche, 06.06.2026, PHP 8.4.23))
  • phpGH-21705: getFromIndex() with ZipArchive::FL_UNCHANGED stated the current entry instead of the original, so it read the wrong length of a changed entry (PHP 8.4.24, not in this branch); its tests taken (php-src commit bc3a7c7 (Weilin Du, 03.07.2026, PHP 8.4.24))
  • phpGH-22649: setting the inherited comment of an entry again after the entry was overwritten used a comment libzip had freed (a use-after-free in PHP_ZIP_SET_FILE_COMMENT) (PHP 8.4.24, not in this branch); its tests taken (php-src commit ebed41a (Weilin Du, 10.07.2026, PHP 8.4.24))
  • phpGH-23108: addGlob() and addPattern() without options stored the entries uncompressed and failed on an existing name instead of replacing it, the defaults being applied only with an options array (PHP 8.4.25, not in this branch); its tests taken (php-src commit 8d5b0d6 (David Carlier, 08.08.2026, PHP 8.4.25))
  • phpGH-17787: a stream of getStream() borrows the zip_t of the archive; freeing the ZipArchive while the stream was open closed the archive under it (a short read, the pending changes lost); the stream keeps the archive alive now (PHP 8.4.26, not in this branch); its tests taken (php-src commit 5a326b9 (Eyüp Can Akman, 14.08.2026, PHP 8.4.26))
  • phpGH-23240: extractTo() took a failed read (the CRC error of a corrupted entry) for success and wrote the corrupt data, and getFromName() and getFromIndex() never read up to the CRC check and returned such data silently; read errors fail with a warning now (PHP 8.4.26, not in this branch); its tests taken (php-src commit 2a2b337 (David Carlier, 13.08.2026, PHP 8.4.26))
  • phpinfo() reported the AES-128 support for AES-192 and AES-256 (PHP 8.4.26, not in this branch); its tests taken (php-src commit d9c58ee (Weilin Du, 17.08.2026, PHP 8.4.26))
  • phpGH-23276: with the stream keeping the archive alive, a ZipArchive subclass holding its own stream was a cycle the GC could not collect; the native state of the archive (zip_t, callbacks) is a refcounted object of its own now, which the streams keep (PHP 8.4.26, not in this branch); its tests taken (php-src commit f49b94e (Weilin Du, 25.08.2026, PHP 8.4.26))
  • getNameIndex() cast the index to int, so an index past 2^32 wrapped and named another entry (PHP 8.4.26, not in this branch); its tests taken (php-src commit 473a7e0 (David Carlier, 29.08.2026, PHP 8.4.26))
  • phpGH-23511: fstat() of a zip:// stream succeeded with an empty stat when the archive could not be opened (PHP 8.4.26, not in this branch); its tests taken (php-src commit 614afe7 (David Carlier, 29.08.2026, PHP 8.4.26))
  • extractTo() with an array of names that is not a list skipped the names whose key was not an index below the count (PHP 8.4.27, not in this branch); its tests taken (php-src c...
Read more

PHP 8.2 for FreeBSD: latest (8.2.36, 05.12.2026)

Choose a tag to compare

@azsupport azsupport released this 05 Dec 00:16

Moving release: always the newest build of freebsd/8.2, now PHP 8.2.36.

Tarball php-8.2-fbsd-latest.tar.xz, unpacks into php-8.2.36-fbsd-20261205-bbc92cfe/
SHA-256 fe71972e99bfcd97a227d25bbb3e491e497c26fa7ef7e3c467e4962208fcd9c7
php -v PHP 8.2.36 (...) (fork: 20261205-fbsd-bbc92cfe)
Same tarball as freebsd-8.2-20261205-bbc92cfe: upstream commit and the FreeBSD ports patches, applied and not applied

© aZsupport.com

PHP 8.2.36 for FreeBSD (8.2, 05.12.2026)

Choose a tag to compare

PHP 8.2.36 for FreeBSD from branch freebsd/8.2, not an official PHP release.

Upstream php/php-src php-8.2.36 @ bbc92cfe9a4f
Branch commit 8783cf1f7be1
php -v PHP 8.2.36 (...) (fork: 20261205-fbsd-bbc92cfe)
Tarball php-8.2.36-fbsd-20261205-bbc92cfe.tar.xz, unpacks into php-8.2.36-fbsd-20261205-bbc92cfe/
SHA-256 fe71972e99bfcd97a227d25bbb3e491e497c26fa7ef7e3c467e4962208fcd9c7

FreeBSD ports patches

From freebsd-ports lang/php82 @ 438e512499a9.

Applied (commit "Apply curated FreeBSD ports patches"):

  • patch-TSRM_TSRM.c (TSRM/TSRM.c): Do not use the Linux aarch64 TLS assembly on FreeBSD (no effect on amd64).
  • patch-build_Makefile.global (build/Makefile.global): 'make test' does not stop when the egrep that copies the loaded php.ini and the scanned .ini files into tmp-php.ini finds nothing (an empty php.ini, a scan directory without .ini files): BSD make runs the recipe with sh -e.
  • patch-ext_hash_xxhash_xxhash.h (ext/hash/xxhash/xxhash.h): xxHash on PowerPC with VSX and on s390x: altivec.h and s390intrin.h included with bool, vector and pixel saved and restored (push_macro/pop_macro), as xxHash upstream; no effect on amd64.
  • patch-php.ini-development (php.ini-development): php.ini-development: session.upload_progress.enabled = Off, a temporary mitigation of CVE-2026-115560 (and CVE-2026-109619) until the next PHP release, as the port; existing php.ini files stay as they are.
  • patch-php.ini-production (php.ini-production): php.ini-production: session.upload_progress.enabled = Off, a temporary mitigation of CVE-2026-115560 (and CVE-2026-109619) until the next PHP release, as the port; existing php.ini files stay as they are.
  • patch-sapi_apache2handler_config.m4 (sapi/apache2handler/config.m4): 'make install' installs the module without editing httpd.conf (no apxs -a).
  • patch-sapi_fpm_config.m4 (sapi/fpm/config.m4): Report the listen queue via SO_LISTENQLEN; FreeBSD's struct tcp_info lacks the Linux fields.
  • patch-sapi_fpm_www.conf.in (sapi/fpm/www.conf.in): Document that IPv4-mapped addresses are disabled by default on FreeBSD.

Not applied:

  • patch-configure.ac: three hunks are the ports build layout, which makes php_config.h include ext/php_config.h that only the port's Makefile creates (a hand build fails without it), drops the configure pthreads check and sets the ports' PEAR include_path, and two do not matter here: the nanosleep hunk (libc before librt) would only drop a NEEDED librt.so.1 (librt is part of the base system), and php-src has no include/ for the header hunk to leave out. The port has no ifunc hunk; the fork takes that of lang/php83 (compat-freebsd-ifunc.patch; aZ, 09.11.2026), so configure checks the ifunc and target attributes on FreeBSD too
  • patch-ext_mysqli_mysqli__api.c, patch-ext_mysqli_mysqli__nonapi.c, patch-ext_mysqli_mysqli__prop.c: ports split packaging of ext/mysqli (built alone with phpize, where the ext/mysqlnd headers are missing); not needed when building from the full source tree
  • patch-ext_pcre_pcre2lib_sljit_sljitConfigInternal.h: PowerPC 32-bit, for the copy of PCRE2 that upstream bundles; this fork bundles PCRE2 10.49 instead (freebsd/pcre.conf), whose sljit already leaves out __builtin___clear_cache on every PowerPC (SLJIT_CONFIG_PPC, 32 and 64 bit), so its change is there already
  • php_fpm.in: the rc.d script of the port, not a source patch; your own rc.d scripts stay in use

Build compatibility patches

By azsupport (commit "Apply build compatibility patches"):

  • compat-apache-module-name.patch: make install puts the Apache module into the modules directory of Apache as libphp82.so instead of libphp.so (every branch of this fork: libphpXY.so), so that the builds of several PHP versions do not overwrite each other. httpd.conf is not changed: the install names the LoadModule line it needs. (azsupport)
  • compat-c99.patch: Fix the GNU libiconv check of ext/iconv/config.m4, which calls printf without <stdio.h>: gcc 14 and newer reject the implicit declaration, so the check failed silently and the module said ICONV_IMPL "unknown" with GNU libiconv. As in php-src 8.3 and later. (azsupport; the include as in php-src PHP-8.3 ext/iconv/config.m4)
  • compat-freebsd-ifunc.patch: configure checks the ifunc and target function attributes on FreeBSD too, as the official port of PHP 8.3 does, so that PHP picks its SIMD code by the CPU at run time. Upstream 8.2 skips both checks on FreeBSD (PHP bug #77284, FreeBSD 11), and that code ran only where the -march of the build had the instructions: with x86-64-v3 no crc32 with PCLMUL (crc32(), the crc32 hashes), with x86-64-v2 also no base64 with AVX2. PHP 8.4 runs these checks upstream on FreeBSD 12 and later. (freebsd-ports lang/php83/files/patch-configure.ac @ eb0100f974b6, its ifunc hunk only, the same change; lang/php82 has no such hunk, the fork takes that of 8.3 (aZ, 09.11.2026))
  • compat-openssl-legacy-provider.patch: --with-openssl-legacy-provider of PHP 8.4: load the OpenSSL 3 legacy provider (RC4, Blowfish, DES, RC2, CAST5, MD4 and others) together with the default provider at startup; off by default, no change with OpenSSL 1.1. (php-src PHP-8.4 ext/openssl/config0.m4 and openssl.c (phpGH-13951, "ext/openssl: Add option to load legacy algorithm provider"), the same code)

Interim security backports

By azsupport, carried only until the upstream branch has its own fix; not reviewed upstream:

  • php-fpm: the status page and fpm_get_status() under load failed with "scoreboard: failed to lock (already locked)" while a worker updated the scoreboard, as readers and writers took one spin lock and a reader did not wait (phpGH-13437); a reader count and a writer flag now, the readers waiting for the writer and the writers for the readers, with a limit of retries for a crashed one (php-src commit 3490ac0 (Jakub Zelenka, 07.09.2024, PHP 8.3.16), the commit of upstream that Ubuntu took in place of its first backport for 8.3.6 (noble, fix-fpm-scoreboard.patch, LP #2130569 and #2144556: the first one crashed php-fpm))
  • mysqlnd, the greeting of the server: the 12 bytes of the second part of the scramble were copied when one byte of them was left in the packet, so that a greeting that ended inside them gave the bytes after the packet in the command buffer, or after that buffer, to the scramble (an over-read a hostile or man-in-the-middle server triggers; the fix of GHSA-r6x9-5r99-36j7 left it out, php-src has it too); the 12 bytes and the 0x0 after them have to be in the packet now, otherwise the greeting fails as too short. Two tests for the fake MySQL server, their scenarios in ext/mysqli/tests/fake_server.inc (azsupport: our check of PHP 5.6 (backport-mysqlnd-overread.patch, 22.10.2026 to 04.12.2026) with its test and scenario, the bound of php-src pull request 26018 (Ian Mattas, 02.12.2026, open, not merged): it counts the 0x0 after the 12 bytes too, stricter than our check, and a greeting of MySQL or MariaDB always has it; the second test is for that byte)
  • CVE-2024-11235 (GHSA-rwp7-7vc6-8477): the live range of the temporary that ZEND_SEPARATE defines again was ended there, which broke the handling of COPY_TMP: ??= on a property of the result of a call ($a->f()->p ??= ..., f()->p ??= ...), with __set or a typed property that throws, freed the value twice (a use-after-free). Fixed upstream in 8.3.19 and 8.4.5 only; the same code (zend_calc_live_ranges()) is in this branch (php-src commit ef2c459 (Ilija Tovilo, 13.11.2024, PHP 8.3.19), with its three tests, as SUSE carries it for 7.4.33 and 8.0.30 (php7-CVE-2024-11235.patch, SLE 15) and Ubuntu for 7.4 (focal) and 8.1 (jammy) (CVE-2024-11235.patch))
  • php_zip_pcre() (addPattern()) freed only the current name when a path was too long and returned, leaking the rest of the list (PHP 8.4.23, not in this branch); its tests taken (php-src commit c4d4cea (ndossche, 06.06.2026, PHP 8.4.23))
  • getFromName() and getFromIndex() did not close the entry when zip_fread() failed or read nothing (PHP 8.4.23, not in this branch); its tests taken (php-src commit 17f6752 (ndossche, 06.06.2026, PHP 8.4.23))
  • phpGH-21705: getFromIndex() with ZipArchive::FL_UNCHANGED stated the current entry instead of the original, so it read the wrong length of a changed entry (PHP 8.4.24, not in this branch); its tests taken (php-src commit bc3a7c7 (Weilin Du, 03.07.2026, PHP 8.4.24))
  • phpGH-22649: setting the inherited comment of an entry again after the entry was overwritten used a comment libzip had freed (a use-after-free in PHP_ZIP_SET_FILE_COMMENT) (PHP 8.4.24, not in this branch); its tests taken (php-src commit ebed41a (Weilin Du, 10.07.2026, PHP 8.4.24))
  • phpGH-23108: addGlob() and addPattern() without options stored the entries uncompressed and failed on an existing name instead of replacing it, the defaults being applied only with an options array (PHP 8.4.25, not in this branch); here zip_options was not initialized at all without an options array (remove_path and add_path read from the stack): the defaults are set at its declaration, the memset and defaults of php_zip_parse_options() of 8.2 dropped; its tests taken (php-src commit 8d5b0d6 (David Carlier, 08.08.2026, PHP 8.4.25))
  • phpGH-17787: a stream of getStream() borrows the zip_t of the archive; freeing the ZipArchive while the stream was open clos...
Read more

PHP 8.1 for FreeBSD: latest (8.1.34, 05.12.2026)

Choose a tag to compare

@azsupport azsupport released this 05 Dec 00:14

Moving release: always the newest build of freebsd/8.1, now PHP 8.1.34.

Tarball php-8.1-fbsd-latest.tar.xz, unpacks into php-8.1.34-fbsd-20261205-8acdc6cb/
SHA-256 aa2ee18786517465d4208c521eb09a16e1b657557eb9b85911ddb8cccf5bcac0
php -v PHP 8.1.34 (...) (fork: 20261205-fbsd-8acdc6cb)
Same tarball as freebsd-8.1-20261205-8acdc6cb: upstream commit and the FreeBSD ports patches, applied and not applied

© aZsupport.com

PHP 8.1.34 for FreeBSD (8.1, 05.12.2026)

Choose a tag to compare

PHP 8.1.34 for FreeBSD from branch freebsd/8.1, not an official PHP release.

Upstream remicollet/php-src-security PHP-8.1-security-backports @ 8acdc6cbe21d
Branch commit 5d3217d9d7cf
php -v PHP 8.1.34 (...) (fork: 20261205-fbsd-8acdc6cb)
Tarball php-8.1.34-fbsd-20261205-8acdc6cb.tar.xz, unpacks into php-8.1.34-fbsd-20261205-8acdc6cb/
SHA-256 aa2ee18786517465d4208c521eb09a16e1b657557eb9b85911ddb8cccf5bcac0

FreeBSD ports patches

From freebsd-ports lang/php81 @ 6002588334a9.

Applied (commit "Apply curated FreeBSD ports patches"):

  • patch-TSRM_TSRM.c (TSRM/TSRM.c): Do not use the Linux aarch64 TLS assembly on FreeBSD (no effect on amd64).
  • patch-build_Makefile.global (build/Makefile.global): 'make test' does not stop when the egrep that copies the loaded php.ini and the scanned .ini files into tmp-php.ini finds nothing (an empty php.ini, a scan directory without .ini files): BSD make runs the recipe with sh -e.
  • patch-ext_hash_xxhash_xxhash.h (ext/hash/xxhash/xxhash.h): xxHash on PowerPC with VSX and on s390x: altivec.h and s390intrin.h included with bool, vector and pixel saved and restored (push_macro/pop_macro), as xxHash upstream; no effect on amd64.
  • patch-sapi_apache2handler_config.m4 (sapi/apache2handler/config.m4): 'make install' installs the module without editing httpd.conf (no apxs -a).
  • patch-sapi_fpm_config.m4 (sapi/fpm/config.m4): Report the listen queue via SO_LISTENQLEN; FreeBSD's struct tcp_info lacks the Linux fields.
  • patch-sapi_fpm_www.conf.in (sapi/fpm/www.conf.in): Document that IPv4-mapped addresses are disabled by default on FreeBSD.

Not applied:

  • patch-configure.ac: three hunks are the ports build layout, which makes php_config.h include ext/php_config.h that only the port's Makefile creates (a hand build fails without it), drops the configure pthreads check and sets the ports' PEAR include_path, and two do not matter here: the nanosleep hunk (libc before librt) would only drop a NEEDED librt.so.1 (librt is part of the base system), and php-src has no include/ for the header hunk to leave out. The port has no ifunc hunk; the fork takes that of lang/php83 (compat-freebsd-ifunc.patch; aZ, 09.11.2026), so configure checks the ifunc and target attributes on FreeBSD too
  • patch-ext_mysqli_mysqli__api.c, patch-ext_mysqli_mysqli__nonapi.c, patch-ext_mysqli_mysqli__prop.c, patch-ext_mysqli_php__mysqli__structs.h: ports split packaging of ext/mysqli (built alone with phpize, where the ext/mysqlnd headers are missing); not needed when building from the full source tree
  • patch-ext_pcre_pcre2lib_sljit_sljitConfigInternal.h: PowerPC 32-bit, for the copy of PCRE2 that upstream bundles; this fork bundles PCRE2 10.49 instead (freebsd/pcre.conf), whose sljit already leaves out __builtin___clear_cache on every PowerPC (SLJIT_CONFIG_PPC, 32 and 64 bit), so its change is there already
  • php_fpm.in: the rc.d script of the port, not a source patch; your own rc.d scripts stay in use

Build compatibility patches

By azsupport (commit "Apply build compatibility patches"):

  • compat-apache-module-name.patch: make install puts the Apache module into the modules directory of Apache as libphp81.so instead of libphp.so (every branch of this fork: libphpXY.so), so that the builds of several PHP versions do not overwrite each other. httpd.conf is not changed: the install names the LoadModule line it needs. (azsupport)
  • compat-c99.patch: Fix the GNU libiconv check of ext/iconv/config.m4, which calls printf without <stdio.h>: gcc 14 and newer reject the implicit declaration, so the check failed silently and the module said ICONV_IMPL "unknown" with GNU libiconv. As in php-src 8.3 and later. (azsupport; the include as in php-src PHP-8.3 ext/iconv/config.m4)
  • compat-curl-openssl3.patch: ext/curl configure: libcurl built with OpenSSL 3 is no longer taken for an old OpenSSL (the check knew only "OpenSSL/1.1"), which defined HAVE_CURL_OLD_OPENSSL, required openssl.pc and linked curl.so with libssl and libcrypto for nothing (the locking callbacks are for ZTS builds of OpenSSL before 1.1). The check program of php-src 8.3 and later, with <stdio.h> for its sscanf. (php-src b222c02 (phpGH-13262, 14.02.2024): the check program only)
  • compat-freebsd-ifunc.patch: configure checks the ifunc and target function attributes on FreeBSD too, as the official port of PHP 8.3 does, so that PHP picks its SIMD code by the CPU at run time. Upstream 8.1 skips both checks on FreeBSD (PHP bug #77284, FreeBSD 11), and that code ran only where the -march of the build had the instructions: with x86-64-v3 no crc32 with PCLMUL (crc32(), the crc32 hashes), with x86-64-v2 also no base64 with AVX2. PHP 8.4 runs these checks upstream on FreeBSD 12 and later. (freebsd-ports lang/php83/files/patch-configure.ac @ eb0100f974b6, its ifunc hunk only, the same change; lang/php81 has no such hunk, the fork takes that of 8.3 (aZ, 09.11.2026))
  • compat-openssl-legacy-provider.patch: --with-openssl-legacy-provider of PHP 8.4: load the OpenSSL 3 legacy provider (RC4, Blowfish, DES, RC2, CAST5, MD4 and others) together with the default provider at startup; off by default, no change with OpenSSL 1.1. (php-src PHP-8.4 ext/openssl/config0.m4 and openssl.c (phpGH-13951, "ext/openssl: Add option to load legacy algorithm provider"), the same code)

Interim security backports

By azsupport, carried only until the upstream branch has its own fix; not reviewed upstream:

  • php-fpm: the status page and fpm_get_status() under load failed with "scoreboard: failed to lock (already locked)" while a worker updated the scoreboard, as readers and writers took one spin lock and a reader did not wait (phpGH-13437); a reader count and a writer flag now, the readers waiting for the writer and the writers for the readers, with a limit of retries for a crashed one (php-src commit 3490ac0 (Jakub Zelenka, 07.09.2024, PHP 8.3.16), the commit of upstream that Ubuntu took in place of its first backport for 8.3.6 (noble, fix-fpm-scoreboard.patch, LP #2130569 and #2144556: the first one crashed php-fpm))
  • gd: imagefontwidth(), imagefontheight(), imagestring(), imagestringup(), imagechar() and imagecharup() with a font of imageloadfont() (a GdFont object) left the integer of the font uninitialised, which the font of the object was looked up with too: undefined behaviour, a wrong font with clang 14 and later at -Os (phpGH-13082); both initialised now (php-src commits 1e464e5 and df85c25 (Niels Dossche, 09.01.2024 and 13.01.2024, PHP 8.2.15), as MacPorts carries them for php81 (lang/php/files/patch-php81-ext-gd.diff); their test needs a binary font file, which a patch cannot carry: left out)
  • mysqlnd, the greeting of the server: the 12 bytes of the second part of the scramble were copied when one byte of them was left in the packet, so that a greeting that ended inside them gave the bytes after the packet in the command buffer, or after that buffer, to the scramble (an over-read a hostile or man-in-the-middle server triggers; the fix of GHSA-r6x9-5r99-36j7 left it out, php-src has it too); the 12 bytes and the 0x0 after them have to be in the packet now, otherwise the greeting fails as too short. Two tests for the fake MySQL server, their scenarios in ext/mysqli/tests/fake_server.inc (azsupport: our check of PHP 5.6 (backport-mysqlnd-overread.patch, 22.10.2026 to 04.12.2026) with its test and scenario, the bound of php-src pull request 26018 (Ian Mattas, 02.12.2026, open, not merged): it counts the 0x0 after the 12 bytes too, stricter than our check, and a greeting of MySQL or MariaDB always has it; the second test is for that byte)
  • ext/xml with libxml2 2.13 and later (that of azsupport is 2.15): _get_entity() of compat.c waited for parser states that libxml2 2.13 no longer sets, so the entities in attribute and entity values went to the default handler as text, data that is not in the document ( gave an extra ' to the character data handler; phpGH-14834, PEAR could not read its package.xml): only in the content of elements now (php-src commit 67259e4 (Niels Dossche, 05.07.2024, PHP 8.2.22), as pkgsrc carries it for lang/php74 and lang/php81 (patches/patch-ext_xml_compat.c) and MacPorts for php74, with its test (the SKIPIF of 8.1))
  • php_zip_pcre() (addPattern()) freed only the current name when a path was too long and returned, leaking the rest of the list (PHP 8.4.23, not in this branch); its tests taken (php-src commit c4d4cea (ndossche, 06.06.2026, PHP 8.4.23))
  • getFromName() and getFromIndex() did not close the entry when zip_fread() failed or read nothing (PHP 8.4.23, not in this branch); its tests taken (php-src commit 17f6752 (ndossche, 06.06.2026, PHP 8.4.23))
  • phpGH-21705: getFromIndex() with ZipArchive::FL_UNCHANGED stated the current entry instead of the original, so it read the wrong length of a changed entry (PHP 8.4.24, not in this branch); its tests taken (php-src commit bc3a7c7 (Weilin Du, 03.07.2026, PHP 8.4.24))
  • phpGH-22649: setting the inherited comment of an entry again after the entry was overwritten used a comment libzip had freed (a use-after-free in PHP_ZIP_SET_FILE_COMMENT) (PHP 8.4.24, not in this branch); its tests taken (php-src commit ebed41a (Weilin Du, 1...
Read more