diff options
author | Dmitry Stogov <dmitry@zend.com> | 2018-05-29 17:58:06 +0300 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2018-05-29 17:58:06 +0300 |
commit | d90c6f2443d3c8b4e1e83b3e0fbfc58d1fe5e84f (patch) | |
tree | b651c9cea24d5fd0c82796e498a46f1b96b40e4d /ext/json/json_encoder.c | |
parent | 44be0fa67b46506353c3dd27d97801bd0eddbb00 (diff) | |
download | php-git-d90c6f2443d3c8b4e1e83b3e0fbfc58d1fe5e84f.tar.gz |
Removed useless zval_ptr_dtor()
Diffstat (limited to 'ext/json/json_encoder.c')
-rw-r--r-- | ext/json/json_encoder.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/json/json_encoder.c b/ext/json/json_encoder.c index f28bfbd4e4..b3d0b57a7e 100644 --- a/ext/json/json_encoder.c +++ b/ext/json/json_encoder.c @@ -462,7 +462,7 @@ static int php_json_encode_serializable_object(smart_str *buf, zval *val, int op ZVAL_STRING(&fname, "jsonSerialize"); - if (FAILURE == call_user_function_ex(EG(function_table), val, &fname, &retval, 0, NULL, 1, NULL) || Z_TYPE(retval) == IS_UNDEF) { + if (FAILURE == call_user_function(EG(function_table), val, &fname, &retval, 0, NULL) || Z_TYPE(retval) == IS_UNDEF) { if (!EG(exception)) { zend_throw_exception_ex(NULL, 0, "Failed calling %s::jsonSerialize()", ZSTR_VAL(ce->name)); } |