summaryrefslogtreecommitdiff
path: root/ext/standard/assert.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/standard/assert.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/standard/assert.c')
-rw-r--r--ext/standard/assert.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/assert.c b/ext/standard/assert.c
index e202c47b5d..eb1b59db74 100644
--- a/ext/standard/assert.c
+++ b/ext/standard/assert.c
@@ -227,12 +227,12 @@ PHP_FUNCTION(assert)
/* XXX do we want to check for error here? */
if (!description) {
- call_user_function(CG(function_table), NULL, &ASSERTG(callback), &retval, 3, args);
+ call_user_function(NULL, NULL, &ASSERTG(callback), &retval, 3, args);
zval_ptr_dtor(&(args[2]));
zval_ptr_dtor(&(args[0]));
} else {
ZVAL_STR(&args[3], zval_get_string(description));
- call_user_function(CG(function_table), NULL, &ASSERTG(callback), &retval, 4, args);
+ call_user_function(NULL, NULL, &ASSERTG(callback), &retval, 4, args);
zval_ptr_dtor(&(args[3]));
zval_ptr_dtor(&(args[2]));
zval_ptr_dtor(&(args[0]));