[php-src] PHP-8.4: sapi/cli/tests/php_cli_server_ipv6_error_message.phpt: use TEST_PHP_ vars

From: Date: Wed, 30 Sep 2026 14:57:41 +0000
Subject: [php-src] PHP-8.4: sapi/cli/tests/php_cli_server_ipv6_error_message.phpt: use TEST_PHP_ vars
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-141793@lists.php.net to get a copy of this message
Author: Michael Orlitzky (orlitzky) Committer: Gina Peter Banyard (Girgias) Date: 2026-09-30T15:55:14+01:00 Commit: https://github.com/php/php-src/commit/17506567b9c7ffb6eff6e0fe26b3d124937bb33f Raw diff: https://github.com/php/php-src/commit/17506567b9c7ffb6eff6e0fe26b3d124937bb33f.diff 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 Changed paths: M sapi/cli/tests/php_cli_server_ipv6_error_message.phpt Diff: 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 55432eeec15e..a3d552c8e368 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 @@ $descriptorspec = array( 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 );

« previous php.cvs (#141793) next »