NYCPHP Meetup

NYPHP.org

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

Cliff Hirsch cliff at pinestream.com
Mon Nov 19 13:11:29 EST 2007


The php manual says:

³In recent versions of PHP you will get a warning saying that "Call-time
pass-by-reference" is deprecated when you use a & in foo(&$a);²

Why is this? Besides being ugly, difficult to understand and not very
elegant, is there any reason technical reason why this is deprecated?

Cliff
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20071119/a7da8325/attachment.html>


More information about the talk mailing list