summaryrefslogtreecommitdiffstats
path: root/phk-pr3.patch
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2015-05-29 07:50:43 +0200
committerRemi Collet <fedora@famillecollet.com>2015-05-29 07:50:43 +0200
commitce0a66d06336a21699992119d6a4c5453341691a (patch)
tree344a42042fbb7fb55659b9a2aef5512aa3413563 /phk-pr3.patch
php-pecl-phk: build test for 3.0.0 - New Package
Diffstat (limited to 'phk-pr3.patch')
-rw-r--r--phk-pr3.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/phk-pr3.patch b/phk-pr3.patch
new file mode 100644
index 0000000..088d6eb
--- /dev/null
+++ b/phk-pr3.patch
@@ -0,0 +1,27 @@
+From 7d4794ab5b5097ea3b92bd432d64663488c2e66e Mon Sep 17 00:00:00 2001
+From: Remi Collet <fedora@famillecollet.com>
+Date: Thu, 28 May 2015 19:07:10 +0200
+Subject: [PATCH] fix zend_parse_parameters call
+
+---
+ PHK_Cache.c | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/PHK_Cache.c b/PHK_Cache.c
+index 69354d3..c975e76 100644
+--- a/PHK_Cache.c
++++ b/PHK_Cache.c
+@@ -141,9 +141,12 @@ static PHP_METHOD(PHK_Cache, cacheID)
+
+ static PHP_METHOD(PHK_Cache, setCacheMaxSize)
+ {
+- if (zend_parse_parameters(ZEND_NUM_ARGS()TSRMLS_CC, "l", &cache_maxsize)
++ long tmp;
++
++ if (zend_parse_parameters(ZEND_NUM_ARGS()TSRMLS_CC, "l", &tmp)
+ == FAILURE)
+ EXCEPTION_ABORT("Cannot parse parameters");
++ cache_maxsize = (int)tmp;
+ }
+
+ /* }}} */