Searched refs:max_depth (Results 1 – 18 of 18) sorted by relevance
/PHP-8.1/ext/standard/tests/serialize/ |
H A D | max_depth.phpt | 14 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 D | php_json_parser.h | 57 int max_depth; member 67 int max_depth, 76 int max_depth);
|
H A D | json_parser.y | 36 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 D | php_json_encoder.h | 27 int max_depth; member
|
H A D | json.c | 166 encoder.max_depth = depth; in php_json_encode_ex() 252 encoder.max_depth = (int)depth; in PHP_FUNCTION()
|
H A D | json_encoder.c | 179 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 D | iterator_021.phpt | 30 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 D | iterator_022.phpt | 30 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 D | iterator_034.phpt | 36 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 D | iterator_023.phpt | 30 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 D | bug54281.phpt | 7 function __construct($it, $max_depth) { }
|
/PHP-8.1/ext/phar/tests/ |
H A D | phar_metadata_write3.phpt | 46 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 D | var_unserializer.re | 56 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 D | php_var.h | 45 PHPAPI void php_var_unserialize_set_max_depth(php_unserialize_data_t d, zend_long max_depth);
|
H A D | var.c | 1354 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 D | spl_iterators.c | 97 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 D | php.ini-development | 301 ; overridden by the max_depth option on individual unserialize() calls.
|
H A D | php.ini-production | 301 ; overridden by the max_depth option on individual unserialize() calls.
|
Completed in 90 milliseconds