From a1b225df47ac64656af0e82a09a188b4ba6724d3 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 18 Jul 2025 06:39:19 +0200 Subject: add fix for PHP 8.5.0alpha2 using patch from https://github.com/jbboehr/php-mustache/pull/69 re-license spec file to CECILL-2.1 --- 69.patch | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 69.patch (limited to '69.patch') diff --git a/69.patch b/69.patch new file mode 100644 index 0000000..6cbdffe --- /dev/null +++ b/69.patch @@ -0,0 +1,22 @@ +From b7dca6820a2e90b64fde3f0fe2af35f4cbffae6f Mon Sep 17 00:00:00 2001 +From: Remi Collet +Date: Fri, 18 Jul 2025 06:31:34 +0200 +Subject: [PATCH] drop zend_exception_get_default usage + +--- + mustache_exceptions.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/mustache_exceptions.cpp b/mustache_exceptions.cpp +index bae387c..6e90437 100644 +--- a/mustache_exceptions.cpp ++++ b/mustache_exceptions.cpp +@@ -18,7 +18,7 @@ zend_class_entry * MustacheParserException_ce_ptr; + PHP_MINIT_FUNCTION(mustache_exceptions) + { + try { +- zend_class_entry * exception_ce = zend_exception_get_default(); ++ zend_class_entry * exception_ce = zend_ce_exception; + + // MustacheException + zend_class_entry mustache_exception_ce; -- cgit