]> granicus.if.org Git - php/commitdiff
fix method name in JsonSerializable exception message
authorPeter Cowburn <salathe@php.net>
Sat, 30 Apr 2011 12:57:23 +0000 (12:57 +0000)
committerPeter Cowburn <salathe@php.net>
Sat, 30 Apr 2011 12:57:23 +0000 (12:57 +0000)
ext/json/json.c

index 8a942a8655e7edeaea03de40f8338f8b53673858..db3fad9871090acc576b1739e1e70a8bfdbd04de 100644 (file)
@@ -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;
     }