1
0
mirror of https://github.com/php/php-src.git synced 2026-04-20 14:31:06 +02:00
Files
archived-php-src/ext/opcache/tests/ssa_bug_005.phpt
Max Semenik e9f783fcdd Migrate skip checks to --EXTENSIONS--, p3
For rationale, see #6787

Extensions migrated in part 3:
* ftp
* gmp
* iconv
* opcache
* shmop
2021-04-03 15:23:25 +02:00

27 lines
342 B
PHP

--TEST--
Assign elision exception safety: UCALL
--EXTENSIONS--
opcache
--FILE--
<?php
function test() {
$dtor = new class { function __destruct() { throw new Exception; } };
$a = 1;
return [0, $a];
}
function test2() {
$x = test();
}
try {
test2();
} catch (Exception $e) {
echo "caught\n";
}
?>
--EXPECT--
caught