RE: [PHP-CVS] cvs: php-src(PHP_5_3) /main network.c
Does this mean you should be using WSASetLastError() on Windows? Andi -Original Message- From: Felipe Pena [mailto:fel...@php.net] Sent: Friday, January 02, 2009 1:43 PM To: php-cvs@lists.php.net Subject: [PHP-CVS] cvs: php-src(PHP_5_3) /main network.c felipeFri Jan 2 21:42:52 2009 UTC Modified files: (Branch: PHP_5_3) /php-src/main network.c Log: - MFH: Errr, rule nº 1: be portable :) http://cvs.php.net/viewvc.cgi/php- src/main/network.c?r1=1.118.2.2.2.6.2.12r2=1.118.2.2.2.6.2.13diff_format=u Index: php-src/main/network.c diff -u php-src/main/network.c:1.118.2.2.2.6.2.12 php- src/main/network.c:1.118.2.2.2.6.2.13 --- php-src/main/network.c:1.118.2.2.2.6.2.12 Fri Jan 2 21:28:28 2009 +++ php-src/main/network.cFri Jan 2 21:42:52 2009 @@ -17,7 +17,7 @@ +--+ */ -/* $Id: network.c,v 1.118.2.2.2.6.2.12 2009/01/02 21:28:28 felipe Exp $ */ +/* $Id: network.c,v 1.118.2.2.2.6.2.13 2009/01/02 21:42:52 felipe Exp $ */ /*#define DEBUG_MAIN_NETWORK 1*/ @@ -1147,7 +1147,9 @@ tv.tv_sec = timeout / 1000; tv.tv_usec = (timeout - (tv.tv_sec * 1000)) * 1000; } +#ifndef PHP_WIN32 errno = 0; +#endif n = select(max_fd + 1, rset, wset, eset, timeout = 0 ? tv : NULL); if (n = 0) { -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-CVS] cvs: php-src(PHP_5_3) /main network.c
Em Sex, 2009-01-02 às 14:34 -0800, Andi Gutmans escreveu: Does this mean you should be using WSASetLastError() on Windows? You are right! :) Andi -Original Message- From: Felipe Pena [mailto:fel...@php.net] Sent: Friday, January 02, 2009 1:43 PM To: php-cvs@lists.php.net Subject: [PHP-CVS] cvs: php-src(PHP_5_3) /main network.c felipe Fri Jan 2 21:42:52 2009 UTC Modified files: (Branch: PHP_5_3) /php-src/main network.c Log: - MFH: Errr, rule nº 1: be portable :) http://cvs.php.net/viewvc.cgi/php- src/main/network.c?r1=1.118.2.2.2.6.2.12r2=1.118.2.2.2.6.2.13diff_format=u Index: php-src/main/network.c diff -u php-src/main/network.c:1.118.2.2.2.6.2.12 php- src/main/network.c:1.118.2.2.2.6.2.13 --- php-src/main/network.c:1.118.2.2.2.6.2.12 Fri Jan 2 21:28:28 2009 +++ php-src/main/network.c Fri Jan 2 21:42:52 2009 @@ -17,7 +17,7 @@ +--+ */ -/* $Id: network.c,v 1.118.2.2.2.6.2.12 2009/01/02 21:28:28 felipe Exp $ */ +/* $Id: network.c,v 1.118.2.2.2.6.2.13 2009/01/02 21:42:52 felipe Exp $ */ /*#define DEBUG_MAIN_NETWORK 1*/ @@ -1147,7 +1147,9 @@ tv.tv_sec = timeout / 1000; tv.tv_usec = (timeout - (tv.tv_sec * 1000)) * 1000; } +#ifndef PHP_WIN32 errno = 0; +#endif n = select(max_fd + 1, rset, wset, eset, timeout = 0 ? tv : NULL); if (n = 0) { -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Regards, Felipe Pena -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php