ARG_INFO and by_ref for objects?

php.internals

Michael Wallner

20 years ago
Hi, as nobody was able to answer my question on IRC, I just drop it here: Is it useless (yet even counter-productive) to enable pass_by_ref in an ARG_INFO section for a function or method that expects an object? By "counter-productive" I mean that I'd need to actually pass an identifier for a variable. Thanks,
-- Michael - < mike(@)php.net >

Wez Furlong

20 years ago
Only use references when you need to be able to overwrite the variable. --Wez. On 9/15/05, Michael Wallner <mike@php.net> wrote:

Michael Wallner

20 years ago
Hi Wez Furlong, you wrote:
> Only use references when you need to be able to overwrite the variable.
Ok, and what about return_by_ref? Thanks,
-- Michael - < mike(@)php.net >