summaryrefslogtreecommitdiff
path: root/ext/json/json.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/json/json.c')
-rw-r--r--ext/json/json.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/json/json.c b/ext/json/json.c
index 62d8523ecd..c335707cb3 100644
--- a/ext/json/json.c
+++ b/ext/json/json.c
@@ -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();
}