diff options
author | Jakub Zelenka <bukka@php.net> | 2014-11-25 20:36:41 +0000 |
---|---|---|
committer | Jakub Zelenka <bukka@php.net> | 2014-11-25 20:36:41 +0000 |
commit | a4e59c39a7390ddea47ab10e21722926845f3e10 (patch) | |
tree | 5887f7da2dd997642c54b84616bb2ad7516bd92f /ext/json/json.c | |
parent | e18dd67975d2c00974c8cbb8ccdf1b8093a43ed4 (diff) | |
download | php-git-a4e59c39a7390ddea47ab10e21722926845f3e10.tar.gz |
Add missing bits to php_json.h
Diffstat (limited to 'ext/json/json.c')
-rw-r--r-- | ext/json/json.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/json/json.c b/ext/json/json.c index d120aa9f32..8042f70d23 100644 --- a/ext/json/json.c +++ b/ext/json/json.c @@ -195,7 +195,7 @@ static PHP_FUNCTION(json_encode) zval *parameter; smart_str buf = {0}; zend_long options = 0; - zend_long depth = JSON_PARSER_DEFAULT_DEPTH; + zend_long depth = PHP_JSON_PARSER_DEFAULT_DEPTH; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z|ll", ¶meter, &options, &depth) == FAILURE) { return; @@ -224,7 +224,7 @@ static PHP_FUNCTION(json_decode) char *str; size_t str_len; zend_bool assoc = 0; /* return JS objects as PHP objects by default */ - zend_long depth = JSON_PARSER_DEFAULT_DEPTH; + zend_long depth = PHP_JSON_PARSER_DEFAULT_DEPTH; zend_long options = 0; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|bll", &str, &str_len, &assoc, &depth, &options) == FAILURE) { |