From: Stanislav Malyshev Date: Sat, 19 Dec 2009 01:13:33 +0000 (+0000) Subject: fix bug #50196 X-Git-Tag: php-5.3.2RC1~21 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0401c6ca2da4bfe6196ed20deec42548d31a9c2e;p=php fix bug #50196 --- diff --git a/main/streams/xp_socket.c b/main/streams/xp_socket.c index 1526422dbc..1548425710 100644 --- a/main/streams/xp_socket.c +++ b/main/streams/xp_socket.c @@ -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,