Lines Matching refs:depth
128 PHP_JSON_API zend_result php_json_encode_ex(smart_str *buf, zval *val, int options, zend_long depth… in php_json_encode_ex() argument
134 encoder.max_depth = depth; in php_json_encode_ex()
182 …(zval *return_value, const char *str, size_t str_len, zend_long options, zend_long depth) /* {{{ */ in php_json_decode_ex() argument
186 php_json_parser_init(&parser, return_value, str, str_len, (int)options, (int)depth); in php_json_decode_ex()
204 …_API bool php_json_validate_ex(const char *str, size_t str_len, zend_long options, zend_long depth) in php_json_validate_ex() argument
209 …php_json_parser_init_ex(&parser, &tmp, str, str_len, (int)options, (int)depth, parser_validate_met… in php_json_validate_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()
266 zend_long depth = PHP_JSON_PARSER_DEFAULT_DEPTH; in PHP_FUNCTION() local
273 Z_PARAM_LONG(depth) in PHP_FUNCTION()
290 if (depth <= 0) { in PHP_FUNCTION()
295 if (depth > INT_MAX) { in PHP_FUNCTION()
309 php_json_decode_ex(return_value, str, str_len, options, depth); in PHP_FUNCTION()
318 zend_long depth = PHP_JSON_PARSER_DEFAULT_DEPTH; in PHP_FUNCTION() local
324 Z_PARAM_LONG(depth) in PHP_FUNCTION()
341 if (depth <= 0) { in PHP_FUNCTION()
346 if (depth > INT_MAX) { in PHP_FUNCTION()
351 RETURN_BOOL(php_json_validate_ex(str, str_len, options, depth)); in PHP_FUNCTION()