/php-src/sapi/cli/ |
H A D | php_cli.c | 331 size_t len; in sapi_cli_register_variables() local 340 len = strlen(php_self); in sapi_cli_register_variables() 341 if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &php_self, len, &len)) { in sapi_cli_register_variables() 344 if (sapi_module.input_filter(PARSE_SERVER, "SCRIPT_NAME", &php_self, len, &len)) { in sapi_cli_register_variables() 348 len = strlen(script_filename); in sapi_cli_register_variables() 356 len = 0U; in sapi_cli_register_variables() 357 if (sapi_module.input_filter(PARSE_SERVER, "DOCUMENT_ROOT", &docroot, len, &len)) { in sapi_cli_register_variables() 1002 size_t len, index = 0; in do_cli() local 1016 len = strlen(input); in do_cli() 1017 while (len > 0 && len-- && (input[len]=='\n' || input[len]=='\r')) { in do_cli() [all …]
|
/php-src/ext/standard/tests/ |
H A D | bug71827.phpt | 5 $line = str_repeat(' ',20); $value ='03'; $pos=0; $len='2'; 6 $line = substr_replace($line,$value,$pos,$len);
|
/php-src/Zend/ |
H A D | zend_language_scanner.l | 130 --(*len); in strip_underscores() 919 if (len <= 1) { in zend_scan_escape_string() 1028 len++; in zend_scan_escape_string() 1035 len++; in zend_scan_escape_string() 1041 len++; in zend_scan_escape_string() 1215 str += len; in strip_multiline_string_indentation() 1216 copy += len; in strip_multiline_string_indentation() 1952 --len; 1994 --len; 2061 len = i; [all …]
|
H A D | zend_stream.h | 32 typedef ssize_t (*zend_stream_reader_t)(void* handle, char *buf, size_t len); 62 size_t len; member 70 ZEND_API zend_result zend_stream_fixup(zend_file_handle *file_handle, char **buf, size_t *len);
|
H A D | zend_hash.h | 449 zv = zend_hash_str_find(ht, str, len); in zend_hash_str_find_ind() 459 zv = zend_hash_str_find(ht, str, len); in zend_hash_str_exists_ind() 575 if (ZEND_HANDLE_NUMERIC_STR(str, len, idx)) { in zend_symtable_str_update() 587 if (ZEND_HANDLE_NUMERIC_STR(str, len, idx)) { in zend_symtable_str_update_ind() 602 return zend_hash_str_del(ht, str, len); in zend_symtable_str_del() 614 return zend_hash_str_del_ind(ht, str, len); in zend_symtable_str_del_ind() 626 return zend_hash_str_find(ht, str, len); in zend_symtable_str_find() 638 return zend_hash_str_exists(ht, str, len); in zend_symtable_str_exists() 675 zv = zend_hash_str_add(ht, str, len, &tmp); in zend_hash_str_add_ptr() 895 zv = zend_hash_str_find(ht, str, len); in zend_hash_str_find_ptr() [all …]
|
/php-src/ext/pdo_pgsql/tests/ |
H A D | float.phpt | 62 ["len"]=> 78 ["len"]=> 94 ["len"]=> 110 ["len"]=> 126 ["len"]=>
|
/php-src/ext/standard/tests/strings/ |
H A D | strspn_variation9.phpt | 2 Test strspn() function : usage variations - different strings with default start and len args 5 /* Prototype : proto int strspn(string str, string mask [, int start [, int len]]) 7 … If start or/and length is provided works like strspn(substr($s,$start,$len),$good_chars) 13 * Testing strspn() : with different strings as str argument and default start and len args 16 echo "*** Testing strspn() : with different str and default start and len args ***\n"; 56 *** Testing strspn() : with different str and default start and len args ***
|
H A D | strcspn_variation9.phpt | 2 Test strcspn() function : usage variations - different strings with default start and len args 5 /* Prototype : proto int strcspn(string str, string mask [, int start [, int len]]) 7 … If start or/and length is provided works like strcspn(substr($s,$start,$len),$bad_chars) 13 * Testing strcspn() : with different strings as str argument and default start and len args 16 echo "*** Testing strcspn() : with different str and default start and len args ***\n"; 56 *** Testing strcspn() : with different str and default start and len args ***
|
/php-src/ext/mbstring/libmbfl/filters/ |
H A D | mbfilter_ucs2.c | 36 static void mb_wchar_to_ucs2be(uint32_t *in, size_t len, mb_convert_buf *buf, bool end); 38 static void mb_wchar_to_ucs2le(uint32_t *in, size_t len, mb_convert_buf *buf, bool end); 293 static void mb_wchar_to_ucs2be(uint32_t *in, size_t len, mb_convert_buf *buf, bool end) in mb_wchar_to_ucs2be() argument 297 MB_CONVERT_BUF_ENSURE(buf, out, limit, len * 2); in mb_wchar_to_ucs2be() 299 while (len--) { in mb_wchar_to_ucs2be() 305 MB_CONVERT_BUF_ENSURE(buf, out, limit, len * 2); in mb_wchar_to_ucs2be() 335 static void mb_wchar_to_ucs2le(uint32_t *in, size_t len, mb_convert_buf *buf, bool end) in mb_wchar_to_ucs2le() argument 339 MB_CONVERT_BUF_ENSURE(buf, out, limit, len * 2); in mb_wchar_to_ucs2le() 341 while (len--) { in mb_wchar_to_ucs2le() 347 MB_CONVERT_BUF_ENSURE(buf, out, limit, len * 2); in mb_wchar_to_ucs2le()
|
H A D | mbfilter_utf32.c | 36 static void mb_wchar_to_utf32be(uint32_t *in, size_t len, mb_convert_buf *buf, bool end); 38 static void mb_wchar_to_utf32le(uint32_t *in, size_t len, mb_convert_buf *buf, bool end); 315 static void mb_wchar_to_utf32be(uint32_t *in, size_t len, mb_convert_buf *buf, bool end) in mb_wchar_to_utf32be() argument 319 MB_CONVERT_BUF_ENSURE(buf, out, limit, len * 4); in mb_wchar_to_utf32be() 321 while (len--) { in mb_wchar_to_utf32be() 327 MB_CONVERT_BUF_ENSURE(buf, out, limit, len * 4); in mb_wchar_to_utf32be() 364 static void mb_wchar_to_utf32le(uint32_t *in, size_t len, mb_convert_buf *buf, bool end) in mb_wchar_to_utf32le() argument 368 MB_CONVERT_BUF_ENSURE(buf, out, limit, len * 4); in mb_wchar_to_utf32le() 370 while (len--) { in mb_wchar_to_utf32le() 376 MB_CONVERT_BUF_ENSURE(buf, out, limit, len * 4); in mb_wchar_to_utf32le()
|
/php-src/ext/hash/ |
H A D | hash_sha3.c | 160 size_t len = block_size - ctx->pos; in PHP_SHA3_Update() local 162 if (len > count) { in PHP_SHA3_Update() 163 len = count; in PHP_SHA3_Update() 166 count -= len; in PHP_SHA3_Update() 168 while (len-- > 0) { in PHP_SHA3_Update() 183 size_t len = digest_size; in PHP_SHA3_Final() local 192 int bs = (len < block_size) ? len : block_size; in PHP_SHA3_Final() 194 len -= bs; in PHP_SHA3_Final() 195 if (!len) break; in PHP_SHA3_Final()
|
H A D | hash_snefru.c | 138 PHP_HASH_API void PHP_SNEFRUUpdate(PHP_SNEFRU_CTX *context, const unsigned char *input, size_t len) in PHP_SNEFRUUpdate() argument 140 if ((MAX32 - context->count[1]) < (len * 8)) { in PHP_SNEFRUUpdate() 143 context->count[1] = ((uint32_t) len * 8) - context->count[1]; in PHP_SNEFRUUpdate() 145 context->count[1] += (uint32_t) len * 8; in PHP_SNEFRUUpdate() 148 if (context->length + len < 32) { in PHP_SNEFRUUpdate() 149 memcpy(&context->buffer[context->length], input, len); in PHP_SNEFRUUpdate() 150 context->length += (unsigned char)len; in PHP_SNEFRUUpdate() 152 size_t i = 0, r = (context->length + len) % 32; in PHP_SNEFRUUpdate() 160 for (; i + 32 <= len; i += 32) { in PHP_SNEFRUUpdate()
|
/php-src/ext/dom/lexbor/lexbor/dom/interfaces/ |
H A D | node.c | 314 if (len != NULL) { in lxb_dom_node_name() 321 if (len != NULL) { in lxb_dom_node_name() 332 if (len != NULL) { in lxb_dom_node_name() 339 if (len != NULL) { in lxb_dom_node_name() 350 if (len != NULL) { in lxb_dom_node_name() 360 if (len != NULL) { in lxb_dom_node_name() 361 *len = 0; in lxb_dom_node_name() 1153 if (len != NULL) { in lxb_dom_node_text_content() 1154 *len = length; in lxb_dom_node_text_content() 1163 if (len != NULL) { in lxb_dom_node_text_content() [all …]
|
H A D | document.h | 116 const lxb_char_t *data, size_t len); 120 const lxb_char_t *data, size_t len); 129 const lxb_char_t *data, size_t len); 167 lxb_dom_document_create_text(lxb_dom_document_t *document, size_t len) in lxb_dom_document_create_text() argument 170 sizeof(lxb_char_t) * len); in lxb_dom_document_create_text() 228 lxb_dom_document_create_text_noi(lxb_dom_document_t *document, size_t len);
|
H A D | document.c | 276 const lxb_char_t *data, size_t len) in lxb_dom_document_create_text_node() argument 286 lexbor_str_init(&text->char_data.data, document->text, len); in lxb_dom_document_create_text_node() 291 lexbor_str_append(&text->char_data.data, document->text, data, len); in lxb_dom_document_create_text_node() 298 const lxb_char_t *data, size_t len) in lxb_dom_document_create_cdata_section() argument 304 const lxb_char_t *end = data + len; in lxb_dom_document_create_cdata_section() 305 const lxb_char_t *ch = memchr(data, ']', sizeof(lxb_char_t) * len); in lxb_dom_document_create_cdata_section() 327 lexbor_str_init(&cdata->text.char_data.data, document->text, len); in lxb_dom_document_create_cdata_section() 391 const lxb_char_t *data, size_t len) in lxb_dom_document_create_comment() argument 401 lexbor_str_init(&comment->char_data.data, document->text, len); in lxb_dom_document_create_comment() 511 lxb_dom_document_create_text_noi(lxb_dom_document_t *document, size_t len) in lxb_dom_document_create_text_noi() argument [all …]
|
/php-src/ext/pcre/pcre2lib/ |
H A D | pcre2_extuni.c | 100 int len = 1; in PRIV() local 101 if (!utf) c = *eptr; else { GETCHARLEN(c, eptr, len); } in PRIV() 139 eptr += len; in PRIV()
|
/php-src/ext/dom/lexbor/lexbor/html/interfaces/ |
H A D | title_element.h | 32 lxb_html_title_element_text(lxb_html_title_element_t *title, size_t *len); 35 lxb_html_title_element_strict_text(lxb_html_title_element_t *title, size_t *len);
|
/php-src/Zend/Optimizer/ |
H A D | block_pass.c | 71 b->len--; in strip_leading_nops() 79 if (b->len == 0) { in strip_nops() 87 if (b->len == 0) { in strip_nops() 943 uint32_t len = 0; in assemble_code_blocks() local 960 b->len--; in assemble_code_blocks() 964 b->len--; in assemble_code_blocks() 966 len += b->len; in assemble_code_blocks() 1219 block->len--; in zend_jmp_optimization() 1647 bb->len = 0; in zend_merge_blocks() 1652 prev->len = b->start + b->len - prev->start; in zend_merge_blocks() [all …]
|
/php-src/ext/mbstring/tests/ |
H A D | mb_str_split_ru.phpt | 13 $len = 12; 32 for($i = 1; $i <= $len; ++$i){ 33 $ceil = ceil($len / $i); 42 for($i = 0; $i < $len; ++$i){ 52 $array = mb_str_split($enc, $len, "EUC-JP");
|
/php-src/ext/bz2/tests/ |
H A D | bug71263.phpt | 12 echo "Compressed len = ", strlen($compressed), "\n"; 48 Compressed len = 81 52 Compressed len = 81 54 Compressed len = 81
|
/php-src/ext/fileinfo/libmagic/ |
H A D | apprentice.c | 106 size_t len; member 174 size_t len; member 565 len = (ms->c.len = 10) * sizeof(*ms->c.li); in file_ms_alloc() 1262 size_t len; in load_1() local 1298 if (CAST(size_t, len - 2) > bang[i].len && in load_1() 1318 len - bang[i].len - 2) != 0) { in load_1() 2457 len = nt ? strlen(buf) : len; in parse_extra() 2580 len = len * 10 + (*ptr - '0'); \ in check_format_type() 3357 size_t len; in apprentice_compile() local 3607 len = *s; [all …]
|
/php-src/Zend/tests/ |
H A D | bug26696.phpt | 6 $len = strlen($str); 7 for ($i = 0; $i < $len; $i++) {
|
/php-src/sapi/phpdbg/ |
H A D | phpdbg_parser.y | 128 $$.len = $1.len; 134 $$.len = $2.len; 154 $$.len = $3.len; 159 $$.len = $3.len; 163 $$.len = 0; 168 $$.len = $3.len;
|
/php-src/ext/zlib/tests/ |
H A D | bug75273.phpt | 7 function non_repeating_str($len = 8192) { 10 $iterations = (int) ($len / 256) + 1; 23 return substr($ret, 0, $len);
|
/php-src/ext/dom/lexbor/patches/ |
H A D | 0001-Remove-unused-upper-case-tag-static-data.patch | 35 @@ -92,6 +92,7 @@ lxb_tag_data_by_name(lexbor_hash_t *hash, const lxb_char_t *name, size_t len) 36 lexbor_hash_search_lower, name, len); 42 const lxb_char_t *name, size_t len) 45 lexbor_hash_search_upper, name, len);
|