Commit 7effcab2cf0 for php.net
commit 7effcab2cf016aea08de5239b07bef9132974416
Author: Sharad Chandran R <sharad.raju@oracle.com>
Date: Mon Dec 29 19:19:21 2025 +0530
Fix variable assignment for PHP argument escaping in `run-tests.php` (#20799)
diff --git a/run-tests.php b/run-tests.php
index a06f0958d1b..266d3522602 100755
--- a/run-tests.php
+++ b/run-tests.php
@@ -1861,8 +1861,8 @@ function run_test(string $php, $file, array $env): string
$skipCache = new SkipCache($enableSkipCache, $cfg['keep']['skip']);
}
- $orig_php = $php;
$php = escapeshellarg($php);
+ $orig_php = $php;
$retried = false;
retry: