tony2001 Thu Dec 1 09:03:51 2005 EDT
Modified files:
/php-src/ext/sockets sockets.c
Log:
MF51: fix #35490 (socket_sendto() unable to handle IPv6 addresses)
http://cvs.php.net/diff.php/php-src/ext/sockets/sockets.c?r1=1.172&r2=1.173&ty=u
Index: php-src/ext/sockets/sockets.c
diff -u php-src/ext/sockets/sockets.c:1.172 php-src/ext/sockets/sockets.c:1.173
--- php-src/ext/sockets/sockets.c:1.172 Thu Nov 3 10:01:31 2005
+++ php-src/ext/sockets/sockets.c Thu Dec 1 09:03:51 2005
@@ -19,7 +19,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: sockets.c,v 1.172 2005/11/03 15:01:31 mike Exp $ */
+/* $Id: sockets.c,v 1.173 2005/12/01 14:03:51 tony2001 Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -1480,7 +1480,7 @@
RETURN_FALSE;
}
- retval = sendto(php_sock->bsd_socket, buf, (len >
buf_len) ? buf_len : len, flags, (struct sockaddr *) &sin, sizeof(sin));
+ retval = sendto(php_sock->bsd_socket, buf, (len >
buf_len) ? buf_len : len, flags, (struct sockaddr *) &sin6, sizeof(sin6));
break;
#endif
default:
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php