After calling uopz_set_return, calling a function using call_user_func works incorrectly. Specifically, the parameter that gets passed to the function is incorrect. Instead of the actual parameter getting passed , the name of the function gets passed as the parameter. For e.g. -
After calling uopz_set_return, calling a function using call_user_func works incorrectly. Specifically, the parameter that gets passed to the function is incorrect. Instead of the actual parameter getting passed , the name of the function gets passed as the parameter. For e.g. -
Output -
call_user_func_array doesn't have this problem (however, it calls the original function and not the replaced function. Is that expected?)
PHP version - 7.2.7 uopz version - 5.0.2