com php-src: Remove unused variable old_php: run-tests. php
| From: | Stanislav Malyshev | Date: | Sat, 09 Jun 2018 15:59:25 +0000 |
| Subject: | com php-src: Remove unused variable old_php: run-tests. php | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-102201@lists.php.net to get a copy of this message | ||
Commit: e5043d06c95c0bba2d4ce431a42de0c3066bdab6
Author: Nat Zimmermann <nat@ntzm.io> Sat, 9 Jun 2018 16:59:25 +0100
Parents: a91d5a8194ca0ae43c00ecfa69480ff13344438b
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=e5043d06c95c0bba2d4ce431a42de0c3066bdab6
Log:
Remove unused variable old_php
Changed paths:
M run-tests.php
Diff:
diff --git a/run-tests.php b/run-tests.php
index 02f5b12..1985272 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");