Annotation of embedaddon/php/Zend/tests/bug29505.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Bug #29505 (get_class_vars() severely broken when used with arrays)
3: --FILE--
4: <?php
5:
6: class Test {
7: public $empty = array();
8: public $three = array(1, "b"=>"c", 3=>array());
9: }
10:
11: var_dump(get_class_vars('Test'));
12:
13: ?>
14: ===DONE===
15: --EXPECT--
16: array(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===
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>