1
0
mirror of https://github.com/php/php-src.git synced 2026-04-22 23:48:14 +02:00
Files
archived-php-src/ext/opcache/tests/ssa_bug_004.phpt
T
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

22 lines
298 B
PHP

--TEST--
Assign elision exception safety: ICALL
--EXTENSIONS--
opcache
--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