summaryrefslogtreecommitdiff
path: root/Zend/tests/call_static_006.phpt
blob: 2439f14893be6ff20af193641db3b0fe2d2d529e (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