mirror of
https://github.com/php/php-src.git
synced 2024-09-29 13:56:09 +00:00
20 lines
247 B
PHP
20 lines
247 B
PHP
--TEST--
|
|
Bug #69537 (__debugInfo with empty string for key gives error)
|
|
--FILE--
|
|
<?php
|
|
class Foo {
|
|
|
|
public function __debugInfo(){
|
|
return ['' => 1];
|
|
}
|
|
}
|
|
|
|
var_dump(new Foo);
|
|
?>
|
|
--EXPECTF--
|
|
object(Foo)#%d (%d) {
|
|
[""]=>
|
|
int(1)
|
|
}
|
|
|