Lines Matching refs:depth
126 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
132 encoder.max_depth = depth; in php_json_encode_ex()
180 …(zval *return_value, const char *str, size_t str_len, zend_long options, zend_long depth) /* {{{ */ in php_json_decode_ex() argument
184 php_json_parser_init(&parser, return_value, str, str_len, (int)options, (int)depth); in php_json_decode_ex()
202 …_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
207 …php_json_parser_init_ex(&parser, &tmp, str, str_len, (int)options, (int)depth, parser_validate_met… in php_json_validate_ex()
226 zend_long depth = PHP_JSON_PARSER_DEFAULT_DEPTH; in PHP_FUNCTION() local
232 Z_PARAM_LONG(depth) in PHP_FUNCTION()
236 encoder.max_depth = (int)depth; in PHP_FUNCTION()
264 zend_long depth = PHP_JSON_PARSER_DEFAULT_DEPTH; in PHP_FUNCTION() local
271 Z_PARAM_LONG(depth) in PHP_FUNCTION()
288 if (depth <= 0) { in PHP_FUNCTION()
293 if (depth > INT_MAX) { in PHP_FUNCTION()
307 php_json_decode_ex(return_value, str, str_len, options, depth); in PHP_FUNCTION()
316 zend_long depth = PHP_JSON_PARSER_DEFAULT_DEPTH; in PHP_FUNCTION() local
322 Z_PARAM_LONG(depth) in PHP_FUNCTION()
339 if (depth <= 0) { in PHP_FUNCTION()
344 if (depth > INT_MAX) { in PHP_FUNCTION()
349 RETURN_BOOL(php_json_validate_ex(str, str_len, options, depth)); in PHP_FUNCTION()