diff --git a/dev-lang/php/files/php-set-fpm-test-executable.patch b/dev-lang/php/files/php-set-fpm-test-executable.patch new file mode 100644 index 0000000000000..5fee89e4660b7 --- /dev/null +++ b/dev-lang/php/files/php-set-fpm-test-executable.patch @@ -0,0 +1,13 @@ +diff --git a/sapi/fpm/tests/tester.inc b/sapi/fpm/tests/tester.inc +index 90798865433..91ba564edf8 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"); + for ($i = 0; $i < 2; $i++) { + $slashPosition = strrpos($phpPath, "/"); + if ($slashPosition) { diff --git a/dev-lang/php/php-8.4.24.ebuild b/dev-lang/php/php-8.4.24.ebuild index 8f4205e8cf45e..8a505c45c0cf0 100644 --- a/dev-lang/php/php-8.4.24.ebuild +++ b/dev-lang/php/php-8.4.24.ebuild @@ -135,6 +135,7 @@ DEPEND="${COMMON_DEPEND} BDEPEND="virtual/pkgconfig" PATCHES=( + "${FILESDIR}/php-set-fpm-test-executable.patch" "${FILESDIR}/php-8.3.31-ipv6-printing-test-fix.patch" ) @@ -729,6 +730,10 @@ src_test() { export TEST_PHP_CGI_EXECUTABLE="${WORKDIR}/sapis-build/cgi/sapi/cgi/php-cgi" fi + if [[ -x "${WORKDIR}/sapis-build/fpm/sapi/fpm/php-fpm" ]] ; then + export TEST_PHP_FPM_EXECUTABLE="${WORKDIR}/sapis-build/fpm/sapi/fpm/php-fpm" + fi + if [[ -x "${WORKDIR}/sapis-build/phpdbg/sapi/phpdbg/phpdbg" ]] ; then export TEST_PHPDBG_EXECUTABLE="${WORKDIR}/sapis-build/phpdbg/sapi/phpdbg/phpdbg" fi diff --git a/dev-lang/php/php-8.5.9.ebuild b/dev-lang/php/php-8.5.9.ebuild index 637023911c866..1e0afd5ed869b 100644 --- a/dev-lang/php/php-8.5.9.ebuild +++ b/dev-lang/php/php-8.5.9.ebuild @@ -136,6 +136,7 @@ DEPEND="${COMMON_DEPEND} BDEPEND="virtual/pkgconfig" PATCHES=( + "${FILESDIR}/php-set-fpm-test-executable.patch" "${FILESDIR}/php-8.3.31-ipv6-printing-test-fix.patch" ) @@ -728,6 +729,10 @@ src_test() { export TEST_PHP_CGI_EXECUTABLE="${WORKDIR}/sapis-build/cgi/sapi/cgi/php-cgi" fi + if [[ -x "${WORKDIR}/sapis-build/fpm/sapi/fpm/php-fpm" ]] ; then + export TEST_PHP_FPM_EXECUTABLE="${WORKDIR}/sapis-build/fpm/sapi/fpm/php-fpm" + fi + if [[ -x "${WORKDIR}/sapis-build/phpdbg/sapi/phpdbg/phpdbg" ]] ; then export TEST_PHPDBG_EXECUTABLE="${WORKDIR}/sapis-build/phpdbg/sapi/phpdbg/phpdbg" fi