]> granicus.if.org Git - php/commitdiff
fix bug #50196
authorStanislav Malyshev <stas@php.net>
Sat, 19 Dec 2009 01:13:33 +0000 (01:13 +0000)
committerStanislav Malyshev <stas@php.net>
Sat, 19 Dec 2009 01:13:33 +0000 (01:13 +0000)
main/streams/xp_socket.c

index 1526422dbc4fa44ff6c6db3ee70298f3e91bf7af..15484257103efdc0a39c7852187ebe9f8ff72de6 100644 (file)
@@ -223,7 +223,11 @@ static int php_sockop_flush(php_stream *stream TSRMLS_DC)
 static int php_sockop_stat(php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC)
 {
        php_netstream_data_t *sock = (php_netstream_data_t*)stream->abstract;
+#if ZEND_WIN32
+       return 0;
+#else
        return fstat(sock->socket, &ssb->sb);
+#endif
 }
 
 static inline int sock_sendto(php_netstream_data_t *sock, char *buf, size_t buflen, int flags,