From 7ba54422a5f37fddf0088d3e3c0c82ec1640d220 Mon Sep 17 00:00:00 2001 From: Remi Collet 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);