xref: /PHP-7.3/Zend/tests/bug29505.phpt (revision 610c7fbe)
1--TEST--
2Bug #29505 (get_class_vars() severely broken when used with arrays)
3--FILE--
4<?php
5
6class Test {
7    public $empty = array();
8    public $three = array(1, "b"=>"c", 3=>array());
9}
10
11var_dump(get_class_vars('Test'));
12
13?>
14===DONE===
15--EXPECT--
16array(2) {
17  ["empty"]=>
18  array(0) {
19  }
20  ["three"]=>
21  array(3) {
22    [0]=>
23    int(1)
24    ["b"]=>
25    string(1) "c"
26    [3]=>
27    array(0) {
28    }
29  }
30}
31===DONE===
32