|
|
|
@ -5219,8 +5219,10 @@ PHP_FUNCTION(call_user_method) |
|
|
|
SEPARATE_ZVAL(params[0]); |
|
|
|
convert_to_string(*params[0]); |
|
|
|
|
|
|
|
if (call_user_function_ex(EG(function_table), params[1], *params[0], &retval_ptr, arg_count-2, params+2, 0, NULL TSRMLS_CC) == SUCCESS && retval_ptr) { |
|
|
|
COPY_PZVAL_TO_ZVAL(*return_value, retval_ptr); |
|
|
|
if (call_user_function_ex(EG(function_table), params[1], *params[0], &retval_ptr, arg_count-2, params+2, 0, NULL TSRMLS_CC) == SUCCESS) { |
|
|
|
if (retval_ptr) { |
|
|
|
COPY_PZVAL_TO_ZVAL(*return_value, retval_ptr); |
|
|
|
} |
|
|
|
} else { |
|
|
|
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to call %s()", Z_STRVAL_PP(params[0])); |
|
|
|
} |
|
|
|
@ -5261,8 +5263,10 @@ PHP_FUNCTION(call_user_method_array) |
|
|
|
element++; |
|
|
|
} |
|
|
|
|
|
|
|
if (call_user_function_ex(EG(function_table), obj, *method_name, &retval_ptr, num_elems, method_args, 0, NULL TSRMLS_CC) == SUCCESS && retval_ptr) { |
|
|
|
COPY_PZVAL_TO_ZVAL(*return_value, retval_ptr); |
|
|
|
if (call_user_function_ex(EG(function_table), obj, *method_name, &retval_ptr, num_elems, method_args, 0, NULL TSRMLS_CC) == SUCCESS) { |
|
|
|
if (retval_ptr) { |
|
|
|
COPY_PZVAL_TO_ZVAL(*return_value, retval_ptr); |
|
|
|
} |
|
|
|
} else { |
|
|
|
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to call %s()", Z_STRVAL_PP(method_name)); |
|
|
|
} |
|
|
|
|