From 7bc8750166937c4e4bb276a0e5b901748d6daa78 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Sat, 26 Sep 2026 14:13:32 +0000 Subject: [PATCH] Enable expose_php in the PHP-FPM test fixture Three FpmHandlerTest cases assert the X-Powered-By header, which PHP only sends when expose_php is on. The Bref layers enable it, but distribution php.ini files ship it off for the FPM SAPI, so the tests failed on a stock Debian or Ubuntu PHP install. Co-authored-by: matthieu --- tests/FpmRuntime/fixtures/php-fpm.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/FpmRuntime/fixtures/php-fpm.conf b/tests/FpmRuntime/fixtures/php-fpm.conf index 9c4420d63..2c286340a 100644 --- a/tests/FpmRuntime/fixtures/php-fpm.conf +++ b/tests/FpmRuntime/fixtures/php-fpm.conf @@ -13,6 +13,10 @@ pm.max_children = 1 listen = /tmp/.bref/php-fpm.sock ; Enabled for tests clear_env = yes +; The Bref layers enable this, and the tests assert on the X-Powered-By header it +; produces. Distribution php.ini files disable it, so set it here rather than rely +; on the host's configuration. +php_admin_value[expose_php] = On ; Forward stderr of PHP processes to stderr of PHP-FPM (so that it can be sent to cloudwatch) catch_workers_output = yes ; New PHP 7.3 option that disables a verbose log prefix