Home
last modified time | relevance | path

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

123

/php-src/ext/json/
H A Djson.c132 encoder.max_depth = depth; in php_json_encode_ex()
226 zend_long depth = PHP_JSON_PARSER_DEFAULT_DEPTH; in PHP_FUNCTION() local
232 Z_PARAM_LONG(depth) in PHP_FUNCTION()
236 encoder.max_depth = (int)depth; in PHP_FUNCTION()
264 zend_long depth = PHP_JSON_PARSER_DEFAULT_DEPTH; in PHP_FUNCTION() local
271 Z_PARAM_LONG(depth) in PHP_FUNCTION()
288 if (depth <= 0) { in PHP_FUNCTION()
293 if (depth > INT_MAX) { in PHP_FUNCTION()
322 Z_PARAM_LONG(depth) in PHP_FUNCTION()
339 if (depth <= 0) { in PHP_FUNCTION()
[all …]
H A Dphp_json.h104 PHP_JSON_API zend_result php_json_encode_ex(smart_str *buf, zval *val, int options, zend_long depth
106 …decode_ex(zval *return_value, const char *str, size_t str_len, zend_long options, zend_long depth);
107 …API bool php_json_validate_ex(const char *str, size_t str_len, zend_long options, zend_long depth);
109 …t php_json_decode(zval *return_value, const char *str, size_t str_len, bool assoc, zend_long depth) in php_json_decode() argument
111 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.php155 function json_encode(mixed $value, int $flags = 0, int $depth = 512): string|false {} argument
157 function json_decode(string $json, ?bool $associative = null, int $depth = 512, int $flags = 0): mi… argument
159 function json_validate(string $json, int $depth = 512, int $flags = 0): bool {} 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")
19 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, depth, IS_LONG, 0, "512")
/php-src/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-src/ext/opcache/tests/jit/
H A Dbug80447.phpt12 function createTree($depth) {
13 if (!$depth) {
16 $depth--;
19 createTree($depth),
20 createTree($depth)
H A Dreg_alloc_004.phpt14 function createTree($depth) {
15 if (!$depth) {
18 $depth--;
19 [createTree($d), createTree($depth)]();
/php-src/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-src/ext/dom/tests/compareDocumentPosition/
H A Delement_order_different_depth.phpt2 compareDocumentPosition: element order at a different tree depth
29 echo "--- Check on depth $i ---\n";
36 echo "--- One contains the other at depth 2 ---\n";
42 --- Check on depth 0 ---
45 --- Check on depth 1 ---
48 --- One contains the other at depth 2 ---
H A Delement_order_same_depth.phpt2 compareDocumentPosition: element order at the same tree depth
45 echo "--- Check on depth $i ---\n";
63 --- Check on depth 0 ---
66 --- Check on depth 1 ---
69 --- Check on depth 2 ---
/php-src/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 Djson_validate_requires.inc3 function json_validate_trycatchdump($json, $depth = 512, $flags = 0) {
5 var_dump(json_validate($json, $depth, $flags));
H A Djson_validate_003.phpt2 json_validate() - Error handling for max depth
17 json_validate(): Argument #2 ($depth) must be less than %d
H A Dgh15168.phpt30 var_dump(json_encode($firstNode, depth: 500000));
42 string(28) "Maximum stack depth exceeded"
/php-src/Zend/
H A Dzend_signal.h57 int depth; member
81 # define ZEND_SIGNAL_BLOCK_INTERRUPTIONS() if (EXPECTED(zend_signal_globals_id)) { SIGG(depth)++; }
82 …INTERRUPTIONS() if (EXPECTED(zend_signal_globals_id) && UNEXPECTED(((SIGG(depth)--) == SIGG(blocke…
84 # define ZEND_SIGNAL_BLOCK_INTERRUPTIONS() SIGG(depth)++;
85 # define ZEND_SIGNAL_UNBLOCK_INTERRUPTIONS() if (((SIGG(depth)--) == SIGG(blocked))) { zend_signal…
/php-src/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^> ^[^bits^]
12 ECHO ^<depth^> is the number of levels defined in session.save_path
52 ECHO ERROR: Invalid depth : %2
/php-src/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-src/ext/dom/tests/
H A Dgh11500.phpt61 echo "-- Constructed from API (depth 2, mismatched root variation) --\n";
64 echo "-- Constructed from API (depth 2, matching root variation) --\n";
76 echo "-- Constructed from API (depth 3, matching root variation, swapped) --\n";
79 echo "-- Constructed depth 2 from string --\n";
92 -- Constructed from API (depth 2, mismatched root variation) --
100 -- Constructed from API (depth 2, matching root variation) --
108 -- Constructed from API (depth 3, mismatched root variation, non-swapped) --
118 -- Constructed from API (depth 3, matching root variation, non-swapped) --
128 -- Constructed from API (depth 3, mismatched root variation, swapped) --
138 -- Constructed from API (depth 3, matching root variation, swapped) --
[all …]
/php-src/ext/xmlreader/tests/
H A Dvirtual_properties2.phpt18 var_dump(isset($reader->depth));
19 var_dump(empty($reader->depth));
20 var_dump(property_exists($reader, "depth"));
H A Dvirtual_properties3.phpt28 unset($reader->depth);
52 Cannot unset MyXMLReader::$depth
/php-src/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 …]

Completed in 41 milliseconds

123