From: Jani Taskinen Date: Sun, 31 May 2009 13:51:23 +0000 (+0000) Subject: MFH: no dots in errors X-Git-Tag: php-5.2.10RC2~51 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e636ed5789563eb4cfa83e2f7114b36519702408;p=php MFH: no dots in errors --- diff --git a/ext/json/json.c b/ext/json/json.c index 420889e99a..f9efc34217 100644 --- a/ext/json/json.c +++ b/ext/json/json.c @@ -371,7 +371,7 @@ PHPAPI void php_json_encode(smart_str *buf, zval *val TSRMLS_DC) /* {{{ */ smart_str_appendl(buf, d, len); efree(d); } else { - zend_error(E_WARNING, "[json] (php_json_encode) double %.9g does not conform to the JSON spec, encoded as 0.", dbl); + zend_error(E_WARNING, "[json] (php_json_encode) double %.9g does not conform to the JSON spec, encoded as 0", dbl); smart_str_appendc(buf, '0'); } } @@ -384,7 +384,7 @@ PHPAPI void php_json_encode(smart_str *buf, zval *val TSRMLS_DC) /* {{{ */ json_encode_array(buf, &val TSRMLS_CC); break; default: - zend_error(E_WARNING, "[json] (php_json_encode) type is unsupported, encoded as null."); + zend_error(E_WARNING, "[json] (php_json_encode) type is unsupported, encoded as null"); smart_str_appendl(buf, "null", 4); break; }