diff options
author | Nat Zimmermann <nat@ntzm.io> | 2018-06-09 16:59:25 +0100 |
---|---|---|
committer | Nat Zimmermann <nat@ntzm.io> | 2018-06-09 16:59:25 +0100 |
commit | e5043d06c95c0bba2d4ce431a42de0c3066bdab6 (patch) | |
tree | 644d3cb9c1b00519a8fa885c9de117cc45853413 /run-tests.php | |
parent | a91d5a8194ca0ae43c00ecfa69480ff13344438b (diff) | |
download | php-git-e5043d06c95c0bba2d4ce431a42de0c3066bdab6.tar.gz |
Remove unused variable old_php
Diffstat (limited to 'run-tests.php')
-rw-r--r-- | run-tests.php | 6 |
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"); |