]> granicus.if.org Git - php/commitdiff
MFH: no dots in errors
authorJani Taskinen <jani@php.net>
Sun, 31 May 2009 13:51:08 +0000 (13:51 +0000)
committerJani Taskinen <jani@php.net>
Sun, 31 May 2009 13:51:08 +0000 (13:51 +0000)
ext/json/json.c

index 62d8523ecd5bae891fb2411a69d39e68326343de..c335707cb34a49c282c0e1a869f988e0b08e1a7e 100644 (file)
@@ -442,7 +442,7 @@ PHPAPI void php_json_encode(smart_str *buf, zval *val, int options 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');
                                }
                        }
@@ -458,7 +458,7 @@ PHPAPI void php_json_encode(smart_str *buf, zval *val, int options TSRMLS_DC) /*
                        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;
        }
@@ -485,7 +485,7 @@ PHPAPI void php_json_decode(zval *return_value, char *str, int str_len, zend_boo
        }
 
        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();
        }