From 6b9f49ba4ddc37687ffd06b189d9ff0f4769ffe9 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 22 Jul 2020 11:52:20 +0200 Subject: rebuild for PHP 8.0.0alpha3 --- 7bed3124e797dcfcb9e2e6c2b30c3e289ac5eff4.patch | 41 ++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 7bed3124e797dcfcb9e2e6c2b30c3e289ac5eff4.patch (limited to '7bed3124e797dcfcb9e2e6c2b30c3e289ac5eff4.patch') diff --git a/7bed3124e797dcfcb9e2e6c2b30c3e289ac5eff4.patch b/7bed3124e797dcfcb9e2e6c2b30c3e289ac5eff4.patch new file mode 100644 index 0000000..7445fa5 --- /dev/null +++ b/7bed3124e797dcfcb9e2e6c2b30c3e289ac5eff4.patch @@ -0,0 +1,41 @@ +From 7bed3124e797dcfcb9e2e6c2b30c3e289ac5eff4 Mon Sep 17 00:00:00 2001 +From: Andy Postnikov +Date: Sat, 11 Jul 2020 22:51:04 +0300 +Subject: [PATCH] Replace usage call_user_function_ex() with + call_user_function() + +--- + src/php7/igbinary.c | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/src/php7/igbinary.c b/src/php7/igbinary.c +index c76b12a..775f585 100644 +--- a/src/php7/igbinary.c ++++ b/src/php7/igbinary.c +@@ -542,7 +542,7 @@ static int igbinary_finish_deferred_calls(struct igbinary_unserialize_data *igsd + zval retval; /* return value of __wakeup */ + zval rval; + ZVAL_OBJ(&rval, obj); +- if (UNEXPECTED(call_user_function_ex(CG(function_table), &rval, &wakeup_name, &retval, 0, 0, 1, NULL) == FAILURE || Z_ISUNDEF(retval))) { ++ if (UNEXPECTED(call_user_function(CG(function_table), &rval, &wakeup_name, &retval, 0, 0) == FAILURE || Z_ISUNDEF(retval))) { + delayed_call_failed = 1; + GC_ADD_FLAGS(obj, IS_OBJ_DESTRUCTOR_CALLED); + } +@@ -1727,7 +1727,7 @@ inline static int igbinary_serialize_object(struct igbinary_serialize_data *igsd + + ZVAL_UNDEF(&h); + /* calling z->__sleep */ +- r = call_user_function_ex(CG(function_table), z, &f, &h, 0, 0, 1, NULL); ++ r = call_user_function(CG(function_table), z, &f, &h, 0, 0); + + zval_dtor(&f); + +@@ -2693,7 +2693,7 @@ inline static int igbinary_unserialize_object(struct igbinary_unserialize_data * + /* FIXME: Release arg[0] */ + /* FIXME: Release class_name */ + ZVAL_STR_COPY(&args[0], class_name); +- if (call_user_function_ex(CG(function_table), NULL, &user_func, &retval, 1, args, 0, NULL) != SUCCESS) { ++ if (call_user_function(CG(function_table), NULL, &user_func, &retval, 1, args) != SUCCESS) { + php_error_docref(NULL, E_WARNING, "defined (%s) but not found", ZSTR_VAL(class_name)); + incomplete_class = 1; + ce = PHP_IC_ENTRY; -- cgit