blob: 142e232ad237f93c5daf3f961147da198dda0775 (
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
28
|
From a58289f27fa95a410e2d839911740e6a3f8bf765 Mon Sep 17 00:00:00 2001
From: Remi Collet <remi@remirepo.net>
Date: Wed, 9 Aug 2017 09:42:03 +0200
Subject: [PATCH] Fix #88 use correct type for variadic
---
src/php/parameters.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/php/parameters.h b/src/php/parameters.h
index 77dbfce..32518e3 100644
--- a/src/php/parameters.h
+++ b/src/php/parameters.h
@@ -51,12 +51,12 @@ PARSE_2("zl", &z, &l)
#define PARSE_VARIADIC_ZVAL() \
zval *argv = NULL; \
-zend_long argc = 0; \
+int argc = 0; \
PARSE_2("*", &argv, &argc)
#define PARSE_LONG_AND_VARIADIC_ZVAL(_l) \
zval *argv = NULL; \
-zend_long argc = 0; \
+int argc = 0; \
zend_long _l = 0; \
PARSE_3("l*", &_l, &argv, &argc)
|