[dev] Re: Passing anonymous arrays by reference

Chuck Hagenbuch chuck at horde.org
Fri Mar 25 06:49:07 PST 2005


Quoting Jan Schneider <jan at horde.org>:

> Zitat von Chuck Hagenbuch <chuck at horde.org>:
>
>> Quoting John Morrissey <jwm at horde.net>:
>>
>>> I was working with FRAMEWORK_3 today and noticed that black/whitelisting
>>> individual messages didn't work because message.php is passing an anonymous
>>> array to IMP_Filter. I gather there isn't any way to pass anonymous arrays
>>> by reference; it this patch OK?
>>
>> The patch is fine, but looking at the code, I don't see any reason for
>> that array to be passed by reference - can anyone else?
>
> No. IMP::parseIndicesList() that is the final recipient of this array
> doesn't take it by reference anyway.

Okay, the by-reference hints are now gone. John, let me know if this 
leaves you any problems left here.

-chuck

-- 
"But she goes not abroad in search of monsters to destroy." - John 
Quincy Adams


More information about the dev mailing list