summaryrefslogtreecommitdiff
path: root/Zend/tests/call_static_004.phpt
blob: af49b1b2a288e6a4b0d6f6228398a3bff8a8e362 (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 Error: Method name must be a string in %s:%d
Stack trace:
#0 {main}
  thrown in %s on line %d