]> granicus.if.org Git - php/commitdiff
Fixed bug #32979 (OpenSSL stream->fd casts broken in 64-bit build)
authorJoe Orton <jorton@php.net>
Fri, 4 Apr 2008 12:49:57 +0000 (12:49 +0000)
committerJoe Orton <jorton@php.net>
Fri, 4 Apr 2008 12:49:57 +0000 (12:49 +0000)
 (stotty at tvnet dot hu)

ext/openssl/xp_ssl.c

index fb0c66449f74bde2fe1fdb3b6de4ee06429fff23..3523a5ee2b989e04e36bb07c9feb89407a0aa7bb 100644 (file)
@@ -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: