source: src/router/php7/Zend/tests/bug73998.phpt @ 31874

Last change on this file since 31874 was 31874, checked in by brainslayer, 6 weeks ago

update php

File size: 402 bytes
Line 
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
Note: See TracBrowser for help on using the repository browser.