mirror of
https://github.com/php/php-src.git
synced 2024-09-22 18:37:25 +00:00
Fix English in the error message emitted when json_decode() is called with
depth <= 0.
This commit is contained in:
parent
2b1e18f81b
commit
3c93eab5a3
@ -565,7 +565,7 @@ PHP_JSON_API void php_json_decode_ex(zval *return_value, char *str, int str_len,
|
||||
}
|
||||
|
||||
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 be greater than zero");
|
||||
efree(utf16);
|
||||
RETURN_NULL();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user