From: Marcus Boerger Date: Sun, 23 Jun 2002 00:37:16 +0000 (+0000) Subject: -make it run again X-Git-Tag: php-4.3.0dev_zend2_alpha2~143 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6ff0a9ee4ac7378ec9ed712c35ba6dff1428975b;p=php -make it run again --- diff --git a/run-tests.php b/run-tests.php index 41d72cc9c9..8ec8252ae7 100755 --- a/run-tests.php +++ b/run-tests.php @@ -108,7 +108,7 @@ $test_files = array(); $test_results = array(); // If parameters given assume they represent selected tests to run. -if ($argc>1) { +if (isset($argc) && $argc>1) { for ($i=1; $i<$argc; $i++) { $testfile = realpath($argv[$i]); $test_to_run[$testfile] = 1; @@ -116,7 +116,8 @@ if ($argc>1) { } // Compile a list of all test files (*.phpt). -$module_of_test = $test_files = array(); +$test_files = array(); +$module_of_test = array(); find_files(getcwd()); function find_files($dir) {