> > 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]
- [PHP-CVS] cvs: php4 /ext/sockets sockets.c Rasmus Lerdorf
- [PHP-CVS] cvs: php4 /ext/sockets sockets.c Sterling Hughes
- [PHP-CVS] cvs: php4 /ext/sockets sockets.c Colin Viebrock
- Re: [PHP-CVS] cvs: php4 /ext/sockets sockets.c Andrei Zmievski
- RE: [PHP-CVS] cvs: php4 /ext/sockets sockets.... Colin Viebrock
- Re: [PHP-CVS] cvs: php4 /ext/sockets sock... Andrei Zmievski
- Re: [PHP-CVS] cvs: php4 /ext/sockets... Colin Viebrock
- Re: [PHP-CVS] cvs: php4 /ext/soc... Andrei Zmievski
- RE: [PHP-CVS] cvs: php4 /ext... Colin Viebrock
- Re: [PHP-CVS] cvs: php4 /ext... Andrei Zmievski
- RE: [PHP-CVS] cvs: php4 /ext... Colin Viebrock
- RE: [PHP-CVS] cvs: php4 /ext... Derick Rethans
- Re: [PHP-CVS] cvs: php4 /ext/sockets sock... Boian Bonev
- Re: [PHP-CVS] cvs: php4 /ext/sockets... Andi Gutmans
- [PHP-CVS] cvs: php4 /ext/sockets sockets.c Andrei Zmievski
- [PHP-CVS] cvs: php4 /ext/sockets sockets.c Jani Taskinen
- [PHP-CVS] cvs: php4 /ext/sockets sockets.c Jason Greene