Skip to content

Commit db90b37

Browse files
committed
Avoid warnings in run-tests.php
1 parent 3e594db commit db90b37

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

run-tests.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ function main()
197197
$environment['TEST_PHP_CGI_EXECUTABLE'] = $php_cgi;
198198
}
199199

200-
if (!getenv('TEST_PHPDBG_EXECUTABLE')) {
200+
if (!getenv('TEST_PHPDBG_EXECUTABLE') && $php !== null) {
201201
if (!strncasecmp(PHP_OS, "win", 3) && file_exists(dirname($php) . "/phpdbg.exe")) {
202202
$phpdbg = realpath(dirname($php) . "/phpdbg.exe");
203203
} elseif (file_exists(dirname($php) . "/../../sapi/phpdbg/phpdbg")) {
@@ -668,7 +668,7 @@ function main()
668668
$environment['TEST_PHP_EXECUTABLE'] = $php;
669669
}
670670

671-
if (strlen($conf_passed)) {
671+
if ($conf_passed !== null) {
672672
if (substr(PHP_OS, 0, 3) == "WIN") {
673673
$pass_options .= " -c " . escapeshellarg($conf_passed);
674674
} else {

0 commit comments

Comments
 (0)