wez Sat Jul 31 06:49:10 2004 EDT
Modified files:
/php-src/main/streams xp_socket.c
Log:
Make sure this is initialized...
http://cvs.php.net/diff.php/php-src/main/streams/xp_socket.c?r1=1.23&r2=1.24&ty=u
Index: php-src/main/streams/xp_socket.c
diff -u php-src/main/streams/xp_socket.c:1.23 php-src/main/streams/xp_socket.c:1.24
--- php-src/main/streams/xp_socket.c:1.23 Mon Mar 8 18:11:45 2004
+++ php-src/main/streams/xp_socket.c Sat Jul 31 06:49:09 2004
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: xp_socket.c,v 1.23 2004/03/08 23:11:45 abies Exp $ */
+/* $Id: xp_socket.c,v 1.24 2004/07/31 10:49:09 wez Exp $ */
#include "php.h"
#include "ext/standard/file.h"
@@ -233,11 +233,13 @@
if (value == -1) {
if (sock->timeout.tv_sec == -1) {
tv.tv_sec = FG(default_socket_timeout);
+ tv.tv_usec = 0;
} else {
tv = sock->timeout;
}
} else {
tv.tv_sec = value;
+ tv.tv_usec = 0;
}
if (sock->socket == -1) {
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php