From 34a14cebb694dc10535bce3d7acc40322069d901 Mon Sep 17 00:00:00 2001 From: Mistral OZ - MIO Date: Sat, 5 Dec 2026 00:28:36 +0100 Subject: [PATCH] PHP 8.6: xhprof for PHP_PROFILER, no SPX PHP 8.6 and PHP_PROFILER were merged separately: the 8.6 images had neither xhprof nor SPX, and the profiler tests failed. Sury packages xhprof for PHP 8.6. SPX 0.4.22 does not compile with PHP 8.6, only its unreleased v0.5 branch supports it: like swoole, it is left out of the 8.6 images until a release. --- CHANGELOG.md | 2 +- docs/extensions.md | 1 + extensions/8.6/xhprof | 1 + tests-suite/php-profiler.sh | 2 ++ 4 files changed, 5 insertions(+), 1 deletion(-) create mode 120000 extensions/8.6/xhprof diff --git a/CHANGELOG.md b/CHANGELOG.md index 0fd6776..8c7d63f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@ ### Minor changes * **2026-12-04** - * New PHP 8.6 images, with all the extensions of PHP 8.5 except *swoole*, which does not support PHP 8.6 yet. See [Extensions](docs/extensions.md) + * New PHP 8.6 images, with all the extensions of PHP 8.5 except *swoole* and *spx*, which do not support PHP 8.6 yet. See [Extensions](docs/extensions.md) * Security: Supercronic 0.2.52 (Go stdlib vulnerabilities, 4 high). Each build of the CI now installs the latest release of Supercronic, the default version only applies to the local builds * **2026-11-20** diff --git a/docs/extensions.md b/docs/extensions.md index 235b915..8397a35 100644 --- a/docs/extensions.md +++ b/docs/extensions.md @@ -33,6 +33,7 @@ This list can be outdated, you can verify it with: `docker run --rm thecodingmac - *ev* is not available in PHP 8.1+ - *swoole* is not available in PHP 8.6: swoole does not support it yet +- *spx* is not available in PHP 8.6: SPX does not support it yet - *mcrypt* is deprecated and its usage is discouraged: it is provided for legacy applications only - *imagick* supports SVG, WMF, DjVu and OpenEXR images in addition to the common formats. If you process untrusted images, you can restrict the allowed formats in the ImageMagick policy (`/etc/ImageMagick-6/policy.xml`) diff --git a/extensions/8.6/xhprof b/extensions/8.6/xhprof new file mode 120000 index 0000000..508c26d --- /dev/null +++ b/extensions/8.6/xhprof @@ -0,0 +1 @@ +../core/xhprof \ No newline at end of file diff --git a/tests-suite/php-profiler.sh b/tests-suite/php-profiler.sh index c64fb7b..c1a6622 100644 --- a/tests-suite/php-profiler.sh +++ b/tests-suite/php-profiler.sh @@ -16,6 +16,8 @@ test_profileCommand() { } test_profileCommandWithSpx() { + # SPX does not support PHP 8.6 yet: not in the 8.6 images + if [[ "${PHP_VERSION}" == "8.6" ]]; then return; fi RESULT=$(docker run ${RUN_OPTIONS} --rm -e PHP_PROFILER=spx "${IMAGE}" bash -c "echo ' /tmp/f.php && php-profile /tmp/f.php 2>&1") assert_matches "SPX Report" "${RESULT}" "SPX did not print its report" }