Home
last modified time | relevance | path

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

/PHP-8.1/ext/standard/tests/serialize/
H A Dmax_depth.phpt14 echo "Invalid max_depth:\n";
30 ['max_depth' => 128]
34 ['max_depth' => 128]
40 ['max_depth' => 128]
44 ['max_depth' => 128]
57 ['max_depth' => 256]
61 ['max_depth' => 256]
82 ['max_depth' => 256]
94 ['max_depth' => 256]
105 ['max_depth' => 128]
[all …]
/PHP-8.1/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.c166 encoder.max_depth = depth; in php_json_encode_ex()
252 encoder.max_depth = (int)depth; in PHP_FUNCTION()
H A Djson_encoder.c179 if (encoder->depth > encoder->max_depth) { in php_json_encode_array()
285 if (encoder->depth > encoder->max_depth) { in php_json_encode_array()
/PHP-8.1/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.1/ext/phar/tests/
H A Dphar_metadata_write3.phpt46 echo "Calling getMetadata with too low max_depth\n";
47 var_dump($phar->getMetadata(['max_depth' => 1]));
78 Calling getMetadata with too low max_depth
80 …: Maximum depth of 1 exceeded. The depth limit can be changed using the max_depth unserialize() op…
/PHP-8.1/ext/standard/
H A Dvar_unserializer.re56 zend_long max_depth;
70 d->max_depth = BG(unserialize_max_depth);
102 PHPAPI void php_var_unserialize_set_max_depth(php_unserialize_data_t d, zend_long max_depth) {
103 d->max_depth = max_depth;
106 return d->max_depth;
471 if ((*var_hash)->max_depth > 0 && (*var_hash)->cur_depth >= (*var_hash)->max_depth) {
474 "The depth limit can be changed using the max_depth unserialize() option "
476 (*var_hash)->max_depth);
579 if ((*var_hash)->max_depth > 0 && (*var_hash)->cur_depth >= (*var_hash)->max_depth) {
582 "The depth limit can be changed using the max_depth unserialize() option "
[all …]
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.c1354 zval *classes, *max_depth; in php_unserialize_with_options() local
1384 max_depth = zend_hash_str_find_deref(options, "max_depth", sizeof("max_depth") - 1); in php_unserialize_with_options()
1385 if (max_depth) { in php_unserialize_with_options()
1386 if (Z_TYPE_P(max_depth) != IS_LONG) { in php_unserialize_with_options()
1387 …ption \"max_depth\" must be of type int, %s given", function_name, zend_zval_type_name(max_depth)); in php_unserialize_with_options()
1390 if (Z_LVAL_P(max_depth) < 0) { in php_unserialize_with_options()
1395 php_var_unserialize_set_max_depth(var_hash, Z_LVAL_P(max_depth)); in php_unserialize_with_options()
/PHP-8.1/ext/spl/
H A Dspl_iterators.c97 int max_depth; member
280 if (object->max_depth == -1 || object->max_depth > object->level) { in spl_recursive_it_move_forward_ex()
570 intern->max_depth = -1; in spl_recursive_it_it_construct()
859 zend_long max_depth = -1; in PHP_METHOD() local
861 if (zend_parse_parameters(ZEND_NUM_ARGS(), "|l", &max_depth) == FAILURE) { in PHP_METHOD()
864 if (max_depth < -1) { in PHP_METHOD()
867 } else if (max_depth > INT_MAX) { in PHP_METHOD()
868 max_depth = INT_MAX; in PHP_METHOD()
871 object->max_depth = (int)max_depth; in PHP_METHOD()
883 if (object->max_depth == -1) { in PHP_METHOD()
[all …]
/PHP-8.1/
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 90 milliseconds