Home
last modified time | relevance | path

Searched refs:max_depth (Results 1 – 18 of 18) sorted by relevance

/PHP-8.0/ext/standard/tests/serialize/
H A Dmax_depth.phpt10 echo "Invalid max_depth:\n";
26 ['max_depth' => 128]
30 ['max_depth' => 128]
36 ['max_depth' => 128]
40 ['max_depth' => 128]
53 ['max_depth' => 256]
57 ['max_depth' => 256]
78 ['max_depth' => 256]
90 ['max_depth' => 256]
101 ['max_depth' => 128]
[all …]
/PHP-8.0/ext/json/
H A Dphp_json_parser.h57 int max_depth; member
67 int max_depth,
76 int max_depth);
H A Djson_parser.y36 if (parser->max_depth && parser->depth >= parser->max_depth) { \
293 int max_depth, in php_json_parser_init_ex() argument
299 parser->max_depth = max_depth; in php_json_parser_init_ex()
309 int max_depth) in php_json_parser_init() argument
317 max_depth, in php_json_parser_init()
H A Dphp_json_encoder.h27 int max_depth; member
H A Djson.c154 encoder.max_depth = depth; in php_json_encode_ex()
238 encoder.max_depth = (int)depth; in PHP_FUNCTION()
H A Djson_encoder.c229 if (encoder->depth > encoder->max_depth) { in php_json_encode_array()
/PHP-8.0/ext/spl/tests/
H A Diterator_021.phpt30 private $max_depth;
34 function __construct($it, $max_depth)
36 $this->max_depth = $max_depth;
80 $res = $this->getDepth() < $this->max_depth && $has;
H A Diterator_022.phpt30 private $max_depth;
34 function __construct($it, $max_depth)
36 $this->max_depth = $max_depth;
80 $res = $this->getDepth() < $this->max_depth && $has;
H A Diterator_034.phpt36 private $max_depth;
39 function __construct($it, $max_depth)
41 $this->max_depth = $max_depth;
79 $res = $this->getDepth() < $this->max_depth && $has;
H A Diterator_023.phpt30 private $max_depth;
34 function __construct($it, $max_depth)
36 $this->max_depth = $max_depth;
80 $res = $this->getDepth() < $this->max_depth && $has;
H A Dbug54281.phpt7 function __construct($it, $max_depth) { }
/PHP-8.0/ext/phar/tests/
H A Dphar_metadata_write3.phpt48 echo "Calling getMetadata with too low max_depth\n";
49 var_dump($phar->getMetadata(['max_depth' => 1]));
80 Calling getMetadata with too low max_depth
82 …: Maximum depth of 1 exceeded. The depth limit can be changed using the max_depth unserialize() op…
/PHP-8.0/ext/standard/
H A Dphp_var.h45 PHPAPI void php_var_unserialize_set_max_depth(php_unserialize_data_t d, zend_long max_depth);
H A Dvar_unserializer.re51 zend_long max_depth;
65 d->max_depth = BG(unserialize_max_depth);
97 PHPAPI void php_var_unserialize_set_max_depth(php_unserialize_data_t d, zend_long max_depth) {
98 d->max_depth = max_depth;
101 return d->max_depth;
452 if ((*var_hash)->max_depth > 0 && (*var_hash)->cur_depth >= (*var_hash)->max_depth) {
455 "The depth limit can be changed using the max_depth unserialize() option "
457 (*var_hash)->max_depth);
H A Dvar.c1194 zval *classes, *max_depth; in php_unserialize_with_options() local
1224 max_depth = zend_hash_str_find_deref(options, "max_depth", sizeof("max_depth") - 1); in php_unserialize_with_options()
1225 if (max_depth) { in php_unserialize_with_options()
1226 if (Z_TYPE_P(max_depth) != IS_LONG) { in php_unserialize_with_options()
1227 …ption \"max_depth\" must be of type int, %s given", function_name, zend_zval_type_name(max_depth)); in php_unserialize_with_options()
1230 if (Z_LVAL_P(max_depth) < 0) { in php_unserialize_with_options()
1235 php_var_unserialize_set_max_depth(var_hash, Z_LVAL_P(max_depth)); in php_unserialize_with_options()
/PHP-8.0/ext/spl/
H A Dspl_iterators.c95 int max_depth; member
273 if (object->max_depth == -1 || object->max_depth > object->level) { in spl_recursive_it_move_forward_ex()
555 intern->max_depth = -1; in spl_recursive_it_it_construct()
844 zend_long max_depth = -1; in PHP_METHOD() local
846 if (zend_parse_parameters(ZEND_NUM_ARGS(), "|l", &max_depth) == FAILURE) { in PHP_METHOD()
849 if (max_depth < -1) { in PHP_METHOD()
852 } else if (max_depth > INT_MAX) { in PHP_METHOD()
853 max_depth = INT_MAX; in PHP_METHOD()
856 object->max_depth = (int)max_depth; in PHP_METHOD()
868 if (object->max_depth == -1) { in PHP_METHOD()
[all …]
/PHP-8.0/
H A Dphp.ini-development301 ; overridden by the max_depth option on individual unserialize() calls.
H A Dphp.ini-production301 ; overridden by the max_depth option on individual unserialize() calls.

Completed in 59 milliseconds