* Thus wrote Sara Golemon:
> > Although a double value isn't a valid array index, it doesn't seem
> > to be consistent.  I'm thinking that the code should yeild one of
> > two results:
> >
> >   1. Issue warning as with using objects or arrays as keys
> >   2. unset uses the str.val to retrieve the proper index.
> >
> > Any thoughts on the proper behaviour?
> >
> There was a typo in Zend/zend_execute.c.
> 
> doubles used as indexes were being converted from the lval property of the
> zval rather than the dval property.
> This is similar to a bug that got patched about a month ago:   $a[3.0]  = 1;
> acts like $a[0] = 1;    just in a different spot.
> 
> Fixed now.

so I'm taking that as double's are allowed, so the documentation
need's to reflect that, since it currently says integers or strings
are only allowed.

correct?

And if so is this a php5 thing only or php4 also?

Thanks for fixing that!

Curt
-- 
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about.  No, sir.  Our model is the trapezoid!

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to