bug73998.phpt 401 B

123456789101112131415161718
  1. --TEST--
  2. Bug #73998 (array_key_exists fails on arrays created by get_object_vars)
  3. --DESCRIPTION--
  4. Properties of objects with numeric names should be accessible
  5. --FILE--
  6. <?php
  7. $a = new stdClass;
  8. $a->{1234} = "Numeric";
  9. $a->a1234 = "String";
  10. $properties = get_object_vars($a);
  11. var_dump(array_key_exists(1234, $properties));
  12. echo "Value: {$properties[1234]}\n";
  13. ?>
  14. --EXPECT--
  15. bool(true)
  16. Value: Numeric