summaryrefslogtreecommitdiff
path: root/Zend/tests/call_static_006.phpt
blob: 946be2a3c96cc61562457e4760256390bddb110b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--TEST--
Testing __callStatic
--FILE--
<?php

class foo {
	static function __callstatic($a, $b) {
		var_dump($a);
	}
}

foo::__construct();

?>
--EXPECTF--
Fatal error: Uncaught Error: Cannot call constructor in %s:%d
Stack trace:
#0 {main}
  thrown in %s on line %d