php-src/Zend/tests/dynamic_call_008.phpt
2019-08-23 20:01:51 +02:00

18 lines
296 B
PHP

--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