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