tony2001 Thu Dec 1 09:05:13 2005 EDT
Modified files: (Branch: PHP_5_0)
/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.165.2.5&r2=1.165.2.6&ty=u
Index: php-src/ext/sockets/sockets.c
diff -u php-src/ext/sockets/sockets.c:1.165.2.5
php-src/ext/sockets/sockets.c:1.165.2.6
--- php-src/ext/sockets/sockets.c:1.165.2.5 Fri Sep 23 06:01:06 2005
+++ php-src/ext/sockets/sockets.c Thu Dec 1 09:05:08 2005
@@ -19,7 +19,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: sockets.c,v 1.165.2.5 2005/09/23 10:01:06 hyanantha Exp $ */
+/* $Id: sockets.c,v 1.165.2.6 2005/12/01 14:05:08 tony2001 Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -1482,7 +1482,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