summaryrefslogtreecommitdiff
path: root/Zend/tests/dynamic_call_008.phpt
blob: 1916bcf91345c73be1be7f1c42e4413f80d60633 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--TEST--
Don't optimize dynamic call to non-dynamic one if it drops the warning
--FILE--
<?php

function test() {
    try {
        ((string) 'extract')(['a' => 42]);
    } catch (\Error $e) {
        echo $e->getMessage() . "\n";
    }
}
test();

?>
--EXPECT--
Cannot call extract() dynamically