From 0ca52cb424241b9542db58a940ba0b08679f50a2 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 29 Nov 2022 08:29:41 +0100 Subject: add upstream patch for https://github.com/jbboehr/php-handlebars/issues/77 --- upstream.patch | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 upstream.patch (limited to 'upstream.patch') diff --git a/upstream.patch b/upstream.patch new file mode 100644 index 0000000..d83e053 --- /dev/null +++ b/upstream.patch @@ -0,0 +1,23 @@ +From 685e73633f6d529870e2d9f3bfeb1ecda6b7d705 Mon Sep 17 00:00:00 2001 +From: John Boehr +Date: Mon, 28 Nov 2022 21:16:37 -0800 +Subject: [PATCH] Fix AST failures on PHP 8.1+ + +Resolves #77 +--- + src/compiler.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/compiler.c b/src/compiler.c +index 1da0de7..53eb730 100644 +--- a/src/compiler.c ++++ b/src/compiler.c +@@ -241,7 +241,7 @@ static void php_handlebars_compile(INTERNAL_FUNCTION_PARAMETERS, short print) + jmp_buf buf; + unsigned long flags; + +- ZEND_PARSE_PARAMETERS_START(1, 3) ++ ZEND_PARSE_PARAMETERS_START(1, 2) + Z_PARAM_STR(tmpl) + Z_PARAM_OPTIONAL + Z_PARAM_ZVAL(options) -- cgit