Re: [PHP-DEV] Re: isset and unset behaviour

2004-06-19 Thread Sara Golemon
> 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. > Sort of.Strings and Integers *ARE* the only truly valid indices for arrays. Other types are loosely allowed using some basic translatio

Re: [PHP-DEV] Re: isset and unset behaviour

2004-06-19 Thread Derick Rethans
On Sat, 19 Jun 2004, Curt Zirzow wrote: > 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. Just make sure to mention that they are converted to integers first :) Derick -- PHP Internals -

Re: [PHP-DEV] Re: isset and unset behaviour

2004-06-18 Thread Curt Zirzow
* 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

Re: [PHP-DEV] Re: isset and unset behaviour

2004-06-18 Thread Andi Gutmans
Yep, and thanks Sara for fixing it. At 11:34 AM 6/18/2004 -0700, Sara Golemon wrote: > 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

[PHP-DEV] Re: isset and unset behaviour

2004-06-18 Thread 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