diff options
author | Jakub Zelenka <bukka@php.net> | 2017-07-16 15:47:23 +0100 |
---|---|---|
committer | Jakub Zelenka <bukka@php.net> | 2017-07-16 15:47:23 +0100 |
commit | 9c5882265333a40dcd2fc2c2f7542f3f6df3cf65 (patch) | |
tree | 75206db9a75d625a28caed3a7d16d240c88dc105 /ext/json/php_json.h | |
parent | 0d0f7cde8c321ae841ba0f60f4377b72f98db637 (diff) | |
download | php-git-9c5882265333a40dcd2fc2c2f7542f3f6df3cf65.tar.gz |
Introduce internal php_json_encode_ex to allow extensions setting depth
Diffstat (limited to 'ext/json/php_json.h')
-rw-r--r-- | ext/json/php_json.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/json/php_json.h b/ext/json/php_json.h index e772d8d0c2..0a21dd24de 100644 --- a/ext/json/php_json.h +++ b/ext/json/php_json.h @@ -97,6 +97,7 @@ PHP_JSON_API ZEND_EXTERN_MODULE_GLOBALS(json) ZEND_TSRMLS_CACHE_EXTERN() #endif +PHP_JSON_API int php_json_encode_ex(smart_str *buf, zval *val, int options, zend_long depth); PHP_JSON_API int php_json_encode(smart_str *buf, zval *val, int options); PHP_JSON_API int php_json_decode_ex(zval *return_value, char *str, size_t str_len, zend_long options, zend_long depth); @@ -105,7 +106,6 @@ static inline int php_json_decode(zval *return_value, char *str, int str_len, ze return php_json_decode_ex(return_value, str, str_len, assoc ? PHP_JSON_OBJECT_AS_ARRAY : 0, depth); } - #endif /* PHP_JSON_H */ /* |