cvs: php4 /ext/standard fsock.c

From: Date: Sat, 13 Jul 2002 09:26:36 +0000
Subject: cvs: php4 /ext/standard fsock.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-12819@lists.php.net to get a copy of this message
sander Sat Jul 13 05:26:36 2002 EDT Modified files: /php4/ext/standard fsock.c Log: Fixed win32 build Index: php4/ext/standard/fsock.c diff -u php4/ext/standard/fsock.c:1.97 php4/ext/standard/fsock.c:1.98 --- php4/ext/standard/fsock.c:1.97 Sat Jul 13 03:10:59 2002 +++ php4/ext/standard/fsock.c Sat Jul 13 05:26:36 2002 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: fsock.c,v 1.97 2002/07/13 07:10:59 sniper Exp $ */ +/* $Id: fsock.c,v 1.98 2002/07/13 09:26:36 sander Exp $ */ /* converted to PHP Streams and moved much code to main/network.c [wez] */ @@ -127,6 +127,9 @@ struct timeval tv; char *hashkey = NULL; php_stream *stream = NULL; +#ifdef PHP_WIN32 + int err; +#endif if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|lzzd", &host, &host_len, &port, &zerrno, &zerrstr, &timeout) == FAILURE) { RETURN_FALSE; @@ -194,12 +197,8 @@ stream = php_stream_sock_open_host(host, (unsigned short)port, socktype, (int)timeout, persistent); #ifdef PHP_WIN32 - { - int err; - - /* Preserve error */ - err = WSAGetLastError(); - } + /* Preserve error */ + err = WSAGetLastError(); #endif if (stream == NULL) {

« previous php.cvs (#12819) next »