1--TEST--
2Testing __debugInfo() magic method with bad returns ZERO
3--FILE--
4<?php
5
6class C {
7  public $val;
8  public function __debugInfo() {
9    return $this->val;
10  }
11  public function __construct($val) {
12    $this->val = $val;
13  }
14}
15
16$c = new C(0);
17var_dump($c);
18?>
19--EXPECTF--
20Fatal error: __debuginfo() must return an array in %s%eZend%etests%edebug_info-error-0.php on line %d
21