[wp-hackers] Passing class methods by reference

scribu scribu at gmail.com
Wed Aug 4 16:10:12 UTC 2010


On Wed, Aug 4, 2010 at 7:06 PM, Dan Gayle <dangayle at gmail.com> wrote:

> I assume that passing a reference is an attempt to save memory, but in
> PHP 5 aren't objects automatically passed by reference? What is the
> benefit, if any, of this style of callback?
>

There is no benefit. It's just for PHP4 compatibility.


-- 
http://scribu.net


More information about the wp-hackers mailing list