/PHP-8.0/ext/standard/ |
H A D | iptc.c | 305 size_t inx = 0, len; in PHP_FUNCTION() local 341 len = (((zend_long) buffer[ inx + 2 ]) << 24) + (((zend_long) buffer[ inx + 3 ]) << 16) + in PHP_FUNCTION() 345 len = (((unsigned short) buffer[ inx ])<<8) | (unsigned short)buffer[ inx+1 ]; in PHP_FUNCTION() 349 if ((len > str_len) || (inx + len) > str_len) { in PHP_FUNCTION() 365 add_next_index_stringl(element, (char *) buffer+inx, len); in PHP_FUNCTION() 366 inx += len; in PHP_FUNCTION()
|
H A D | html.c | 375 size_t len = strlen(charset_hint); in determine_charset() local 379 zend_binary_strcasecmp(charset_hint, len, charset_map[i].codeset, len) == 0) { in determine_charset() 1105 size_t cursor, maxlen, len; in php_escape_html_entities_ex() local 1153 len = 0; in php_escape_html_entities_ex() 1175 len += replacement_len; in php_escape_html_entities_ex() 1213 len += rep_len; in php_escape_html_entities_ex() 1249 len += mbseqlen; in php_escape_html_entities_ex() 1258 len += sizeof("&") - 1; in php_escape_html_entities_ex() 1302 len += ent_len; in php_escape_html_entities_ex() 1308 ZSTR_VAL(replaced)[len] = '\0'; in php_escape_html_entities_ex() [all …]
|
/PHP-8.0/win32/ |
H A D | ioutil.h | 156 #define PHP_WIN32_IOUTIL_PATH_IS_OK_W(pathw, len) \ argument 157 (!((len) >= 1 && L' ' == pathw[(len)-1] || \ 158 …(len) > 1 && !PHP_WIN32_IOUTIL_IS_SLASHW(pathw[(len)-2]) && L'.' != pathw[(len)-2] && L'.' == path… 171 …normalization_result php_win32_ioutil_normalize_path_w(wchar_t **buf, size_t len, size_t *new_len); 263 PW32IO size_t php_win32_ioutil_dirname(char *buf, size_t len); 268 PW32IO wchar_t *php_win32_ioutil_getcwd_w(wchar_t *buf, size_t len); 490 __forceinline static char *php_win32_ioutil_getcwd(char *buf, size_t len) in php_win32_ioutil_getcwd() argument 497 if (php_win32_ioutil_getcwd_w(tmp_bufw, len ? len : PHP_WIN32_IOUTIL_MAXPATHLEN) == NULL) { in php_win32_ioutil_getcwd() 512 } else if (tmp_bufa_len + 1 > len) { in php_win32_ioutil_getcwd() 518 if (!buf && !len) { in php_win32_ioutil_getcwd()
|
/PHP-8.0/ext/opcache/jit/ |
H A D | zend_jit_disasm_x86.c | 103 size_t len = strlen(name); in zend_jit_disasm_add_symbol() local 105 sym = malloc(sizeof(zend_sym_node) + len + 1); in zend_jit_disasm_add_symbol() 111 memcpy((char*)&sym->name, name, len + 1); in zend_jit_disasm_add_symbol() 332 int len; in zend_jit_disasm() local 334 len = 0; in zend_jit_disasm() 335 while (str[len] != 0 && str[len] != ' ' && str[len] != '\t') { in zend_jit_disasm() 336 len++; in zend_jit_disasm() 338 if (str[len] != 0) { in zend_jit_disasm() 339 while (str[len] == ' ' || str[len] == '\t') { in zend_jit_disasm() 340 len++; in zend_jit_disasm() [all …]
|
/PHP-8.0/ext/pcre/pcre2lib/sljit/ |
H A D | sljitProtExecAllocator.c | 120 size_t len; in create_tempfile() local 130 len = (P_tmpdir != NULL) ? strlen(P_tmpdir) : 0; in create_tempfile() 132 if (len > 0 && len < sizeof(tmp_name)) { in create_tempfile() 134 tmp_name_len = len; in create_tempfile() 148 len = strlen(dir); in create_tempfile() 149 if (len > 0 && len < sizeof(tmp_name)) { in create_tempfile() 151 tmp_name_len = len; in create_tempfile()
|
/PHP-8.0/ext/mbstring/ |
H A D | php_unicode.c | 249 unsigned len = code >> 24; in php_unicode_tolower_full() local 251 while (len--) { in php_unicode_tolower_full() 263 unsigned len = code >> 24; in php_unicode_toupper_full() local 265 while (len--) { in php_unicode_toupper_full() 277 unsigned len = code >> 24; in php_unicode_totitle_full() local 279 while (len--) { in php_unicode_totitle_full() 291 unsigned len = code >> 24; in php_unicode_tofold_full() local 293 while (len--) { in php_unicode_tofold_full() 438 *ret_len = result.len; in php_unicode_convert_case()
|
/PHP-8.0/ext/standard/tests/strings/ |
H A D | strcspn_basic.phpt | 16 $len = 3; 19 var_dump( strcspn($str, $mask, $start, $len) );
|
H A D | strlen.phpt | 23 "\x000", // len = 2 24 "\xABC", // len = 2 25 "\0000", // len = 2 28 "\t", // len = 1 29 '\t', // len = 2 117 var_dump(strlen(10.55555555555555555555555555)); // len = 13 118 var_dump(strlen(10.55555555595555555555555555)); // len = 12 121 var_dump(strlen(strlen("Hello"))); // len=1
|
H A D | strcspn_variation5.phpt | 2 Test strcspn() function : usage variations - with heredoc 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) 70 var_dump( strcspn($str,$mask) ); // with default start and len values
|
H A D | strspn_variation5.phpt | 2 Test strspn() function : usage variations - with heredoc 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) 70 var_dump( strspn($str,$mask) ); // with default start and len values
|
/PHP-8.0/ext/zlib/tests/ |
H A D | bug60761.phpt | 27 $len = strlen($html); 29 $lens[$len] = $len;
|
/PHP-8.0/ext/bcmath/libbcmath/src/ |
H A D | output.c | 70 int len, ix; local 74 len = strlen (digits); 75 while (size > len) 80 for (ix=0; ix < len; ix++)
|
/PHP-8.0/main/ |
H A D | rfc1867.c | 580 int len = haystacklen; in php_ap_memstr() local 590 if (memcmp(needle, ptr, needlen < len ? needlen : len) == 0 && (partial || len >= needlen)) { in php_ap_memstr() 595 ptr++; len--; in php_ap_memstr() 604 size_t len, max; in multipart_buffer_read() local 626 if (len > 0) { in multipart_buffer_read() 630 buf[len] = 0; in multipart_buffer_read() 632 if (bound && len > 0 && buf[len-1] == '\r') { in multipart_buffer_read() 633 buf[--len] = 0; in multipart_buffer_read() 638 self->buf_begin += len; in multipart_buffer_read() 641 return len; in multipart_buffer_read() [all …]
|
/PHP-8.0/ext/hash/ |
H A D | hash_joaat.c | 80 joaat_buf(void *buf, size_t len, uint32_t hval) in joaat_buf() argument 85 for (i = 0; i < len; i++) { in joaat_buf()
|
H A D | hash_adler32.c | 26 …P_HASH_API void PHP_ADLER32Update(PHP_ADLER32_CTX *context, const unsigned char *input, size_t len) in PHP_ADLER32Update() argument 32 for (i = 0; i < len; ++i) { in PHP_ADLER32Update()
|
H A D | php_hash_fnv.h | 65 static uint32_t fnv_32_buf(void *buf, size_t len, uint32_t hval, int alternate); 66 static uint64_t fnv_64_buf(void *buf, size_t len, uint64_t hval, int alternate);
|
/PHP-8.0/ext/readline/ |
H A D | readline_cli.c | 214 for (i = 0; i < len; ++i) { in cli_is_valid_code() 284 if (i + 2 < len && code[i+1] == '<' && code[i+2] == '<') { in cli_is_valid_code() 572 size_t len = ZSTR_LEN(ce->name) + 2 + strlen(retval) + 1; in cli_completion_generator() local 573 char *tmp = malloc(len); in cli_completion_generator() 575 snprintf(tmp, len, "%s::%s", ZSTR_VAL(ce->name), retval); in cli_completion_generator() 593 size_t size = 4096, pos = 0, len; in readline_shell_run() local 635 len = strlen(line); in readline_shell_run() 655 if (pos + len + 2 > size) { in readline_shell_run() 656 size = pos + len + 2; in readline_shell_run() 659 memcpy(&code[pos], line, len); in readline_shell_run() [all …]
|
/PHP-8.0/sapi/phpdbg/ |
H A D | phpdbg_help.c | 178 const char *key, size_t len, /* pointer and length of key */ in get_command() argument 186 if (len == 1) { in get_command() 197 if (!strncmp(c->name, key, len)) { in get_command() 241 n = get_command(param->str, param->len, &cmd, phpdbg_prompt_commands); in PHPDBG_COMMAND() 249 if (param->len > 1) { in PHPDBG_COMMAND() 251 if (!strncmp(cmd->name, param->str, param->len)) { in PHPDBG_COMMAND() 283 int len; in PHPDBG_HELP() local 292 len = 20 - 1 - c->name_len; in PHPDBG_HELP() 296 c->alias, c_sub->alias, c->name, len, c_sub->name, c_sub->tip); in PHPDBG_HELP() 311 len = 20 - 1 - c->name_len; in PHPDBG_HELP() [all …]
|
H A D | phpdbg_wait.h | 25 void phpdbg_webdata_decompress(char *msg, int len);
|
/PHP-8.0/Zend/ |
H A D | zend_attributes.c | 85 static zend_attribute *get_attribute_str(HashTable *attributes, const char *str, size_t len, uint32… in get_attribute_str() argument 91 if (attr->offset == offset && ZSTR_LEN(attr->lcname) == len) { in get_attribute_str() 92 if (0 == memcmp(ZSTR_VAL(attr->lcname), str, len)) { in get_attribute_str() 107 ZEND_API zend_attribute *zend_get_attribute_str(HashTable *attributes, const char *str, size_t len) in zend_get_attribute_str() argument 109 return get_attribute_str(attributes, str, len, 0); in zend_get_attribute_str() 117 …nd_get_parameter_attribute_str(HashTable *attributes, const char *str, size_t len, uint32_t offset) in zend_get_parameter_attribute_str() argument 119 return get_attribute_str(attributes, str, len, offset + 1); in zend_get_parameter_attribute_str()
|
H A D | zend_virtual_cwd.c | 512 if (len <= start) { in tsrm_realpath_r() 519 i = len; in tsrm_realpath_r() 525 if (i == len || in tsrm_realpath_r() 575 path[len] = 0; in tsrm_realpath_r() 621 memcpy(tmp, path, len+1); in tsrm_realpath_r() 625 !(IS_UNC_PATH(path, len) && len >= 3 && path[2] != '?') && in tsrm_realpath_r() 819 j = len; in tsrm_realpath_r() 903 memcpy(tmp, path, len+1); in tsrm_realpath_r() 978 j += (len-i); in tsrm_realpath_r() 987 j += (len-i); in tsrm_realpath_r() [all …]
|
/PHP-8.0/ext/mbstring/tests/ |
H A D | bug52981.phpt | 10 $len = strlen($upper); 11 for ($i = 0; $i < $len; ++$i) echo dechex(ord($upper[$i])) . ' ';
|
/PHP-8.0/ext/opcache/jit/libudis86/ |
H A D | udis86.c | 68 int len; in ud_disassemble() local 72 if ((len = ud_decode(u)) > 0) { in ud_disassemble() 78 return len; in ud_disassemble() 381 ud_set_input_buffer(register struct ud* u, const uint8_t* buf, size_t len) in ud_set_input_buffer() argument 385 u->inp_buf_size = len; in ud_set_input_buffer()
|
/PHP-8.0/ext/pcre/pcre2lib/ |
H A D | pcre2_intmodedep.h | 265 #define GETCHARLEN(c, eptr, len) c = *eptr; argument 329 #define GETCHARLEN(c, eptr, len) \ argument 331 if (c >= 0xc0u) GETUTF8LEN(c, eptr, len); 337 #define GETCHARLENTEST(c, eptr, len) \ argument 339 if (utf && c >= 0xc0u) GETUTF8LEN(c, eptr, len); 427 #define GETUTF16LEN(c, eptr, len) \ argument 434 #define GETCHARLEN(c, eptr, len) \ argument 436 if ((c & 0xfc00u) == 0xd800u) GETUTF16LEN(c, eptr, len); 442 #define GETCHARLENTEST(c, eptr, len) \ argument 507 #define GETCHARLEN(c, eptr, len) \ argument [all …]
|
/PHP-8.0/ext/soap/tests/ |
H A D | bug73037.phpt | 85 $len = strlen($data); 87 //echo "len=$len\n"; 95 Content-Length: ${len} 123 $len = $pos - $pos0; 124 echo substr($out, $pos0, $len);
|