xref: /PHP-8.2/Zend/tests/bug69537.phpt (revision d679f022)
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