summaryrefslogtreecommitdiffstats
path: root/52.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2019-06-07 13:24:29 +0200
committerRemi Collet <remi@remirepo.net>2019-06-07 13:24:29 +0200
commit725214f8bcc634581eda7c94fab7502cc12cb88f (patch)
tree8fe4aec17efa2e54d9630dd27f8110f28e8682fc /52.patch
parentf2b2b4150df9487f0f91efcf3864462a2bfc88b7 (diff)
add patch for 7.4 from
+ https://github.com/laruence/yaconf/pull/52
Diffstat (limited to '52.patch')
-rw-r--r--52.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/52.patch b/52.patch
new file mode 100644
index 0000000..afaefbf
--- /dev/null
+++ b/52.patch
@@ -0,0 +1,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);
+
+