xref: /PHP-8.0/Zend/tests/dynamic_call_008.phpt (revision 675e9751)
1--TEST--
2Don't optimize dynamic call to non-dynamic one if it drops the warning
3--FILE--
4<?php
5
6function test() {
7    try {
8        ((string) 'extract')(['a' => 42]);
9    } catch (\Error $e) {
10        echo $e->getMessage() . "\n";
11    }
12}
13test();
14
15?>
16--EXPECT--
17Cannot call extract() dynamically
18