> > Well, isn't it slower?
> 
> No, not really.

Ok.
 
> > The goal is to make getpeername() not seg-fault and core dump when
> > I only call it with 2 args. :)
> 
> What should the value of 'port' be by default, then?

I dunno.  If I call the function with:

        <? getpeername($fd, &$host); ?>

I guess it doesn't matter what the port *is* ... it just won't return it.
Maybe just put if statements around any of the code that references port?

- Colin




-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to