Skip to content

Commit e77bd31

Browse files
committed
fix method name in JsonSerializable exception message
1 parent 118695a commit e77bd31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/json/json.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ static void json_encode_serializable_object(smart_str *buf, zval *val, int optio
511511
ZVAL_STRING(&fname, "jsonSerialize", 0);
512512

513513
if (FAILURE == call_user_function_ex(EG(function_table), &val, &fname, &retval, 0, NULL, 1, NULL TSRMLS_CC) || !retval) {
514-
zend_throw_exception_ex(NULL, 0 TSRMLS_CC, "Failed calling %s::serialize()", ce->name);
514+
zend_throw_exception_ex(NULL, 0 TSRMLS_CC, "Failed calling %s::jsonSerialize()", ce->name);
515515
smart_str_appendl(buf, "null", sizeof("null") - 1);
516516
return;
517517
}

0 commit comments

Comments
 (0)