xref: /PHP-8.1/Zend/tests/dynamic_call_003.phpt (revision 33476ec3)
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: Method name must be a string in %s:%d
14Stack trace:
15#0 {main}
16  thrown in %s on line %d
17