Home
last modified time | relevance | path

Searched refs:depth (Results 1 – 25 of 48) sorted by relevance

12

/PHP-8.1/sapi/phpdbg/
H A Dphpdbg_btree.c34 tree->depth = depth; in phpdbg_btree_init()
42 int i = tree->depth - 1; in phpdbg_btree_find()
69 int i = tree->depth - 1, last_superior_i = -1; in phpdbg_btree_find_closest()
89 i = tree->depth - 1; in phpdbg_btree_find_closest()
145 int i = tree->depth - 1; in phpdbg_btree_insert_or_update()
180 int i = tree->depth; in phpdbg_btree_delete()
229 while (depth--) { in phpdbg_btree_clean_recursive()
249 if (depth--) { in phpdbg_btree_branch_dump()
250 phpdbg_btree_branch_dump(branch->branches[0], depth); in phpdbg_btree_branch_dump()
251 phpdbg_btree_branch_dump(branch->branches[1], depth); in phpdbg_btree_branch_dump()
[all …]
H A Dphpdbg_btree.h37 zend_ulong depth; member
48 void phpdbg_btree_init(phpdbg_btree *tree, zend_ulong depth);
67 void phpdbg_btree_branch_dump(phpdbg_btree_branch *branch, zend_ulong depth);
/PHP-8.1/ext/opcache/tests/jit/
H A Dbug80447.phpt13 function createTree($depth) {
14 if (!$depth) {
17 $depth--;
20 createTree($depth),
21 createTree($depth)
H A Dreg_alloc_004.phpt15 function createTree($depth) {
16 if (!$depth) {
19 $depth--;
20 [createTree($d), createTree($depth)]();
/PHP-8.1/ext/standard/tests/serialize/
H A Dmax_depth.phpt10 function create_nested_data($depth, $prefix, $suffix, $inner = 'i:0;') {
11 return str_repeat($prefix, $depth) . $inner . str_repeat($suffix, $depth);
53 // But an explicitly specified depth still takes precedence
79 echo "Nested unserialize combined depth limit:\n";
90 // If depth limit is overridden, the depth should be counted
102 echo "Nested unserialize overridden depth limit:\n";
116 Warning: unserialize(): Maximum depth of 128 exceeded. The depth limit can be changed using the max…
123 Warning: unserialize(): Maximum depth of 128 exceeded. The depth limit can be changed using the max…
130 Warning: unserialize(): Maximum depth of 128 exceeded. The depth limit can be changed using the max…
143 Nested unserialize combined depth limit:
[all …]
H A Dbug78438.phpt21 function createTree ($width, $depth) {
26 for ($level=1; $level<$depth; $level++) {
50 foreach (range(1, 8) as $depth) {
51 $tree = createTree($width, $depth);
53 echo "Testcase tree $width x $depth".PHP_EOL;
62 $expectedSize = ($width**$depth - 1)/($width-1);
/PHP-8.1/ext/json/
H A Djson.c160 PHP_JSON_API int php_json_encode_ex(smart_str *buf, zval *val, int options, zend_long depth) /* {{{… in php_json_encode_ex() argument
166 encoder.max_depth = depth; in php_json_encode_ex()
218 php_json_parser_init(&parser, return_value, str, str_len, (int)options, (int)depth); in php_json_decode_ex()
242 zend_long depth = PHP_JSON_PARSER_DEFAULT_DEPTH; in PHP_FUNCTION() local
248 Z_PARAM_LONG(depth) in PHP_FUNCTION()
252 encoder.max_depth = (int)depth; in PHP_FUNCTION()
284 zend_long depth = PHP_JSON_PARSER_DEFAULT_DEPTH; in PHP_FUNCTION() local
291 Z_PARAM_LONG(depth) in PHP_FUNCTION()
308 if (depth <= 0) { in PHP_FUNCTION()
313 if (depth > INT_MAX) { in PHP_FUNCTION()
[all …]
H A Dphp_json.h102 PHP_JSON_API int php_json_encode_ex(smart_str *buf, zval *val, int options, zend_long depth);
104 …decode_ex(zval *return_value, const char *str, size_t str_len, zend_long options, zend_long depth);
106 … int php_json_decode(zval *return_value, const char *str, int str_len, bool assoc, zend_long depth) in php_json_decode() argument
108 return php_json_decode_ex(return_value, str, str_len, assoc ? PHP_JSON_OBJECT_AS_ARRAY : 0, depth); in php_json_decode()
H A Djson.stub.php6 function json_encode(mixed $value, int $flags = 0, int $depth = 512): string|false {} argument
8 function json_decode(string $json, ?bool $associative = null, int $depth = 512, int $flags = 0): mi… argument
H A Djson_arginfo.h7 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, depth, IS_LONG, 0, "512")
13 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, depth, IS_LONG, 0, "512")
H A Djson_parser.y34 #define PHP_JSON_DEPTH_DEC --parser->depth
36 if (parser->max_depth && parser->depth >= parser->max_depth) { \
40 ++parser->depth
298 parser->depth = 1; in php_json_parser_init_ex()
H A Dphp_json_encoder.h26 int depth; member
H A Djson_encoder.c61 for (i = 0; i < encoder->depth; ++i) { in php_json_pretty_print_indent()
135 ++encoder->depth; in php_json_encode_array()
179 if (encoder->depth > encoder->max_depth) { in php_json_encode_array()
185 --encoder->depth; in php_json_encode_array()
213 ++encoder->depth; in php_json_encode_array()
285 if (encoder->depth > encoder->max_depth) { in php_json_encode_array()
292 --encoder->depth; in php_json_encode_array()
/PHP-8.1/ext/json/tests/
H A Dbug81532.phpt2 Bug #81532: Change of $depth behaviour in json_encode() on PHP 8.1
6 // depth 1
9 // depth 2
13 // depth 3
H A Djson_decode_error.phpt7 echo "\n-- Testing json_decode() function with depth below 0 --\n";
19 -- Testing json_decode() function with depth below 0 --
20 json_decode(): Argument #3 ($depth) must be greater than 0
H A Dbug72787.phpt16 json_decode(): Argument #3 ($depth) must be less than %d
/PHP-8.1/Zend/
H A Dzend_signal.h55 int depth; member
79 # define ZEND_SIGNAL_BLOCK_INTERRUPTIONS() if (EXPECTED(zend_signal_globals_id)) { SIGG(depth)++; }
80 …INTERRUPTIONS() if (EXPECTED(zend_signal_globals_id) && UNEXPECTED(((SIGG(depth)--) == SIGG(blocke…
82 # define ZEND_SIGNAL_BLOCK_INTERRUPTIONS() SIGG(depth)++;
83 # define ZEND_SIGNAL_UNBLOCK_INTERRUPTIONS() if (((SIGG(depth)--) == SIGG(blocked))) { zend_signal…
/PHP-8.1/ext/session/
H A Dmod_files.sh21 depth="$2"
60 echo "Creating session path in $directory with a depth of $depth for session.sid_bits_per_character…
65 bash $0 $newpath `expr $depth - 1` $bitsperchar recurse
H A Dmod_files.bat9 ECHO Usage %0 ^<basedir^> ^<depth^> ^[^hash_bits^]
12 ECHO ^<depth^> is the number of levels defined in session.save_path
52 ECHO ERROR: Invalid depth : %2
/PHP-8.1/ext/standard/tests/strings/
H A Dsscanf_basic3.phpt13 list($part, $length, $width, $depth) = sscanf($str, $format);
14 var_dump($part, $length, $width, $depth);
18 $res = sscanf($str, $format, $part, $length, $width, $depth);
19 var_dump($res, $part, $length, $width, $depth);
/PHP-8.1/ext/gd/libgd/
H A Dgd_bmp.c477 if (info->depth >= 16) { in gdImageCreateFromBmpCtx()
489 switch (info->depth) { in gdImageCreateFromBmpCtx()
620 info->numcolors = 1 << info->depth; in bmp_read_os2_v1_info()
684 if (info->depth == 24) { in bmp_read_direct()
693 if (info->depth != 8) { in bmp_read_direct()
699 if (info->depth != 4) { in bmp_read_direct()
734 if (info->depth == 16) { in bmp_read_direct()
743 } else if (info->depth == 24) { in bmp_read_direct()
1025 int pixels_per_byte = 8 / info->depth; in bmp_read_rle()
1040 …index = (rle_data & (((1 << info->depth) - 1) << (8 - (j * info->depth)))) >> (8 - (j * info->dept… in bmp_read_rle()
[all …]
/PHP-8.1/main/
H A Dalloca.c156 register char *depth = ADDRESS_FUNCTION (probe); local
174 if ((STACK_DIR > 0 && hp->h.deep > depth)
175 || (STACK_DIR < 0 && hp->h.deep < depth))
206 ((header *) new)->h.deep = depth;
/PHP-8.1/ext/xml/tests/
H A Dbug65236.phpt12 Warning: xml_parse_into_struct(): Maximum depth exceeded - Results truncated in %s on line %d
/PHP-8.1/Zend/tests/
H A Dbug62680.phpt2 Bug #62680 (Function isset() throws fatal error on set array if non-existent key depth >= 3)
/PHP-8.1/ext/standard/tests/array/
H A D001.phpt16 function make_nested_array ($depth, $breadth, $function = NULL, $args = array ()) {
23 for ($y = 1; $y < $depth; ++$y) {

Completed in 59 milliseconds

12