summaryrefslogtreecommitdiff
path: root/ext/standard/fsock.c
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2002-07-13 07:10:59 +0000
committerfoobar <sniper@php.net>2002-07-13 07:10:59 +0000
commitf059932711ba2755d86af4e8308166093e7aab78 (patch)
tree8af224460a80c8179e011ce149cd87c947cced8f /ext/standard/fsock.c
parentefd065ff782b0a6fdfaded6b0e53483447e57f90 (diff)
downloadphp-git-f059932711ba2755d86af4e8308166093e7aab78.tar.gz
nuke unused variable warning
Diffstat (limited to 'ext/standard/fsock.c')
-rw-r--r--ext/standard/fsock.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/ext/standard/fsock.c b/ext/standard/fsock.c
index 7b57267e2d..0f8646fb28 100644
--- a/ext/standard/fsock.c
+++ b/ext/standard/fsock.c
@@ -121,7 +121,6 @@ static void php_fsockopen_stream(INTERNAL_FUNCTION_PARAMETERS, int persistent)
char *host;
int host_len;
int port = -1;
- int err;
zval *zerrno = NULL, *zerrstr = NULL;
double timeout = 60;
unsigned long conv;
@@ -193,9 +192,14 @@ static void php_fsockopen_stream(INTERNAL_FUNCTION_PARAMETERS, int persistent)
else
#endif
stream = php_stream_sock_open_host(host, (unsigned short)port, socktype, (int)timeout, persistent);
+
#ifdef PHP_WIN32
- /* Preserve error */
- err = WSAGetLastError();
+ {
+ int err;
+
+ /* Preserve error */
+ err = WSAGetLastError();
+ }
#endif
if (stream == NULL) {