--TEST-- Testing __debugInfo() magic method with bad returns ZERO --FILE-- val; } public function __construct($val) { $this->val = $val; } } $c = new C(0); var_dump($c); ?> --EXPECTF-- Fatal error: __debuginfo() must return an array in %s on line %d