]> granicus.if.org Git - php/commitdiff
Fixed bug #70718 stream_select() when OpenSSL extension is loaded on PHP Win64
authorAnatol Belski <ab@php.net>
Mon, 26 Oct 2015 14:54:29 +0000 (15:54 +0100)
committerAnatol Belski <ab@php.net>
Mon, 26 Oct 2015 14:54:29 +0000 (15:54 +0100)
ext/openssl/xp_ssl.c

index e24d32cd45a8ff429e852eb6f1a8f4e7b437ac8f..ea0c6cb18b563170b52c19611979c75b6fb099ce 100644 (file)
@@ -2298,7 +2298,7 @@ static int php_openssl_sockop_cast(php_stream *stream, int castas, void **ret TS
                                                        : stream->chunk_size);
                                }
 
-                               *(int *)ret = sslsock->s.socket;
+                               *(php_socket_t *)ret = sslsock->s.socket;
                        }
                        return SUCCESS;