Re: PHP 4.0 Bug #4875: array_merge() is unable to merge arrays with numeric keys
| From: | Andrei Zmievski | Date: | Wed, 07 Jun 2000 20:58:33 +0000 |
| Subject: | Re: PHP 4.0 Bug #4875: array_merge() is unable to merge arrays with numeric keys | ||
| References: | 1 2 3 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-20511@lists.php.net to get a copy of this message | ||
On Wed, 07 Jun 2000, Stig Venaas wrote:
> The problem is not with array_merge, but with arrays in general I think.
> It seems that a numeric string like "1" is treated as an index and not a
> key. Would be nice if there was a difference, but fixing it might break
> a lot of existing PHP code I guess.
Yes, the zend_hash_* functions use is_numeric() check to see if a string
might be a number
-Andrei
Windows 2000 is certified not to crash more than
once a day, so what is the bootup time, 24 hours?
-- Sam Liddicott