From: [EMAIL PROTECTED] Operating system: FreeBSD PHP version: 4.2.0 PHP Bug Type: Sockets related Bug description: Cannot bind() a socket to a specific port in FreeBSD
please see also bug #10830 this bug hasn't been fixed yet in php 4.2.0 could you fix it? i fixed it for myself changing the line 1001 in ext/sockets/sockets.c: retval = bind(php_sock->bsd_socket, (struct sockaddr *)sa, sizeof(sa_storage)); with this one: retval = bind(php_sock->bsd_socket, (struct sockaddr *)sa, sizeof(struct sockaddr)); it seems that the last parameter to bind is broken best regards Antonio -- Edit bug report at http://bugs.php.net/?id=17074&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=17074&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=17074&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=17074&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=17074&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=17074&r=support Expected behavior: http://bugs.php.net/fix.php?id=17074&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=17074&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=17074&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=17074&r=globals