From e77bd31f3fff6ca3f43d493ad83dadb25fe9e8a5 Mon Sep 17 00:00:00 2001 From: Peter Cowburn Date: Sat, 30 Apr 2011 12:57:23 +0000 Subject: [PATCH] fix method name in JsonSerializable exception message --- ext/json/json.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/json/json.c b/ext/json/json.c index 8a942a8655..db3fad9871 100644 --- a/ext/json/json.c +++ b/ext/json/json.c @@ -511,7 +511,7 @@ static void json_encode_serializable_object(smart_str *buf, zval *val, int optio ZVAL_STRING(&fname, "jsonSerialize", 0); if (FAILURE == call_user_function_ex(EG(function_table), &val, &fname, &retval, 0, NULL, 1, NULL TSRMLS_CC) || !retval) { - zend_throw_exception_ex(NULL, 0 TSRMLS_CC, "Failed calling %s::serialize()", ce->name); + zend_throw_exception_ex(NULL, 0 TSRMLS_CC, "Failed calling %s::jsonSerialize()", ce->name); smart_str_appendl(buf, "null", sizeof("null") - 1); return; } -- 2.40.0