summaryrefslogtreecommitdiffstats
path: root/53.patch
blob: 576a39d4401290ee8c1aa49f40153070694a0f8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From b7e8e93b8fe5dab20757e23e5c33577e6a545304 Mon Sep 17 00:00:00 2001
From: Remi Collet <remi@remirepo.net>
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;
 }