RE: [PHP-CVS] Re: php4 / TODO
| From: | Harald Radi | Date: | Wed, 12 Jun 2002 07:25:04 +0000 |
| Subject: | RE: [PHP-CVS] Re: php4 / TODO | ||
| References: | 1 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-12323@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Markus Fischer [mailto:mfischer@guru.josefine.at]
> Sent: Wednesday, June 12, 2002 7:28 AM
> To: Harald Radi
> Cc: php-cvs@lists.php.net
> Subject: Re: [PHP-CVS] Re: php4 / TODO
>
>
> Morning,
>
> On Wed, Jun 12, 2002 at 01:15:14AM +0200, Harald Radi wrote :
> > "Markus Fischer" <mfischer@guru.josefine.at> schrieb im Newsbeitrag
> > news:<cvsmfischer1023784392@cvsserver>...
> > > - These things have been done already.
> > [..]
> > > - * Fix Zend shallow copy issues with objects and arrays.
> >
> > only for objects but not for arrays (afaik).
>
> You're right, I was too quick. But there's also the question
> "do we want to behave arrays like objects by default ?". I
> think having arrays being copied by assignments is good [tm]
> and explicitely havting to use is good [tm2] either.
i only was refering to the HOWTO :)
having other programming languages in mind it is quite surprising that
an array gets copied (in Java this is even the only way to pass
variables by reference), but iirc this was already discussed on the ZE2
list and the old behaviour will stay (copy instead of ref).
nevertheless there should be a note in the commit message otherwise one
could be misleaded in thinking it was implemented.
harald