summaryrefslogtreecommitdiff
path: root/Zend/tests/bug69537.phpt
blob: e2c79b9afe939897beaaf53551f4a4a59bf18f72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--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)
}