felipe Sat Jan 3 00:06:59 2009 UTC
Modified files: (Branch: PHP_5_2)
/php-src/main network.c
Log:
- MFH: Windows part
http://cvs.php.net/viewvc.cgi/php-src/main/network.c?r1=1.118.2.2.2.15&r2=1.118.2.2.2.16&diff_format=u
Index: php-src/main/network.c
diff -u php-src/main/network.c:1.118.2.2.2.15
php-src/main/network.c:1.118.2.2.2.16
--- php-src/main/network.c:1.118.2.2.2.15 Fri Jan 2 21:43:07 2009
+++ php-src/main/network.c Sat Jan 3 00:06:59 2009
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: network.c,v 1.118.2.2.2.15 2009/01/02 21:43:07 felipe Exp $ */
+/* $Id: network.c,v 1.118.2.2.2.16 2009/01/03 00:06:59 felipe Exp $ */
/*#define DEBUG_MAIN_NETWORK 1*/
@@ -1141,7 +1141,10 @@
tv.tv_sec = timeout / 1000;
tv.tv_usec = (timeout - (tv.tv_sec * 1000)) * 1000;
}
-#ifndef PHP_WIN32
+/* Reseting/initializing */
+#ifdef PHP_WIN32
+ WSASetLastError(0);
+#else
errno = 0;
#endif
n = select(max_fd + 1, &rset, &wset, &eset, timeout >= 0 ? &tv : NULL);
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php