From: Jani Taskinen Date: Sun, 31 May 2009 13:50:50 +0000 (+0000) Subject: - No dots in error messages X-Git-Tag: php-5.4.0alpha1~191^2~3440 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=96d5773eb3c1380cafb83aded1ffe9da143828b7;p=php - No dots in error messages --- diff --git a/ext/json/json.c b/ext/json/json.c index 2fff23dae0..841ce25e55 100644 --- a/ext/json/json.c +++ b/ext/json/json.c @@ -456,7 +456,7 @@ static void json_encode_r(smart_str *buf, zval *val, int options TSRMLS_DC) /* { smart_str_appendl(buf, d, len); efree(d); } else { - zend_error(E_WARNING, "[json] (json_encode_r) double %.9g does not conform to the JSON spec, encoded as 0.", dbl); + zend_error(E_WARNING, "[json] (json_encode_r) double %.9g does not conform to the JSON spec, encoded as 0", dbl); smart_str_appendc(buf, '0'); } } @@ -473,7 +473,7 @@ static void json_encode_r(smart_str *buf, zval *val, int options TSRMLS_DC) /* { break; default: - zend_error(E_WARNING, "[json] (json_encode_r) type is unsupported, encoded as null."); + zend_error(E_WARNING, "[json] (json_encode_r) type is unsupported, encoded as null"); smart_str_appendl(buf, "null", 4); break; } @@ -543,7 +543,7 @@ static PHP_FUNCTION(json_decode) } if (depth <= 0) { - php_error_docref(NULL TSRMLS_CC, E_WARNING, "Depth must greater than zero."); + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Depth must greater than zero"); RETURN_NULL(); }