diff options
Diffstat (limited to 'phk-pr3.patch')
-rw-r--r-- | phk-pr3.patch | 27 |
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; + } + + /* }}} */ |