From: Joe Orton Date: Fri, 4 Apr 2008 12:49:57 +0000 (+0000) Subject: Fixed bug #32979 (OpenSSL stream->fd casts broken in 64-bit build) X-Git-Tag: RELEASE_2_0_0b1~507 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8176b6e8f487ac1cdb28d4023000e373b7cb0a24;p=php Fixed bug #32979 (OpenSSL stream->fd casts broken in 64-bit build) (stotty at tvnet dot hu) --- diff --git a/ext/openssl/xp_ssl.c b/ext/openssl/xp_ssl.c index fb0c66449f..3523a5ee2b 100644 --- a/ext/openssl/xp_ssl.c +++ b/ext/openssl/xp_ssl.c @@ -727,7 +727,7 @@ static int php_openssl_sockop_cast(php_stream *stream, int castas, void **ret TS case PHP_STREAM_AS_FD_FOR_SELECT: if (ret) { - *ret = (void*)sslsock->s.socket; + *(int *)ret = sslsock->s.socket; } return SUCCESS; @@ -737,7 +737,7 @@ static int php_openssl_sockop_cast(php_stream *stream, int castas, void **ret TS return FAILURE; } if (ret) { - *ret = (void*)sslsock->s.socket; + *(int *)ret = sslsock->s.socket; } return SUCCESS; default: