mirror of
https://github.com/php/php-src.git
synced 2024-12-25 01:40:50 +08:00
89ce8d28de
The CHECK_EXCEPTION() was done at a point where the old opline is still used, thus redirecting the write to the result var into EX(call) instead. Handling the exception in-place to avoid leaking result.
18 lines
235 B
PHP
18 lines
235 B
PHP
--TEST--
|
|
Exception during rope finalization
|
|
--FILE--
|
|
<?php
|
|
|
|
set_error_handler(function() { throw new Exception; });
|
|
|
|
try {
|
|
$b = "foo";
|
|
$str = "y$b$a";
|
|
} catch (Exception $e) {
|
|
echo "Exception\n";
|
|
}
|
|
|
|
?>
|
|
--EXPECT--
|
|
Exception
|