1--TEST--
2Testing __debugInfo() magic method with bad returns TRUE
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(true);
17var_dump($c);
18--EXPECTF--
19Fatal error: __debuginfo() must return an array in %s%eZend%etests%edebug_info-error-true.php on line %d
20