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