From a58289f27fa95a410e2d839911740e6a3f8bf765 Mon Sep 17 00:00:00 2001 From: Remi Collet 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)