xref: /PHP-7.2/Zend/tests/dynamic_call_003.phpt (revision 17ccbeec)
1--TEST--
2Testing dynamic call with invalid method name
3--FILE--
4<?php
5
6$a = new stdClass;
7$b = 1;
8
9$a::$b();
10
11?>
12--EXPECTF--
13Fatal error: Uncaught Error: Function name must be a string in %s:%d
14Stack trace:
15#0 {main}
16  thrown in %s on line %d
17