From 1cd9f15a9c815b790208f803f9c3004012f915aa Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 26 Jun 2018 09:42:43 +0200 Subject: add patch for PHP 7.3 from https://github.com/jbboehr/php-handlebars/pull/53 --- 53.patch | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 53.patch (limited to '53.patch') diff --git a/53.patch b/53.patch new file mode 100644 index 0000000..576a39d --- /dev/null +++ b/53.patch @@ -0,0 +1,24 @@ +From b7e8e93b8fe5dab20757e23e5c33577e6a545304 Mon Sep 17 00:00:00 2001 +From: Remi Collet +Date: Tue, 26 Jun 2018 09:35:53 +0200 +Subject: [PATCH] switch to zend_register_class_alias, fix for PHP 7.3 + +--- + registry.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/registry.c b/registry.c +index 1749989..77da738 100644 +--- a/registry.c ++++ b/registry.c +@@ -31,8 +31,8 @@ PHP_MINIT_FUNCTION(handlebars_registry) + zend_class_implements(HandlebarsDefaultRegistry_ce_ptr TSRMLS_CC, 1, HandlebarsRegistry_ce_ptr); + + // Add aliases for old class names +- zend_register_class_alias_ex(ZEND_STRL("Handlebars\\Registry\\Registry"), HandlebarsRegistry_ce_ptr TSRMLS_CC); +- zend_register_class_alias_ex(ZEND_STRL("Handlebars\\Registry\\DefaultRegistry"), HandlebarsDefaultRegistry_ce_ptr TSRMLS_CC); ++ zend_register_class_alias("Handlebars\\Registry\\Registry", HandlebarsRegistry_ce_ptr TSRMLS_CC); ++ zend_register_class_alias("Handlebars\\Registry\\DefaultRegistry", HandlebarsDefaultRegistry_ce_ptr TSRMLS_CC); + + return SUCCESS; + } -- cgit