xref: /PHP-7.1/Zend/tests/dynamic_call_008.phpt (revision 70f05468)
1--TEST--
2Don't optimize dynamic call to non-dynamic one if it drops the warning
3--FILE--
4<?php
5
6function test() {
7    ((string) 'extract')(['a' => 42]);
8}
9test();
10
11?>
12--EXPECTF--
13Warning: Cannot call extract() dynamically in %s on line %d
14