Home
last modified time | relevance | path

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

/PHP-7.4/ext/standard/tests/serialize/
H A Dmax_depth.phpt10 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 Dphp_json_parser.h59 int max_depth; member
69 int max_depth,
78 int max_depth);
H A Djson_parser.y37 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 Dphp_json_encoder.h29 int max_depth; member
H A Djson.c199 encoder.max_depth = depth; in php_json_encode_ex()
284 encoder.max_depth = (int)depth; in PHP_FUNCTION()
H A Djson_encoder.c231 if (encoder->depth > encoder->max_depth) { in php_json_encode_array()
/PHP-7.4/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) { }
H A Diterator_028.phpt110 string(33) "Parameter max_depth must be >= -1"
/PHP-7.4/ext/standard/
H A Dphp_var.h54 PHPAPI void php_var_unserialize_set_max_depth(php_unserialize_data_t d, zend_long max_depth);
H A Dvar_unserializer.re53 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 Dvar.c1227 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 Dspl_iterators.c105 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 DUPGRADING357 . A new 'max_depth' option for unserialize(), as well as an
H A Dphp.ini-development290 ; overridden by the max_depth option on individual unserialize() calls.
H A Dphp.ini-production290 ; overridden by the max_depth option on individual unserialize() calls.

Completed in 53 milliseconds