blob: 088d6eb6d1519726cd5ac63a3af731903588dc92 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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;
}
/* }}} */
|