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

function test() {
    ((string) 'extract')(['a' => 42]);
}
test();

?>
--EXPECTF--
Warning: Cannot call extract() dynamically in %s on line %d