|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2001-02-02 14:45 UTC] mathieu@php.net
  [2001-02-02 14:46 UTC] mathieu@php.net
  [2001-02-02 15:26 UTC] mathieu@php.net
  [2001-02-02 15:57 UTC] cmv@php.net
  [2001-02-03 02:17 UTC] mathieu@php.net
  [2001-03-16 16:47 UTC] sniper@php.net
  [2001-04-16 05:24 UTC] jmoore@php.net
 | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 07:00:01 2025 UTC | 
The proto says: getpeername(int fd, string &addr[, int &port]) But if I only pass it the $addr, my script segfaults. i.e., this works: <? getpeername($socket, &$ip, &$port); ?> and this doesn't: <? getpeername($socket, &$ip ); ?> - Colin