RE: [PEAR] QFC - Bug when storing the arrays in the container?
| From: | Mike Carter | Date: | Wed, 05 Nov 2003 14:43:30 +0000 |
| Subject: | RE: [PEAR] QFC - Bug when storing the arrays in the container? | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-8773@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Bertrand Mansion [mailto:bmansion@mamasam.com]
>
> <borz_off@cs.msu.su> wrote :
>
> > This looks like a problem with PHP's array_merge() function (it
> > insists on renumbering the numeric array keys), this was
> discussed in
> > the list before, I believe.
>
> That's correct. I suggest you use a letter or an underscore
> in front of your keys so they are considered as strings. This
> "feature" of array_merge() really sucks IMO, it just forces
> you to create your own array_merge alias, which is really
> slow, PHP apparently not being able to differentiate a string
> from an int when it comes to array keys.
The joys of a typeless language :-( I did use an underscore after Alexy
reminded me this morning about array_merge(). Everything worked fine after
that. That 'bug' nearly caused some very embarrasing output to be generated
for members logging in - phew!
Just off-hand, does anybody know if this has been logged as a "bug" for the
php developers to sort out? It's stupid.
Regards,
Mike C.
________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com
________________________________________________________________________