mirror of
https://github.com/php/php-src.git
synced 2024-09-23 19:07:26 +00:00
nuke unused variable warning
This commit is contained in:
parent
efd065ff78
commit
f059932711
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user