diff options
author | Marcus Boerger <helly@php.net> | 2004-08-03 16:59:53 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2004-08-03 16:59:53 +0000 |
commit | c4508c377e3173c196cf7b0439eb97ff2a556bf6 (patch) | |
tree | 9ff1e1be9c83cfeff17fc0fa3c52a80e4499556a /Zend | |
parent | 7bfc91c3a994fc26cdb4bf612331f1d6567eb1ed (diff) | |
download | php-git-c4508c377e3173c196cf7b0439eb97ff2a556bf6.tar.gz |
Add new test
Diffstat (limited to 'Zend')
-rwxr-xr-x | Zend/tests/bug29505.phpt | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/Zend/tests/bug29505.phpt b/Zend/tests/bug29505.phpt new file mode 100755 index 0000000000..4d7c053516 --- /dev/null +++ b/Zend/tests/bug29505.phpt @@ -0,0 +1,31 @@ +--TEST-- +Bug #29505 (get_class_vars() severely broken when used with arrays) +--FILE-- +<?php + +class Test { + public $empty = array(); + public $three = array(1, "b"=>"c", 3=>array()); +} + +var_dump(get_class_vars('Test')); + +?> +===DONE=== +--EXPECT-- +array(2) { + ["empty"]=> + array(0) { + } + ["three"]=> + array(3) { + [0]=> + int(1) + ["b"]=> + string(1) "c" + [3]=> + array(0) { + } + } +} +===DONE=== |