Home
last modified time | relevance | path

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

/php-src/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-src/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) { \
340 int max_depth, in php_json_parser_init_ex() argument
346 parser->max_depth = max_depth; in php_json_parser_init_ex()
356 int max_depth) in php_json_parser_init() argument
364 max_depth, in php_json_parser_init()
H A Dphp_json_encoder.h27 int max_depth; member
H A Djson.c134 encoder.max_depth = depth; in php_json_encode_ex()
238 encoder.max_depth = (int)depth; in PHP_FUNCTION()
H A Djson_encoder.c186 if (encoder->depth > encoder->max_depth) { in php_json_encode_array()
292 if (encoder->depth > encoder->max_depth) { in php_json_encode_array()
/php-src/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-src/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-src/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.c1329 zval *classes, *max_depth; in php_unserialize_with_options() local
1359 max_depth = zend_hash_str_find_deref(options, "max_depth", sizeof("max_depth") - 1); in php_unserialize_with_options()
1360 if (max_depth) { in php_unserialize_with_options()
1361 if (Z_TYPE_P(max_depth) != IS_LONG) { in php_unserialize_with_options()
1362 …tion \"max_depth\" must be of type int, %s given", function_name, zend_zval_value_name(max_depth)); in php_unserialize_with_options()
1365 if (Z_LVAL_P(max_depth) < 0) { in php_unserialize_with_options()
1370 php_var_unserialize_set_max_depth(var_hash, Z_LVAL_P(max_depth)); in php_unserialize_with_options()
/php-src/ext/spl/
H A Dspl_iterators.c85 int max_depth; member
314 if (object->max_depth == -1 || object->max_depth > object->level) { in spl_recursive_it_move_forward_ex()
604 intern->max_depth = -1; in spl_recursive_it_it_construct()
893 zend_long max_depth = -1; in PHP_METHOD() local
895 if (zend_parse_parameters(ZEND_NUM_ARGS(), "|l", &max_depth) == FAILURE) { in PHP_METHOD()
898 if (max_depth < -1) { in PHP_METHOD()
901 } else if (max_depth > INT_MAX) { in PHP_METHOD()
902 max_depth = INT_MAX; in PHP_METHOD()
905 object->max_depth = (int)max_depth; in PHP_METHOD()
917 if (object->max_depth == -1) { in PHP_METHOD()
[all …]
/php-src/
H A Dphp.ini-development311 ; overridden by the max_depth option on individual unserialize() calls.
H A Dphp.ini-production311 ; overridden by the max_depth option on individual unserialize() calls.

Completed in 43 milliseconds