Re: Question about socket ext. file descriptors
| From: | Lars Torben Wilson | Date: | Thu, 29 Mar 2001 22:34:35 +0000 |
| Subject: | Re: Question about socket ext. file descriptors | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-50305@lists.php.net to get a copy of this message | ||
Andi Gutmans writes:
> At 12:44 PM 3/29/2001 -0800, Lars Torben Wilson wrote:
>
> >Slightly different topic--is it a problem that call-time pass-by-ref
> >is being deprecated but several functions require it in order to work?
>
> It is possible. Functions which require their argument by reference should
> ask for it to be sent by reference and not expect the calling person to
> write foo(&$bar). The BY_REF_ALLOW is a remainder of PHP 3 and is obsolete
> with today's reference counting (I'm pretty sure about this but I just woke
> up so I might be saying BS :).
>
> Andi
OK, thanks. I keep getting bitten by functions which don't work
without calling them like foo(&$bar), but PHP complains about
that. 'Course I can always tell PHP to cope with it in php.ini, but
that seems more like ignoring the problem than fixing it. :)
Thanks for all the info,
Torben
--
+----------------------------------------------------------------+
|Torben Wilson <torben@php.net> Adcore Finland|
|http://www.coastnet.com/~torben http://www.adcore.com|
|Ph: 1.604.709.0506 torben@adcore.com|
+----------------------------------------------------------------+