Skip to content

Commit 5214f0d

Browse files
committed
Fix run-tests.php counting an uncountable
1 parent d477abe commit 5214f0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

run-tests.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1637,7 +1637,7 @@ function run_test($php, $file, $env)
16371637
$IN_REDIRECT['dir'] = realpath(dirname($file));
16381638
$IN_REDIRECT['prefix'] = trim($section_text['TEST']);
16391639

1640-
if (count($IN_REDIRECT['TESTS']) == 1) {
1640+
if (is_array($IN_REDIRECT['TESTS']) && count($IN_REDIRECT['TESTS']) == 1) {
16411641

16421642
if (is_array($org_file)) {
16431643
$test_files[] = $org_file[1];

0 commit comments

Comments
 (0)