summaryrefslogtreecommitdiff
path: root/ext/json/json.c
diff options
context:
space:
mode:
authorPeter Cowburn <salathe@php.net>2011-04-30 12:57:23 +0000
committerPeter Cowburn <salathe@php.net>2011-04-30 12:57:23 +0000
commite77bd31f3fff6ca3f43d493ad83dadb25fe9e8a5 (patch)
tree4ed764b4be6249f1dbce9c620ed48f4386d529c5 /ext/json/json.c
parent118695a4ea44615b5d1927d2903e88b7b15fd33b (diff)
downloadphp-git-e77bd31f3fff6ca3f43d493ad83dadb25fe9e8a5.tar.gz
fix method name in JsonSerializable exception message
Diffstat (limited to 'ext/json/json.c')
-rw-r--r--ext/json/json.c2
1 files changed, 1 insertions, 1 deletions
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;
}