Edit report at http://bugs.php.net/bug.php?id=52771&edit=1

 ID:                 52771
 Updated by:         ras...@php.net
 Reported by:        mpchanzy at yahoo dot ca
 Summary:            array(key => value) incorrect behaviour when
                     key="join"
-Status:             Closed
+Status:             Bogus
 Type:               Bug
 Package:            Unknown/Other Function
 Operating System:   windows xp
 PHP Version:        Irrelevant
 Block user comment: N



Previous Comments:
------------------------------------------------------------------------
[2010-09-03 19:16:17] mpchanzy at yahoo dot ca

sorry it's not a bug.

For some reason I thought key=>value had to be unique...I've been
working too much.

------------------------------------------------------------------------
[2010-09-03 19:09:32] mpchanzy at yahoo dot ca

Description:
------------
I didn't find information on this bug online and couldn't update my
version.

I have php 5.2.6 (installed with wampserver).



The bug is easy to reproduce so I thought I should just let you know as
it may be related to other bugs that interpret the key value instead of
reading it as a string in a 2D-array.



$params[] = array ("join" => "a", "join" => "b");
echo($params[0]);echo($params[0]);

returns "b" instead of "a"  

It seems as though when the key="join", previous entries of the array
are deleted. 





Test script:
---------------
$params[] = array ("join" => "a", "join" => "b");

echo($params[0]);



Expected result:
----------------
I should be getting "a" 



Actual result:
--------------
I get "b"


------------------------------------------------------------------------



-- 
Edit this bug report at http://bugs.php.net/bug.php?id=52771&edit=1

Reply via email to