mirror of
https://github.com/php/php-src.git
synced 2024-11-24 02:15:04 +08:00
17 lines
243 B
PHP
17 lines
243 B
PHP
--TEST--
|
|
Testing dynamic call with invalid method name
|
|
--FILE--
|
|
<?php
|
|
|
|
$a = new stdClass;
|
|
$b = 1;
|
|
|
|
$a::$b();
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Uncaught Error: Function name must be a string in %s:%d
|
|
Stack trace:
|
|
#0 {main}
|
|
thrown in %s on line %d
|