From 27b3eca90b74939eac8b9c6b1c7ef001fa65aa6f Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 2 Sep 2020 10:02:38 +0200 Subject: add upstream patch for test suite add patch for PHP 8.0.0beta3 from https://github.com/igbinary/igbinary/pull/284 --- 284.patch | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 284.patch (limited to '284.patch') diff --git a/284.patch b/284.patch new file mode 100644 index 0000000..7462b9c --- /dev/null +++ b/284.patch @@ -0,0 +1,37 @@ +From 46e8fa27851693877c32d0dd1239789bf2a78865 Mon Sep 17 00:00:00 2001 +From: Remi Collet +Date: Wed, 2 Sep 2020 09:50:49 +0200 +Subject: [PATCH] fix for 8.0.0beta3 + +--- + src/php7/igbinary.c | 8 ++++++++ + 1 file changed, 8 insertions(+) + +diff --git a/src/php7/igbinary.c b/src/php7/igbinary.c +index 992867a..d62e8dd 100644 +--- a/src/php7/igbinary.c ++++ b/src/php7/igbinary.c +@@ -2751,7 +2751,11 @@ inline static int igbinary_unserialize_object(struct igbinary_unserialize_data * + break; + } + if (incomplete_class) { ++#if PHP_VERSION_ID >= 80000 ++ php_store_class_name(z, class_name); ++#else + php_store_class_name(z, ZSTR_VAL(class_name), ZSTR_LEN(class_name)); ++#endif + #if PHP_VERSION_ID >= 70400 + } else { + if (zend_hash_str_exists(&ce->function_table, "__unserialize", sizeof("__unserialize") - 1)) { +@@ -2802,7 +2806,11 @@ inline static int igbinary_unserialize_object(struct igbinary_unserialize_data * + } + + if (incomplete_class) { ++#if PHP_VERSION_ID >= 80000 ++ php_store_class_name(z, class_name); ++#else + php_store_class_name(z, ZSTR_VAL(class_name), ZSTR_LEN(class_name)); ++#endif + } + struct igbinary_value_ref *ref = &IGB_REF_VAL_2(igsd, ref_n); + if ((flags & WANT_REF) != 0) { -- cgit