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