summaryrefslogtreecommitdiff
path: root/Zend/tests/live_range_phi_leak.phpt
blob: f072584053018777fabe0be8f292d083d020e4ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--TEST--
Missing live range if part of phi
--FILE--
<?php
function doThrow() {
    throw new Exception("Test");
}
function test($k) {
    // The 0 gives the QM_ASSIGN a non-refcounted type.
    $res[$k ? $k : 0] = doThrow();
}
try {
    test(new stdClass);
} catch (Exception $e) {
    echo $e->getMessage(), "\n";
}
?>
--EXPECT--
Test