mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
-make it run again
This commit is contained in:
parent
76aa60d4e4
commit
6ff0a9ee4a
1 changed files with 3 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue