Skip to content

Commit

Permalink
Fix compatibility with php8 - call_user_function_ex
Browse files Browse the repository at this point in the history
This patch fixes compatibility with php8 replacing
call_user_function_ex by call_user_function.

Signed-off-by: Herve Codina <herve.codina@bootlin.com>
  • Loading branch information
hcodina authored and stefansaraev committed Oct 5, 2021
1 parent 7059503 commit 3be7919
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dbus.c
Expand Up @@ -1015,8 +1015,8 @@ php_dbus_do_method_call(php_dbus_obj *dbus,
method_args = safe_emalloc(sizeof(zval *), num_elems, 0);
}

if (call_user_function_ex(EG(function_table), object, &callback, &retval,
num_elems, method_args, 0, NULL) == SUCCESS) {
if (call_user_function(EG(function_table), object, &callback, &retval,
num_elems, method_args) == SUCCESS) {
if (!Z_ISUNDEF(retval)) {
reply = dbus_message_new_method_return(msg);
php_dbus_append_parameters(reply, &retval, NULL,
Expand Down

0 comments on commit 3be7919

Please sign in to comment.