Home
last modified time | relevance | path

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

12

/PHP-7.4/sapi/phpdbg/
H A Dphpdbg_btree.c36 tree->depth = depth; in phpdbg_btree_init()
44 int i = tree->depth - 1; in phpdbg_btree_find()
71 int i = tree->depth - 1, last_superior_i = -1; in phpdbg_btree_find_closest()
91 i = tree->depth - 1; in phpdbg_btree_find_closest()
147 int i = tree->depth - 1; in phpdbg_btree_insert_or_update()
182 int i = tree->depth; in phpdbg_btree_delete()
231 while (depth--) { in phpdbg_btree_clean_recursive()
251 if (depth--) { in phpdbg_btree_branch_dump()
252 phpdbg_btree_branch_dump(branch->branches[0], depth); in phpdbg_btree_branch_dump()
253 phpdbg_btree_branch_dump(branch->branches[1], depth); in phpdbg_btree_branch_dump()
[all …]
H A Dphpdbg_btree.h39 zend_ulong depth; member
50 void phpdbg_btree_init(phpdbg_btree *tree, zend_ulong depth);
69 void phpdbg_btree_branch_dump(phpdbg_btree_branch *branch, zend_ulong depth);
/PHP-7.4/ext/standard/tests/serialize/
H A Dmax_depth.phpt6 function create_nested_data($depth, $prefix, $suffix, $inner = 'i:0;') {
7 return str_repeat($prefix, $depth) . $inner . str_repeat($suffix, $depth);
40 // But an explicitly specified depth still takes precedence
66 echo "Nested unserialize combined depth limit:\n";
77 // If depth limit is overridden, the depth should be counted
89 echo "Nested unserialize overridden depth limit:\n";
107 Warning: unserialize(): Maximum depth of 128 exceeded. The depth limit can be changed using the max…
114 Warning: unserialize(): Maximum depth of 128 exceeded. The depth limit can be changed using the max…
121 Warning: unserialize(): Maximum depth of 128 exceeded. The depth limit can be changed using the max…
132 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-7.4/ext/json/
H A Djson.c49 ZEND_ARG_INFO(0, depth)
55 ZEND_ARG_INFO(0, depth)
199 encoder.max_depth = depth; in php_json_encode_ex()
274 zend_long depth = PHP_JSON_PARSER_DEFAULT_DEPTH; in PHP_FUNCTION() local
280 Z_PARAM_LONG(depth) in PHP_FUNCTION()
284 encoder.max_depth = (int)depth; in PHP_FUNCTION()
317 zend_long depth = PHP_JSON_PARSER_DEFAULT_DEPTH; in PHP_FUNCTION() local
324 Z_PARAM_LONG(depth) in PHP_FUNCTION()
341 if (depth <= 0) { in PHP_FUNCTION()
346 if (depth > INT_MAX) { in PHP_FUNCTION()
[all …]
H A Dphp_json.h101 PHP_JSON_API int php_json_encode_ex(smart_str *buf, zval *val, int options, zend_long depth);
103 …_json_decode_ex(zval *return_value, char *str, size_t str_len, zend_long options, zend_long depth);
105 …e int php_json_decode(zval *return_value, char *str, int str_len, zend_bool assoc, zend_long depth) in php_json_decode() argument
107 return php_json_decode_ex(return_value, str, str_len, assoc ? PHP_JSON_OBJECT_AS_ARRAY : 0, depth); in php_json_decode()
H A Dphp_json_encoder.h28 int depth; member
H A Djson_parser.y35 #define PHP_JSON_DEPTH_DEC --parser->depth
37 if (parser->max_depth && parser->depth >= parser->max_depth) { \
41 ++parser->depth
316 parser->depth = 1; in php_json_parser_init_ex()
/PHP-7.4/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…
H A Dzend_signal.c97 if (UNEXPECTED(SIGG(depth) == 0)) { /* try to handle signal */ in zend_signal_handler_defer()
331 SIGG(depth) = 0; in zend_signal_activate()
342 if (SIGG(depth) != 0) { in zend_signal_deactivate()
343 …zend_error(E_CORE_WARNING, "zend_signal: shutdown with non-zero blocking depth (%d)", SIGG(depth)); in zend_signal_deactivate()
362 SIGG(depth) = 0; in zend_signal_deactivate()
/PHP-7.4/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-7.4/ext/standard/tests/strings/
H A Dsscanf_basic3.phpt18 list($part, $length, $width, $depth) = sscanf($str, $format);
19 var_dump($part, $length, $width, $depth);
23 $res = sscanf($str, $format, $part, $length, $width, $depth);
24 var_dump($res, $part, $length, $width, $depth);
/PHP-7.4/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 …]
H A Dbmp.h86 signed short int depth; member
/PHP-7.4/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-7.4/ext/json/tests/
H A Djson_decode_error.phpt16 echo "\n-- Testing json_decode() function with depth below 0 --\n";
34 -- Testing json_decode() function with depth below 0 --
H A D007.phpt29 string(28) "Maximum stack depth exceeded"
/PHP-7.4/ext/xmlrpc/libxmlrpc/
H A Dxml_element.c369 …r)(void *data, const char *text, int size), void *data, XML_ELEM_OUTPUT_OPTIONS options, int depth) in xml_element_serialize() argument
376 depth++; in xml_element_serialize()
387 if(depth == 1) { in xml_element_serialize()
405 if(options->verbosity == xml_elem_pretty && depth > 2) { in xml_element_serialize()
406 xml_elem_writefunc(fptr, whitespace, data, depth - 2); in xml_element_serialize()
475 xml_element_serialize(kids, fptr, data, options, depth); in xml_element_serialize()
479 if(options->verbosity == xml_elem_pretty && depth > 2) { in xml_element_serialize()
480 xml_elem_writefunc(fptr, whitespace, data, depth - 2); in xml_element_serialize()
H A Dxml_to_xmlrpc.c185 XMLRPC_REQUEST_TYPE request_type, int depth) { in XMLRPC_to_xml_element_worker() argument
195 if (depth == 0 && in XMLRPC_to_xml_element_worker()
201 xml_element* next_el = XMLRPC_to_xml_element_worker(NULL, node, request_type, depth + 1); in XMLRPC_to_xml_element_worker()
253 if(depth == 0) { in XMLRPC_to_xml_element_worker()
284 … xml_element* next_el = XMLRPC_to_xml_element_worker(node, xIter, request_type, depth + 1); in XMLRPC_to_xml_element_worker()
300 if (depth == 1) { in XMLRPC_to_xml_element_worker()
H A Dxml_to_soap.c233 int depth) { in xml_element_to_SOAP_REQUEST_worker() argument
242 depth ++; in xml_element_to_SOAP_REQUEST_worker()
308 if (depth == 3) { in xml_element_to_SOAP_REQUEST_worker()
390 if ( depth <= 2 || in xml_element_to_SOAP_REQUEST_worker()
391 (rtype == xmlrpc_request_response && depth <= 3) ) { in xml_element_to_SOAP_REQUEST_worker()
392 xml_element_to_SOAP_REQUEST_worker(request, NULL, ai, xCurrent, iter, depth); in xml_element_to_SOAP_REQUEST_worker()
398 xml_element_to_SOAP_REQUEST_worker(request, xCurrent, ai, xNext, iter, depth); in xml_element_to_SOAP_REQUEST_worker()
/PHP-7.4/Zend/tests/
H A Dbug62680.phpt2 Bug #62680 (Function isset() throws fatal error on set array if non-existent key depth >= 3)
/PHP-7.4/ext/xml/tests/
H A Dbug65236.phpt14 Warning: xml_parse_into_struct(): Maximum depth exceeded - Results truncated in %s on line %d
/PHP-7.4/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) {
/PHP-7.4/azure/
H A Dcommunity_job.yml51 git clone https://github.com/laravel/framework.git --branch=8.x --depth=1
63 git clone https://github.com/symfony/symfony.git --depth=1
77 git clone https://github.com/amphp/amp.git --branch=master --depth=1

Completed in 67 milliseconds

12