Commit 17506567b9c for php
commit 17506567b9c7ffb6eff6e0fe26b3d124937bb33f
Author: Michael Orlitzky <michael@orlitzky.com>
Date: Tue Jun 23 09:18:54 2026 -0400
sapi/cli/tests/php_cli_server_ipv6_error_message.phpt: use TEST_PHP_ vars
When invoking the PHP in a subprocess, TEST_PHP_EXECUTABLE_ESCAPED is
preferable to PHP_BINARY, because the former can be set to ensure that
the just-built (often development) php gets used rather than a system
install. In addition, TEST_PHP_EXTRA_ARGS should be passed to this
interpreter.
Closes GH-22414
diff --git a/sapi/cli/tests/php_cli_server_ipv6_error_message.phpt b/sapi/cli/tests/php_cli_server_ipv6_error_message.phpt
index 55432eeec15..a3d552c8e36 100644
--- a/sapi/cli/tests/php_cli_server_ipv6_error_message.phpt
+++ b/sapi/cli/tests/php_cli_server_ipv6_error_message.phpt
@@ -14,8 +14,12 @@
2 => array("pipe", "w")
);
+$php = getenv('TEST_PHP_EXECUTABLE_ESCAPED');
+$args = getenv('TEST_PHP_EXTRA_ARGS');
+$cmd = "$php $args" . ' -S "[2001:db8::]:8080"';
+
$process = proc_open(
- PHP_BINARY . ' -S "[2001:db8::]:8080"',
+ $cmd,
$descriptorspec,
$pipes
);