From c6104e71fbc6dbde60cc4593dba4ee3ea03d73cf Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sun, 25 Jun 2017 08:18:06 +0200 Subject: add patch for 7.2 --- 31.patch | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 31.patch (limited to '31.patch') diff --git a/31.patch b/31.patch new file mode 100644 index 0000000..b9e4f72 --- /dev/null +++ b/31.patch @@ -0,0 +1,25 @@ +From f08ca66aa96c75658ba1eb1e8918189f925553c1 Mon Sep 17 00:00:00 2001 +From: Remi Collet +Date: Sun, 25 Jun 2017 07:28:55 +0200 +Subject: [PATCH] IS_TYPE_IMMUTABLE is dropped in 7.2 + +--- + yaconf.c | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/yaconf.c b/yaconf.c +index 8faa0b6..55b6731 100644 +--- a/yaconf.c ++++ b/yaconf.c +@@ -92,7 +92,11 @@ static void php_yaconf_hash_init(zval *zv, size_t size) /* {{{ */ { + GC_FLAGS(ht) |= IS_ARRAY_IMMUTABLE; + GC_REFCOUNT(ht) = 2; + ZVAL_ARR(zv, ht); ++#if PHP_VERSION_ID < 70200 + Z_TYPE_FLAGS_P(zv) = IS_TYPE_IMMUTABLE; ++#else ++ Z_TYPE_FLAGS_P(zv) = IS_TYPE_COPYABLE; ++#endif + } + /* }}} */ + -- cgit