mirror of
https://github.com/php/php-src.git
synced 2024-12-13 20:05:26 +08:00
16 lines
245 B
PHP
16 lines
245 B
PHP
--TEST--
|
|
Testing dynamic call with invalid value for method name
|
|
--FILE--
|
|
<?php
|
|
|
|
$a = new stdClass;
|
|
|
|
$a::$a();
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Uncaught Error: Function name must be a string in %s:%d
|
|
Stack trace:
|
|
#0 {main}
|
|
thrown in %s on line %d
|