diff --git a/sapi/fpm/tests/tester.inc b/sapi/fpm/tests/tester.inc index 907988654337..557f8c25e193 100644 --- a/sapi/fpm/tests/tester.inc +++ b/sapi/fpm/tests/tester.inc @@ -225,7 +225,7 @@ class Tester */ static public function findExecutable(): bool|string { - $phpPath = getenv("TEST_PHP_EXECUTABLE"); + $phpPath = getenv("TEST_PHP_FPM_EXECUTABLE") ?: getenv("TEST_PHP_EXECUTABLE"); for ($i = 0; $i < 2; $i++) { $slashPosition = strrpos($phpPath, "/"); if ($slashPosition) {