NYCPHP Meetup

NYPHP.org

[nycphp-talk] upgrading to php5

Urb LeJeune urb at e-government.com
Thu May 18 17:48:19 EDT 2006


> >       I upgraded to PHP5 and the upgrade went smoothly. There is a
> > major difference with array_merge() in PHP5 if one of the arrays is null.
> > $Array1 = array_merge($Array2,$Array3);
> > If either $Array2 or Array3 is null $Array1 will be null even 
> though the other
> > array is loaded.
> >
> >       Is anyone aware of a listing of function containing potential upgrade
> > problems when upgrading to PHP5.
>
>That is the big one, outside of the obvious pieces (like, certain XML
>extensions are gone).

         To me this is a bug. If you want to merge two arrays and one is null,
why should the target be null? I would think the target array would be equal
to the non-null array in the parameter list.

Urb





More information about the talk mailing list