mirror of
https://github.com/php/php-src.git
synced 2024-12-17 13:59:28 +08:00
18 lines
296 B
PHP
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
|