summaryrefslogtreecommitdiffstats
path: root/52.patch
blob: afaefbfe6267827369e5ab1292598e84ce3f62b0 (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
25
26
27
From 7ba54422a5f37fddf0088d3e3c0c82ec1640d220 Mon Sep 17 00:00:00 2001
From: Remi Collet <remi@remirepo.net>
Date: Thu, 6 Jun 2019 10:43:12 +0200
Subject: [PATCH 1/2] fix for 7.4

---
 yaconf.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/yaconf.c b/yaconf.c
index dea7652..99e1265 100644
--- a/yaconf.c
+++ b/yaconf.c
@@ -121,7 +121,11 @@ static void php_yaconf_hash_destroy(HashTable *ht) /* {{{ */ {
 	zend_string *key;
 	zval *element;
 
+#if PHP_VERSION_ID < 70400
 	if (((ht)->u.flags & HASH_FLAG_INITIALIZED)) {
+#else
+	if (HT_IS_INITIALIZED(ht)) {
+#endif
 		ZEND_HASH_FOREACH_STR_KEY_VAL(ht, key, element) {
 			if (key) {
 				free(key);