summaryrefslogtreecommitdiff
path: root/ext/xmlrpc/xmlrpc-epi-php.c
diff options
context:
space:
mode:
authorc9s <yoan@maicoin.com>2019-03-10 15:16:04 +0800
committerNikita Popov <nikita.ppv@gmail.com>2019-03-11 10:00:39 +0100
commit9f6f6fe2199857ffc8eaab3f413c0fd18cca26f0 (patch)
treebae0dfb17cf3ce342e6e6c0f5f741cbfe4874334 /ext/xmlrpc/xmlrpc-epi-php.c
parentd9d253fa6bf8e89a48a3e4ce6a669c705564e254 (diff)
downloadphp-git-9f6f6fe2199857ffc8eaab3f413c0fd18cca26f0.tar.gz
Remove function_table var from the caller
function_table var is not used in call_user_function macro anymore hence replace the usage with NULL
Diffstat (limited to 'ext/xmlrpc/xmlrpc-epi-php.c')
-rw-r--r--ext/xmlrpc/xmlrpc-epi-php.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/xmlrpc/xmlrpc-epi-php.c b/ext/xmlrpc/xmlrpc-epi-php.c
index a5c9950a7a..6665829d14 100644
--- a/ext/xmlrpc/xmlrpc-epi-php.c
+++ b/ext/xmlrpc/xmlrpc-epi-php.c
@@ -894,7 +894,7 @@ static XMLRPC_VALUE php_xmlrpc_callback(XMLRPC_SERVER server, XMLRPC_REQUEST xRe
/* Use same C function for all methods */
/* php func prototype: function user_func($method_name, $xmlrpc_params, $user_params) */
- call_user_function(CG(function_table), NULL, &pData->php_function, &pData->return_data, 3, callback_params);
+ call_user_function(NULL, NULL, &pData->php_function, &pData->return_data, 3, callback_params);
pData->php_executed = 1;
@@ -920,7 +920,7 @@ static void php_xmlrpc_introspection_callback(XMLRPC_SERVER server, void* data)
ZEND_HASH_FOREACH_VAL(Z_ARRVAL(pData->server->introspection_map), php_function) {
if (zend_is_callable(php_function, 0, &php_function_name)) {
/* php func prototype: function string user_func($user_params) */
- if (call_user_function(CG(function_table), NULL, php_function, &retval, 1, callback_params) == SUCCESS) {
+ if (call_user_function(NULL, NULL, php_function, &retval, 1, callback_params) == SUCCESS) {
XMLRPC_VALUE xData;
STRUCT_XMLRPC_ERROR err = {0};