From 0cf7f7a26ba8e00f97b2a48f087b723a424c9221 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sat, 7 Jul 2012 18:17:45 +0200 Subject: php-pecl-memcache: sync with rawhide --- php-pecl-memcache-3.0.6-fdcast.patch | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 php-pecl-memcache-3.0.6-fdcast.patch (limited to 'php-pecl-memcache-3.0.6-fdcast.patch') 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); + -- cgit