1--TEST--
2Testing __debugInfo() magic method with bad returns FALSE
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(false);
17var_dump($c);
18?>
19--EXPECTF--
20Fatal error: __debuginfo() must return an array in %s on line %d
21