Skip to content

Commit 5f100a5

Browse files
committed
Fix tests after some reverts
1 parent 516ebd0 commit 5f100a5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

ext/standard/tests/array/array_push_error2.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ echo "*** Testing array_push() : error conditions ***\n";
1717
$array = array(PHP_INT_MAX => 'max');
1818
try {
1919
var_dump(array_push($array, 'new'));
20-
} catch (\ValueError $e) {
20+
} catch (\Error $e) {
2121
echo $e->getMessage() . "\n";
2222
}
2323
var_dump($array);

ext/standard/tests/array/bug61058.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Bug #61058 (array_fill leaks if start index is PHP_INT_MAX)
55

66
try {
77
array_fill(PHP_INT_MAX, 2, '*');
8-
} catch (\ValueError $e) {
8+
} catch (\Value $e) {
99
echo $e->getMessage() . "\n";
1010
}
1111
?>

ext/standard/tests/array/bug71220.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Bug #71220 (Null pointer deref (segfault) in compact via ob_start)
55
ob_start("compact");
66
try {
77
ob_end_clean();
8-
} catch (\ValueError $e) {
8+
} catch (\Error $e) {
99
echo $e->getMessage();
1010
}
1111
?>

0 commit comments

Comments
 (0)