From: Antony Dovgal Date: Thu, 3 Jul 2008 10:24:44 +0000 (+0000) Subject: fix run-tests.php failure when no custom php.ini passed X-Git-Tag: BEFORE_HEAD_NS_CHANGE~1408 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b5017ae85dcf120fe233d30549aa5c7af0288102;p=php fix run-tests.php failure when no custom php.ini passed --- diff --git a/run-tests.php b/run-tests.php index 87b8daaffa..34b115554a 100755 --- a/run-tests.php +++ b/run-tests.php @@ -544,10 +544,12 @@ HELP; } } - if (substr(PHP_OS, 0, 3) != "WIN") { - $pass_options .= " -c " . escapeshellarg($conf_passed); - } else { - $pass_options .= " -c '$conf_passed'"; + if (strlen($conf_passed)) { + if (substr(PHP_OS, 0, 3) != "WIN") { + $pass_options .= " -c " . escapeshellarg($conf_passed); + } else { + $pass_options .= " -c '$conf_passed'"; + } } $test_files = array_unique($test_files);