Skip to content

Commit 7255d1a

Browse files
committed
Suppress notice in run-tests.php
1 parent 181355e commit 7255d1a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

run-tests.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1035,13 +1035,13 @@ function find_files($dir, $is_ext_dir = false, $ignore = false)
10351035
}
10361036

10371037
// Cleanup any left-over tmp files from last run.
1038-
if (substr($name, -4) == '.tmp') {
1038+
if (@substr($name, -4) === '.tmp') {
10391039
@unlink("$dir/$name");
10401040
continue;
10411041
}
10421042

10431043
// Otherwise we're only interested in *.phpt files.
1044-
if (substr($name, -5) == '.phpt') {
1044+
if (@substr($name, -5) === '.phpt') {
10451045
if ($ignore) {
10461046
$ignored_by_ext++;
10471047
} else {

0 commit comments

Comments
 (0)