Skip to content

Commit e5043d0

Browse files
committed
Remove unused variable old_php
1 parent a91d5a8 commit e5043d0

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

run-tests.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1426,20 +1426,15 @@ function run_test($php, $file, $env)
14261426
/* For GET/POST/PUT tests, check if cgi sapi is available and if it is, use it. */
14271427
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'])) {
14281428
if (isset($php_cgi)) {
1429-
$old_php = $php;
14301429
$php = $php_cgi . ' -C ';
14311430
} else if (!strncasecmp(PHP_OS, "win", 3) && file_exists(dirname($php) . "/php-cgi.exe")) {
1432-
$old_php = $php;
14331431
$php = realpath(dirname($php) . "/php-cgi.exe") . ' -C ';
14341432
} else {
14351433
if (file_exists(dirname($php) . "/../../sapi/cgi/php-cgi")) {
1436-
$old_php = $php;
14371434
$php = realpath(dirname($php) . "/../../sapi/cgi/php-cgi") . ' -C ';
14381435
} else if (file_exists("./sapi/cgi/php-cgi")) {
1439-
$old_php = $php;
14401436
$php = realpath("./sapi/cgi/php-cgi") . ' -C ';
14411437
} else if (file_exists(dirname($php) . "/php-cgi")) {
1442-
$old_php = $php;
14431438
$php = realpath(dirname($php) . "/php-cgi") . ' -C ';
14441439
} else {
14451440
show_result('SKIP', $tested, $tested_file, "reason: CGI not available");
@@ -1459,7 +1454,6 @@ function run_test($php, $file, $env)
14591454
}
14601455

14611456
if (isset($phpdbg)) {
1462-
$old_php = $php;
14631457
$php = $phpdbg . ' -qIb';
14641458
} else {
14651459
show_result('SKIP', $tested, $tested_file, "reason: phpdbg not available");

0 commit comments

Comments
 (0)