summaryrefslogtreecommitdiff
path: root/Zend/tests/debug_info-error-1.0.phpt
blob: 27611237bbfcf7dbd11b66e12d0d0e1fdd6a1992 (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 ONE (float)
--FILE--
<?php

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

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