mirror of
https://github.com/php/php-src.git
synced 2024-12-15 04:45:03 +08:00
20 lines
390 B
PHP
20 lines
390 B
PHP
--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
|