php-src/Zend/tests/bug29505.phpt
2005-08-15 14:37:55 +00:00

49 lines
602 B
PHP
Executable File

--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===
--UEXPECT--
array(2) {
[u"empty"]=>
array(0) {
}
[u"three"]=>
array(3) {
[0]=>
int(1)
[u"b"]=>
unicode(1) "c"
[3]=>
array(0) {
}
}
}
===DONE===