mirror of
https://github.com/php/php-src.git
synced 2025-01-03 09:23:42 +08:00
18 lines
243 B
PHP
18 lines
243 B
PHP
--TEST--
|
|
Invalid method name in dynamic static call
|
|
--FILE--
|
|
<?php
|
|
|
|
class foo {
|
|
static function __callstatic($a, $b) {
|
|
var_dump($a);
|
|
}
|
|
}
|
|
|
|
$a = 'foo::';
|
|
$a();
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Call to undefined function foo::() in %s on line %d
|