summaryrefslogtreecommitdiffstats
path: root/memcached-pr2.patch
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2015-06-27 19:02:40 +0200
committerRemi Collet <fedora@famillecollet.com>2015-06-27 19:02:40 +0200
commit2123106ea4942c2f4b4ffccfaedc7307012f2f7d (patch)
tree1fba5bb9c5990caee323b7443e0adec38f6756aa /memcached-pr2.patch
parent07cd1892df87e596a980fdd2846fae8a8b5024a4 (diff)
php-pecl-memcached: patch for msgpack
Diffstat (limited to 'memcached-pr2.patch')
-rw-r--r--memcached-pr2.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/memcached-pr2.patch b/memcached-pr2.patch
new file mode 100644
index 0000000..08f0142
--- /dev/null
+++ b/memcached-pr2.patch
@@ -0,0 +1,22 @@
+From 650b67c64ca8ac8bd140492fd1078015cb8eaa0b Mon Sep 17 00:00:00 2001
+From: Remi Collet <remi@famillecollet.com>
+Date: Sat, 27 Jun 2015 18:28:31 +0200
+Subject: [PATCH] Update php_memcached.c
+
+---
+ php_memcached.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/php_memcached.c b/php_memcached.c
+index 1063b22..9195bfc 100644
+--- a/php_memcached.c
++++ b/php_memcached.c
+@@ -3119,7 +3119,7 @@ zend_bool s_serialize_value (enum memcached_serializer serializer, zval *value,
+ #ifdef HAVE_MEMCACHED_MSGPACK
+ case SERIALIZER_MSGPACK:
+ php_msgpack_serialize(buf, value);
+- if (!buf->c) {
++ if (!buf->s) {
+ php_error_docref(NULL, E_WARNING, "could not serialize value with msgpack");
+ return 0;
+ }