blob: 09d28dd3713833877d68488aef3c05f9fb63df14 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
--TEST--
Invalid method name in dynamic static call
--FILE--
<?php
class foo {
static function __callstatic($a, $b) {
var_dump($a);
}
}
foo::AaA();
$a = 1;
foo::$a();
?>
--EXPECTF--
string(3) "AaA"
Fatal error: Uncaught exception 'EngineException' with message 'Function name must be a string' in %s:%d
Stack trace:
#0 {main}
thrown in %s on line %d
|