[php-src] PHP-8.6: ext/soap/tests/bugs/bug62900.phpt: make use of TEST_PHP_ vars
| From: | Michael Orlitzky via Gina Peter Banyard | Date: | Wed, 30 Sep 2026 14:57:42 +0000 |
| Subject: | [php-src] PHP-8.6: ext/soap/tests/bugs/bug62900.phpt: make use of TEST_PHP_ vars | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-141794@lists.php.net to get a copy of this message | ||
Author: Michael Orlitzky (orlitzky)
Committer: Gina Peter Banyard (Girgias)
Date: 2026-09-30T15:55:43+01:00
Commit: https://github.com/php/php-src/commit/e216cf64f0b8a13d1eb6e7e7f6513c3ab1308606
Raw diff: https://github.com/php/php-src/commit/e216cf64f0b8a13d1eb6e7e7f6513c3ab1308606.diff
ext/soap/tests/bugs/bug62900.phpt: make use of TEST_PHP_ vars
This test goes to some trouble to ensure that it uses the config of
the just-built (often development) PHP rather than the system
one. There already exist environment variables to facilitate this
however -- TEST_PHP_EXECUTABLE and TEST_PHP_EXTRA_ARGS -- so let's use
them.
Closes GH-22405
Changed paths:
M ext/soap/tests/bugs/bug62900.phpt
Diff:
diff --git a/ext/soap/tests/bugs/bug62900.phpt b/ext/soap/tests/bugs/bug62900.phpt
index c78afda5304a..fd3ff3dfefdb 100644
--- a/ext/soap/tests/bugs/bug62900.phpt
+++ b/ext/soap/tests/bugs/bug62900.phpt
@@ -46,18 +46,15 @@ $combinations = [
chdir(__DIR__);
-$args = ["-d", "display_startup_errors=0", "-d",
"extension_dir=" . ini_get("extension_dir"), "-d",
"extension=" . (substr(PHP_OS, 0, 3) == "WIN" ? "php_" : "")
. "soap." . PHP_SHLIB_SUFFIX];
-if (php_ini_loaded_file()) {
- // Necessary such that it works from a development directory in which case extension_dir might
not be the real extension dir
- $args[] = "-c";
- $args[] = php_ini_loaded_file();
-}
+$php = getenv('TEST_PHP_EXECUTABLE');
+$args = getenv('TEST_PHP_EXTRA_ARGS');
+$cmd = "$php $args " . __DIR__ . '/bug62900_run';
foreach ($combinations as list($wsdl, $xsd)) {
file_put_contents(__DIR__."/bug62900.wsdl", $wsdl);
file_put_contents(__DIR__."/bug62900.xsd", $xsd);
- $proc = proc_open([PHP_BINARY, ...$args, __DIR__.'/bug62900_run'], [1 =>
["pipe", "w"], 2 => ["pipe", "w"]], $pipes);
+ $proc = proc_open($cmd, [1 => ["pipe", "w"], 2 => ["pipe",
"w"]], $pipes);
echo stream_get_contents($pipes[1]);
fclose($pipes[1]);
proc_close($proc);