RE: [PHP-CVS] cvs: php4 /ext/sockets sockets.c
| From: | Colin Viebrock | Date: | Fri, 02 Feb 2001 21:29:01 +0000 |
| Subject: | RE: [PHP-CVS] cvs: php4 /ext/sockets sockets.c | ||
| References: | 1 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-3879@lists.php.net to get a copy of this message | ||
> > 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