source: src/router/php7/ext/opcache/tests/ssa_bug_004.phpt @ 31874

Last change on this file since 31874 was 31874, checked in by brainslayer, 6 weeks ago

update php

File size: 275 bytes
Line 
1--TEST--
2Assign elision exception safety: ICALL
3--FILE--
4<?php
5
6set_error_handler(function() { throw new Exception; });
7
8function test() {
9    $x = str_replace(['foo'], [[]], ['foo']);
10}
11try {
12    test();
13} catch (Exception $e) {
14    echo "caught\n";
15}
16
17?>
18--EXPECT--
19caught
Note: See TracBrowser for help on using the repository browser.