From 5c3e85a6c7e468a9352fddb93fe5db6c62820de1 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 4 May 2022 16:30:47 +0200 Subject: update to 1.0.3 fix build with PHP 7.1 using patch from https://github.com/wikimedia/php-excimer/pull/4 --- 4.patch | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 4.patch (limited to '4.patch') diff --git a/4.patch b/4.patch new file mode 100644 index 0000000..43cdfca --- /dev/null +++ b/4.patch @@ -0,0 +1,25 @@ +From b87b859aa7546942f85e20c05e3aefa797868164 Mon Sep 17 00:00:00 2001 +From: Remi Collet +Date: Wed, 4 May 2022 16:22:00 +0200 +Subject: [PATCH] fix arginfo for 7.1 + +--- + excimer.c | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/excimer.c b/excimer.c +index ac7e12f..fec499a 100644 +--- a/excimer.c ++++ b/excimer.c +@@ -285,7 +285,11 @@ ZEND_END_ARG_INFO() + ZEND_BEGIN_ARG_INFO(arginfo_ExcimerLog_formatCollapsed, 0) + ZEND_END_ARG_INFO() + ++#if PHP_VERSION_ID < 70200 ++ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO(arginfo_ExcimerLog_aggregateByFunction, IS_ARRAY, NULL, 0) ++#else + ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO(arginfo_ExcimerLog_aggregateByFunction, IS_ARRAY, 0) ++#endif + ZEND_END_ARG_INFO() + + ZEND_BEGIN_ARG_INFO(arginfo_ExcimerLog_getEventCount, 0) -- cgit