php-src/Zend/tests/debug_info-error-1.0.phpt

21 lines
393 B
Plaintext
Raw Normal View History

--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--
2014-02-21 07:23:01 +08:00
Fatal error: __debuginfo() must return an array in %s%eZend%etests%edebug_info-error-1.0.php on line %d