mirror of
https://github.com/php/php-src.git
synced 2024-11-24 18:34:21 +08:00
Fix English in the error message emitted when json_decode() is called with
depth <= 0.
This commit is contained in:
parent
4119b09a1a
commit
1f06a6a4e8
@ -505,7 +505,7 @@ PHP_JSON_API void php_json_decode(zval *return_value, char *str, int str_len, ze
|
||||
}
|
||||
|
||||
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