xref: /PHP-7.0/Zend/tests/bug69537.phpt (revision 14e4c610)
1--TEST--
2Bug #69537 (__debugInfo with empty string for key gives error)
3--FILE--
4<?php
5class Foo {
6
7    public function __debugInfo(){
8        return ['' => 1];
9    }
10}
11
12var_dump(new Foo);
13?>
14--EXPECTF--
15object(Foo)#%d (%d) {
16  [""]=>
17  int(1)
18}
19
20