bug29505.phpt 418 B

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