Searched refs:max_depth (Results 1 – 19 of 19) sorted by relevance
/PHP-7.4/ext/standard/tests/serialize/ |
H A D | max_depth.phpt | 10 echo "Invalid max_depth:\n"; 17 ['max_depth' => 128] 21 ['max_depth' => 128] 27 ['max_depth' => 128] 31 ['max_depth' => 128] 44 ['max_depth' => 256] 48 ['max_depth' => 256] 69 ['max_depth' => 256] 81 ['max_depth' => 256] 92 ['max_depth' => 128] [all …]
|
/PHP-7.4/ext/json/ |
H A D | php_json_parser.h | 59 int max_depth; member 69 int max_depth, 78 int max_depth);
|
H A D | json_parser.y | 37 if (parser->max_depth && parser->depth >= parser->max_depth) { \ 311 int max_depth, in php_json_parser_init_ex() argument 317 parser->max_depth = max_depth; in php_json_parser_init_ex() 327 int max_depth) in php_json_parser_init() argument 335 max_depth, in php_json_parser_init()
|
H A D | php_json_encoder.h | 29 int max_depth; member
|
H A D | json.c | 199 encoder.max_depth = depth; in php_json_encode_ex() 284 encoder.max_depth = (int)depth; in PHP_FUNCTION()
|
H A D | json_encoder.c | 231 if (encoder->depth > encoder->max_depth) { in php_json_encode_array()
|
/PHP-7.4/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) { }
|
H A D | iterator_028.phpt | 110 string(33) "Parameter max_depth must be >= -1"
|
/PHP-7.4/ext/standard/ |
H A D | php_var.h | 54 PHPAPI void php_var_unserialize_set_max_depth(php_unserialize_data_t d, zend_long max_depth);
|
H A D | var_unserializer.re | 53 zend_long max_depth; 67 d->max_depth = BG(unserialize_max_depth); 99 PHPAPI void php_var_unserialize_set_max_depth(php_unserialize_data_t d, zend_long max_depth) { 100 d->max_depth = max_depth; 103 return d->max_depth; 460 if ((*var_hash)->max_depth > 0 && (*var_hash)->cur_depth >= (*var_hash)->max_depth) { 463 "The depth limit can be changed using the max_depth unserialize() option " 465 (*var_hash)->max_depth);
|
H A D | var.c | 1227 zval *classes, *max_depth; in PHP_FUNCTION() local 1258 max_depth = zend_hash_str_find_deref(Z_ARRVAL_P(options), "max_depth", sizeof("max_depth") - 1); in PHP_FUNCTION() 1259 if (max_depth) { in PHP_FUNCTION() 1260 if (Z_TYPE_P(max_depth) != IS_LONG) { in PHP_FUNCTION() 1265 if (Z_LVAL_P(max_depth) < 0) { in PHP_FUNCTION() 1271 php_var_unserialize_set_max_depth(var_hash, Z_LVAL_P(max_depth)); in PHP_FUNCTION()
|
/PHP-7.4/ext/spl/ |
H A D | spl_iterators.c | 105 int max_depth; member 286 if (object->max_depth == -1 || object->max_depth > object->level) { in spl_recursive_it_move_forward_ex() 551 intern->max_depth = -1; in spl_recursive_it_it_construct() 854 zend_long max_depth = -1; in SPL_METHOD() local 859 if (max_depth < -1) { in SPL_METHOD() 862 } else if (max_depth > INT_MAX) { in SPL_METHOD() 863 max_depth = INT_MAX; in SPL_METHOD() 866 object->max_depth = (int)max_depth; in SPL_METHOD() 879 if (object->max_depth == -1) { in SPL_METHOD() 882 RETURN_LONG(object->max_depth); in SPL_METHOD() [all …]
|
/PHP-7.4/ |
H A D | UPGRADING | 357 . A new 'max_depth' option for unserialize(), as well as an
|
H A D | php.ini-development | 290 ; overridden by the max_depth option on individual unserialize() calls.
|
H A D | php.ini-production | 290 ; overridden by the max_depth option on individual unserialize() calls.
|
Completed in 53 milliseconds