@@ -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
}
@@ -2216,7 +2216,7 @@ function run_test($php, $file, $env)
2216
2216
$ test_files [] = array ($ f , $ file );
2217
2217
}
2218
2218
}
2219
- $ test_cnt += @ count ($ test_files ) - 1 ;
2219
+ $ test_cnt += count ($ test_files ) - 1 ;
2220
2220
$ test_idx --;
2221
2221
2222
2222
show_redirect_start ($ IN_REDIRECT ['TESTS ' ], $ tested , $ tested_file );
@@ -2250,7 +2250,7 @@ function run_test($php, $file, $env)
2250
2250
}
2251
2251
}
2252
2252
2253
- if (is_array ($ org_file ) || @ count ($ section_text ['REDIRECTTEST ' ]) == 1 ) {
2253
+ if (is_array ($ org_file ) || isset ($ section_text ['REDIRECTTEST ' ])) {
2254
2254
2255
2255
if (is_array ($ org_file )) {
2256
2256
$ file = $ org_file [0 ];
0 commit comments