]> granicus.if.org Git - php/commitdiff
fix run-tests.php failure when no custom php.ini passed
authorAntony Dovgal <tony2001@php.net>
Thu, 3 Jul 2008 10:24:44 +0000 (10:24 +0000)
committerAntony Dovgal <tony2001@php.net>
Thu, 3 Jul 2008 10:24:44 +0000 (10:24 +0000)
run-tests.php

index 87b8daaffa9c5b6a9b7d5764e1b9384f7ad076bd..34b115554a0854e2e2ac8b9792a25490e3888d80 100755 (executable)
@@ -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);