1From 8cf66c4b5dd657ca14552b27a42901db0a5e9280 Mon Sep 17 00:00:00 2001 2From: Herve Codina <herve.codina@bootlin.com> 3Date: Mon, 4 Oct 2021 17:13:45 +0200 4Subject: [PATCH] Fix compatibility with php8 - call_user_function_ex 5 6This patch fixes compatibility with php8 replacing 7call_user_function_ex by call_user_function. 8 9Upstream: https://github.com/derickr/pecl-dbus/pull/8 10Signed-off-by: Herve Codina <herve.codina@bootlin.com> 11--- 12 dbus.c | 4 ++-- 13 1 file changed, 2 insertions(+), 2 deletions(-) 14 15diff --git a/dbus.c b/dbus.c 16index a98e2ea..6fa9897 100644 17--- a/dbus.c 18+++ b/dbus.c 19@@ -1015,8 +1015,8 @@ php_dbus_do_method_call(php_dbus_obj *dbus, 20 method_args = safe_emalloc(sizeof(zval *), num_elems, 0); 21 } 22 23- if (call_user_function_ex(EG(function_table), object, &callback, &retval, 24- num_elems, method_args, 0, NULL) == SUCCESS) { 25+ if (call_user_function(EG(function_table), object, &callback, &retval, 26+ num_elems, method_args) == SUCCESS) { 27 if (!Z_ISUNDEF(retval)) { 28 reply = dbus_message_new_method_return(msg); 29 php_dbus_append_parameters(reply, &retval, NULL, 30-- 312.31.1 32 33