In php 5.3 the way arrays are handled have changed.
Example array:
<?php $a = array ('foo' => 1, 'bar' => 2, 'foo' => 3); ?>
use to over write 'foo' with the last one in the array to give:
array(
'foo' => 3,
'bar' => 2
)
now in 5.3 it returns
array(
'foo' => 1,
'bar' => 2
)
I am testing on a php v5.2.11 so i can not test this my self this example is from the php.net website: http://php.net/manual/en/language.types.array.php and search the page for 5.3
would the method of setting values via
<?php
$a['foo'] = 1;
$a['bar'] = 2;
$a['foo'] = 3;
?>
provide a backward compatible patch for this issue? are there any other things to watch out for when dealing with arrays in the new version of php?