xref: /PHP-7.4/Zend/tests/bug73998.phpt (revision d679f022)
1--TEST--
2Bug #73998 (array_key_exists fails on arrays created by get_object_vars)
3--DESCRIPTION--
4Properties 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
11$properties = get_object_vars($a);
12var_dump(array_key_exists(1234, $properties));
13echo "Value: {$properties[1234]}\n";
14
15?>
16--EXPECT--
17bool(true)
18Value: Numeric
19