Hi Yasuo,
Yasuo Ohgaki wrote:
Nice RFC!
It seems patch is made to convert int index to string index to allow
numeric key, is it?
Or vice-versa, yes.
I guess it is the limitation and the reason why
it's inaccessible.
Yes. If you have an object whose HashTable has an integer key, say 123,
and you try to look up the object property 123, it will look for the
string key "123", and will not find it.
Numeric key name must be string?
$obj->{'0'} = 1;
or could be like (Without quotes)
$obj->{0} = 1;
Both are supported, either way it converts to a string key.
--
Andrea Faulds
https://ajf.me/
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php