@@ -1860,7 +1860,7 @@ function run_test($php, $file, $env)
1860
1860
1861
1861
} else {
1862
1862
1863
- if (!isset ($ section_text ['PHPDBG ' ]) && @ count ($ section_text ['FILE ' ]) + @ count ($ section_text ['FILEEOF ' ]) + @ count ($ section_text ['FILE_EXTERNAL ' ]) != 1 ) {
1863
+ if (!isset ($ section_text ['PHPDBG ' ]) && isset ($ section_text ['FILE ' ]) + isset ($ section_text ['FILEEOF ' ]) + isset ($ section_text ['FILE_EXTERNAL ' ]) != 1 ) {
1864
1864
$ bork_info = "missing section --FILE-- " ;
1865
1865
}
1866
1866
@@ -1885,7 +1885,7 @@ function run_test($php, $file, $env)
1885
1885
}
1886
1886
}
1887
1887
1888
- if ((@ count ($ section_text ['EXPECT ' ]) + @ count ($ section_text ['EXPECTF ' ]) + @ count ($ section_text ['EXPECTREGEX ' ])) != 1 ) {
1888
+ if ((isset ($ section_text ['EXPECT ' ]) + isset ($ section_text ['EXPECTF ' ]) + isset ($ section_text ['EXPECTREGEX ' ])) != 1 ) {
1889
1889
$ bork_info = "missing section --EXPECT--, --EXPECTF-- or --EXPECTREGEX-- " ;
1890
1890
}
1891
1891
}
@@ -2209,7 +2209,7 @@ function run_test($php, $file, $env)
2209
2209
$ test_files [] = array ($ f , $ file );
2210
2210
}
2211
2211
}
2212
- $ test_cnt += @ count ($ test_files ) - 1 ;
2212
+ $ test_cnt += count ($ test_files ) - 1 ;
2213
2213
$ test_idx --;
2214
2214
2215
2215
show_redirect_start ($ IN_REDIRECT ['TESTS ' ], $ tested , $ tested_file );
@@ -2243,7 +2243,7 @@ function run_test($php, $file, $env)
2243
2243
}
2244
2244
}
2245
2245
2246
- if (is_array ($ org_file ) || @ count ($ section_text ['REDIRECTTEST ' ]) == 1 ) {
2246
+ if (is_array ($ org_file ) || isset ($ section_text ['REDIRECTTEST ' ])) {
2247
2247
2248
2248
if (is_array ($ org_file )) {
2249
2249
$ file = $ org_file [0 ];
0 commit comments