]> granicus.if.org Git - php/commitdiff
- No dots in error messages
authorJani Taskinen <jani@php.net>
Sun, 31 May 2009 13:50:50 +0000 (13:50 +0000)
committerJani Taskinen <jani@php.net>
Sun, 31 May 2009 13:50:50 +0000 (13:50 +0000)
ext/json/json.c

index 2fff23dae043dd4e01bc376b83f380c9fbc74495..841ce25e5563128747b9b9eb1b0939071ea2b7c6 100644 (file)
@@ -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();
        }