mirror of
https://github.com/php/php-src.git
synced 2024-12-20 23:39:46 +08:00
70f0546885
As it drops the warning. This is more problematic with constant propagation, as tests would fail. Extract a zend_optimizer_classify_function() function, as its now needed by zend_cfg and update_opN.
14 lines
239 B
PHP
14 lines
239 B
PHP
--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
|