From 55ae6474b4371e9c3fc24d5c15d8ddbc488f4c8c Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 9 Aug 2017 09:55:29 +0200 Subject: patch for bigendian --- ds-bigendian.patch | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 ds-bigendian.patch (limited to 'ds-bigendian.patch') diff --git a/ds-bigendian.patch b/ds-bigendian.patch new file mode 100644 index 0000000..142e232 --- /dev/null +++ b/ds-bigendian.patch @@ -0,0 +1,28 @@ +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) + -- cgit