From 562c6fa1ce1e2ac7e3c9f3ba208f53914f95f8d0 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sat, 29 Dec 2012 09:20:53 +0100 Subject: php-pecl-memcache: add patch for https://bugs.php.net/59602 --- php-pecl-memcache-3.0.7-bug59602.patch | 13 +++++++++++++ php-pecl-memcache.spec | 18 ++++++++++++++---- 2 files changed, 27 insertions(+), 4 deletions(-) create mode 100644 php-pecl-memcache-3.0.7-bug59602.patch diff --git a/php-pecl-memcache-3.0.7-bug59602.patch b/php-pecl-memcache-3.0.7-bug59602.patch new file mode 100644 index 0000000..fd28fb3 --- /dev/null +++ b/php-pecl-memcache-3.0.7-bug59602.patch @@ -0,0 +1,13 @@ +--- pecl/memcache/branches/NON_BLOCKING_IO/memcache.c 2012/10/31 08:49:59 328201 ++++ pecl/memcache/branches/NON_BLOCKING_IO/memcache.c 2012/10/31 12:27:09 328202 +@@ -1836,7 +1836,9 @@ + request = mmc_pool_request(pool, MMC_PROTO_TCP, mmc_stats_handler, stats, NULL, NULL TSRMLS_CC); + pool->protocol->stats(request, type, slabid, limit); + +- mmc_pool_schedule(pool, pool->servers[i], request TSRMLS_CC); ++ if (mmc_pool_schedule(pool, pool->servers[i], request TSRMLS_CC) == MMC_OK) { ++ mmc_pool_run(pool TSRMLS_CC); ++ } + } + + /* execute all requests */ diff --git a/php-pecl-memcache.spec b/php-pecl-memcache.spec index 6fcfc5b..7b30382 100644 --- a/php-pecl-memcache.spec +++ b/php-pecl-memcache.spec @@ -5,7 +5,7 @@ Summary: Extension to work with the Memcached caching daemon Name: php-pecl-memcache Version: 3.0.7 -Release: 4%{?dist}.4 +Release: 4%{?dist}.5 License: PHP Group: Development/Languages URL: http://pecl.php.net/package/%{pecl_name} @@ -16,8 +16,13 @@ Source2: xml2changelog Source3: LICENSE # https://bugs.php.net/63142 -# http://svn.php.net/viewvc/pecl/memcache/branches/NON_BLOCKING_IO/memcache_pool.c?r1=327754&r2=327753&pathrev=327754 -Patch2: php-pecl-memcache-3.0.5-get-mem-corrupt.patch +# http://svn.php.net/viewvc?view=revision&revision=327754 +Patch1: %{name}-3.0.5-get-mem-corrupt.patch + +# https://bugs.php.net/59602 +# http://svn.php.net/viewvc?view=revision&revision=328202 +Patch2: %{name}-3.0.7-bug59602.patch + BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: php-devel php-pear, zlib-devel @@ -62,7 +67,8 @@ Memcache can be used as a PHP session handler. %setup -c -q pushd %{pecl_name}-%{version} -%patch2 -p1 -b .get-mem-corrupt.patch +%patch1 -p1 -b .get-mem-corrupt.patch +%patch2 -p4 -b .bug54602 # Chech version as upstream often forget to update this extver=$(sed -n '/#define PHP_MEMCACHE_VERSION/{s/.* "//;s/".*$//;p}' php_memcache.h) @@ -190,6 +196,10 @@ fi %changelog +* Fri Nov 30 2012 Remi Collet - 3.0.7-4.5 +- add patch for https://bugs.php.net/59602 + segfault in getExtendedStats + * Fri Nov 30 2012 Remi Collet - 3.0.7-4.1 - also provides php-memcache -- cgit