Skip to content

Commit 90b1362

Browse files
committed
Fix tests
1 parent 6556916 commit 90b1362

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

ext/spl/tests/bug54291.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Bug #54291 (Crash iterating DirectoryIterator for dir name starting with \0)
55
$dir = new DirectoryIterator("\x00/abc");
66
$dir->isFile();
77
--EXPECTF--
8-
Fatal error: Uncaught UnexpectedValueException: DirectoryIterator::__construct() expects parameter 1 to be a valid path, string given in %s:%d
8+
Fatal error: Uncaught TypeError: DirectoryIterator::__construct() expects parameter 1 to be a valid path, string given in %s:%d
99
Stack trace:
1010
#0 %s(%d): DirectoryIterator->__construct('\x00/abc')
1111
#1 {main}

ext/spl/tests/bug78863.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ foreach ($it as $fileinfo) {
1616
}
1717
?>
1818
--EXPECTF--
19-
Fatal error: Uncaught UnexpectedValueException: DirectoryIterator::__construct() expects parameter 1 to be a valid path, string given in %s:%d
19+
Fatal error: Uncaught TypeError: DirectoryIterator::__construct() expects parameter 1 to be a valid path, string given in %s:%d
2020
Stack trace:
2121
#0 %s(%d): DirectoryIterator->__construct('%s')
2222
#1 {main}

ext/standard/tests/file/windows_links/bug78862.phpt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@ var_dump(link(__DIR__ . "/bug78862.target\0more", __DIR__ . "/bug78862.link\0mor
77
var_dump(file_exists(__DIR__ . '/bug78862.link'));
88
?>
99
--EXPECTF--
10-
Warning: link() expects parameter 1 to be a valid path, string given in %s on line %d
11-
NULL
12-
bool(false)
10+
Fatal error: Uncaught TypeError: link() expects parameter 1 to be a valid path, string given in %s:%d
11+
Stack trace:
12+
#0 %s(%d): link('%s', '%s')
13+
#1 {main}
14+
thrown in %s on line %d
1315
--CLEAN--
1416
<?php
1517
unlink(__DIR__ . '/bug78862.target');

0 commit comments

Comments
 (0)