char *host;
int host_len;
int port = -1;
- int err;
zval *zerrno = NULL, *zerrstr = NULL;
double timeout = 60;
unsigned long conv;
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) {