From 96d5773eb3c1380cafb83aded1ffe9da143828b7 Mon Sep 17 00:00:00 2001 From: Jani Taskinen Date: Sun, 31 May 2009 13:50:50 +0000 Subject: [PATCH] - No dots in error messages --- ext/json/json.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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(); } -- 2.50.1