blob: b26479d66a66bacac1511f0fe739f1512fe807e5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
--TEST--
Assign elision exception safety: ICALL
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php
set_error_handler(function() { throw new Exception; });
function test() {
$x = str_replace(['foo'], [[]], ['foo']);
}
try {
test();
} catch (Exception $e) {
echo "caught\n";
}
?>
--EXPECT--
caught
|