summaryrefslogtreecommitdiff
path: root/Zend/tests/debug_info-error-true.phpt
blob: 2501e8a412b007c1523eb3927b2d5170a8b317f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--TEST--
Testing __debugInfo() magic method with bad returns TRUE
--FILE--
<?php

class C {
  public $val;
  public function __debugInfo() {
    return $this->val;
  }
  public function __construct($val) {
    $this->val = $val;
  }
}

$c = new C(true);
var_dump($c);
--EXPECTF--
Fatal error: __debuginfo() must return an array in %s%eZend%etests%edebug_info-error-true.php on line %d