summaryrefslogtreecommitdiff
path: root/run-tests.php
diff options
context:
space:
mode:
authorNat Zimmermann <nat@ntzm.io>2018-06-09 16:59:25 +0100
committerNat Zimmermann <nat@ntzm.io>2018-06-09 16:59:25 +0100
commite5043d06c95c0bba2d4ce431a42de0c3066bdab6 (patch)
tree644d3cb9c1b00519a8fa885c9de117cc45853413 /run-tests.php
parenta91d5a8194ca0ae43c00ecfa69480ff13344438b (diff)
downloadphp-git-e5043d06c95c0bba2d4ce431a42de0c3066bdab6.tar.gz
Remove unused variable old_php
Diffstat (limited to 'run-tests.php')
-rw-r--r--run-tests.php6
1 files changed, 0 insertions, 6 deletions
diff --git a/run-tests.php b/run-tests.php
index 02f5b1287f..19852727de 100644
--- a/run-tests.php
+++ b/run-tests.php
@@ -1426,20 +1426,15 @@ TEST $file
/* For GET/POST/PUT tests, check if cgi sapi is available and if it is, use it. */
if (array_key_exists('CGI', $section_text) || !empty($section_text['GET']) || !empty($section_text['POST']) || !empty($section_text['GZIP_POST']) || !empty($section_text['DEFLATE_POST']) || !empty($section_text['POST_RAW']) || !empty($section_text['PUT']) || !empty($section_text['COOKIE']) || !empty($section_text['EXPECTHEADERS'])) {
if (isset($php_cgi)) {
- $old_php = $php;
$php = $php_cgi . ' -C ';
} else if (!strncasecmp(PHP_OS, "win", 3) && file_exists(dirname($php) . "/php-cgi.exe")) {
- $old_php = $php;
$php = realpath(dirname($php) . "/php-cgi.exe") . ' -C ';
} else {
if (file_exists(dirname($php) . "/../../sapi/cgi/php-cgi")) {
- $old_php = $php;
$php = realpath(dirname($php) . "/../../sapi/cgi/php-cgi") . ' -C ';
} else if (file_exists("./sapi/cgi/php-cgi")) {
- $old_php = $php;
$php = realpath("./sapi/cgi/php-cgi") . ' -C ';
} else if (file_exists(dirname($php) . "/php-cgi")) {
- $old_php = $php;
$php = realpath(dirname($php) . "/php-cgi") . ' -C ';
} else {
show_result('SKIP', $tested, $tested_file, "reason: CGI not available");
@@ -1459,7 +1454,6 @@ TEST $file
}
if (isset($phpdbg)) {
- $old_php = $php;
$php = $phpdbg . ' -qIb';
} else {
show_result('SKIP', $tested, $tested_file, "reason: phpdbg not available");