NYCPHP Meetup

NYPHP.org

[nycphp-talk] Why is pass-by-reference deprecated?

Ben Sgro (ProjectSkyLine) ben at projectskyline.com
Mon Nov 19 16:29:42 EST 2007


Hello Cliff,

Alright, makes sense.

Thanks.

----- Original Message ----- 
From: "Cliff Hirsch" <cliff at pinestream.com>
To: "NYPHP Talk" <talk at lists.nyphp.org>
Sent: Monday, November 19, 2007 4:21 PM
Subject: Re: [nycphp-talk] Why is pass-by-reference deprecated?


>> Hello,
>>
>> Sorry to hijack, but I started thinking about something I read
>> for optimization of php.
>>
>> They stated, if you know your not going to make changes
>> to a variable, to send it to a function as reference, as to NOT
>> make a copy of it...
>>
> Going back to some very, very old threads on here, I though that copies 
> were
> only made if the variable was changed. If the variable is not changed, I
> believe php is smart enough to reference, not copy, the variable.
>
> Clif
>
>
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php 




More information about the talk mailing list