diff options
author | twosee <twose@qq.com> | 2020-06-07 17:01:19 +0800 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-06-08 10:38:45 +0200 |
commit | 88355dd338835f7a59415ecb2e7e970658f3867f (patch) | |
tree | f203c58d7656c341273565e2d6fb84d89837bad2 /ext/json/json.c | |
parent | f6db43fec8da3d3c0c7def077e9f493ce6129c45 (diff) | |
download | php-git-88355dd338835f7a59415ecb2e7e970658f3867f.tar.gz |
Constify char * arguments of APIs
Closes GH-5676.
Diffstat (limited to 'ext/json/json.c')
-rw-r--r-- | ext/json/json.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/json/json.c b/ext/json/json.c index 68990f5ca4..1797c00c9c 100644 --- a/ext/json/json.c +++ b/ext/json/json.c @@ -195,7 +195,7 @@ static const char *php_json_get_error_msg(php_json_error_code error_code) /* {{{ } /* }}} */ -PHP_JSON_API int php_json_decode_ex(zval *return_value, char *str, size_t str_len, zend_long options, zend_long depth) /* {{{ */ +PHP_JSON_API int php_json_decode_ex(zval *return_value, const char *str, size_t str_len, zend_long options, zend_long depth) /* {{{ */ { php_json_parser parser; |