php-src/Zend/tests/exception_in_nested_rope.phpt
Nikita Popov 724051e3bd Fix crash when exception occurs during nested rope
Adds extra condition that the rope var of INIT/ADD must match the
one one END.
2015-07-06 20:53:54 +02:00

18 lines
237 B
PHP

--TEST--
Exception during nested rope
--FILE--
<?php
set_error_handler(function() { throw new Exception; });
try {
$a = "foo";
$str = "$a${"y$a$a"}y";
} catch (Exception $e) {
echo "Exception\n";
}
?>
--EXPECT--
Exception