diff options
Diffstat (limited to 'php-pecl-memcache-3.0.6-fdcast.patch')
-rw-r--r-- | php-pecl-memcache-3.0.6-fdcast.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/php-pecl-memcache-3.0.6-fdcast.patch b/php-pecl-memcache-3.0.6-fdcast.patch new file mode 100644 index 0000000..50d3021 --- /dev/null +++ b/php-pecl-memcache-3.0.6-fdcast.patch @@ -0,0 +1,17 @@ + +Fix php_stream_cast() usage. + +--- memcache-3.0.6/memcache_pool.c.fdcast 2011-04-11 05:56:53.000000000 +0100 ++++ memcache-3.0.6/memcache_pool.c 2012-07-05 15:27:02.447511095 +0100 +@@ -746,9 +746,9 @@ static int mmc_server_connect(mmc_pool_t + } + + /* check connection and extract socket for select() purposes */ +- void *fd; ++ int fd; + +- if (!io->stream || php_stream_cast(io->stream, PHP_STREAM_AS_FD_FOR_SELECT, &fd, 1) != SUCCESS) { ++ if (!io->stream || php_stream_cast(io->stream, PHP_STREAM_AS_FD_FOR_SELECT, (void **)&fd, 1) != SUCCESS) { + mmc_server_seterror(mmc, errstr != NULL ? errstr : "Connection failed", errnum); + mmc_server_deactivate(pool, mmc TSRMLS_CC); + |