diff --git a/ext/openssl/xp_ssl.c b/ext/openssl/xp_ssl.c index e24d32cd45a..ea0c6cb18b5 100644 --- a/ext/openssl/xp_ssl.c +++ b/ext/openssl/xp_ssl.c @@ -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;