Lines Matching refs:depth
148 PHP_JSON_API int php_json_encode_ex(smart_str *buf, zval *val, int options, zend_long depth) /* {{{… in php_json_encode_ex() argument
154 encoder.max_depth = depth; in php_json_encode_ex()
200 …(zval *return_value, const char *str, size_t str_len, zend_long options, zend_long depth) /* {{{ */ in php_json_decode_ex() argument
204 php_json_parser_init(&parser, return_value, str, str_len, (int)options, (int)depth); in php_json_decode_ex()
228 zend_long depth = PHP_JSON_PARSER_DEFAULT_DEPTH; in PHP_FUNCTION() local
234 Z_PARAM_LONG(depth) in PHP_FUNCTION()
238 encoder.max_depth = (int)depth; in PHP_FUNCTION()
270 zend_long depth = PHP_JSON_PARSER_DEFAULT_DEPTH; in PHP_FUNCTION() local
277 Z_PARAM_LONG(depth) in PHP_FUNCTION()
294 if (depth <= 0) { in PHP_FUNCTION()
299 if (depth > INT_MAX) { in PHP_FUNCTION()
313 php_json_decode_ex(return_value, str, str_len, options, depth); in PHP_FUNCTION()