From: Peter Cowburn Date: Sat, 30 Apr 2011 12:57:23 +0000 (+0000) Subject: fix method name in JsonSerializable exception message X-Git-Tag: php-5.4.0alpha1~191^2~44 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e77bd31f3fff6ca3f43d493ad83dadb25fe9e8a5;p=php fix method name in JsonSerializable exception message --- 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; }