/PHP-7.2/ext/fileinfo/libmagic/ |
H A D | der.c | 295 size_t slen = strlen(buf); in der_cmp() local 297 if (strncmp(buf, s, slen) != 0) in der_cmp() 300 s += slen; in der_cmp() 313 slen = 0; in der_cmp() 315 slen = slen * 10 + *s - '0'; in der_cmp() 319 slen, tlen); in der_cmp() 320 if (tlen != slen) in der_cmp()
|
H A D | cdf.c | 961 size_t i, o4, nelements, j, slen, left; in cdf_read_property_info() local 1019 slen = 2; in cdf_read_property_info() 1022 slen = 1; in cdf_read_property_info() 1024 o4 = slen * sizeof(uint32_t); in cdf_read_property_info() 1066 l = CDF_GETUINT32(q, slen); in cdf_read_property_info() 1083 slen += l >> 1; in cdf_read_property_info() 1084 o4 = slen * sizeof(uint32_t); in cdf_read_property_info()
|
H A D | softmagic.c | 1856 size_t slen; in magiccheck() local 1862 slen = MIN(m->vallen, sizeof(m->value.s)); in magiccheck() 1867 if (slen + idx > ms->search.s_len) in magiccheck() 1870 v = file_strncmp(m->value.s, ms->search.s + idx, slen, in magiccheck()
|
H A D | apprentice.c | 1194 size_t slen; in coalesce_entries() local 1199 slen = sizeof(**ma) * mentrycount; in coalesce_entries() 1200 if ((*ma = CAST(struct magic *, emalloc(slen))) == NULL) { in coalesce_entries() 1201 file_oomem(ms, slen); in coalesce_entries()
|
/PHP-7.2/ext/phar/ |
H A D | makestub.php | 21 $slen = strlen($s) - strlen('index.php') - strlen("000"); variable 93 $stub .= "\n\tstatic const int newstub_len = " . $slen . ";
|
/PHP-7.2/ext/intl/breakiterator/ |
H A D | breakiterator_iterators.cpp | 171 size_t slen = Z_STRLEN(bio->text); in _breakiterator_parts_move_forward() local 175 next = (int32_t)slen; in _breakiterator_parts_move_forward() 177 assert(next <= slen && next >= cur); in _breakiterator_parts_move_forward()
|
/PHP-7.2/win32/ |
H A D | sendmail.c | 853 int slen; in Post() local 863 if ((slen = send(PW32G(mail_socket), msg + index, len, 0)) < 1) in Post() 865 len -= slen; in Post() 866 index += slen; in Post()
|
/PHP-7.2/sapi/fpm/fpm/ |
H A D | fpm_main.c | 1203 int slen = len - ptlen; local 1210 tflag = (slen != 0 && (!orig_path_info || strcmp(orig_path_info, path_info) != 0)); 1212 path_info = (env_path_info && pilen > slen) ? env_path_info + pilen - slen : NULL; 1239 if (snlen>slen && !strcmp(env_script_name+snlen-slen, path_info)) { 1241 env_script_name[snlen-slen] = 0;
|
/PHP-7.2/ext/mbstring/tests/ |
H A D | mb_stripos.phpt | 17 $slen = mb_strlen($euc_jp, 'EUC-JP'); 18 echo "String len: $slen\n";
|
H A D | mb_strpos.phpt | 17 $slen = mb_strlen($euc_jp, 'EUC-JP'); 18 echo "String len: $slen\n";
|
/PHP-7.2/ext/sockets/ |
H A D | sockets.c | 1759 socklen_t slen; local 1782 slen = sizeof(s_un); 1783 memset(&s_un, 0, slen); 1786 …hp_sock->bsd_socket, ZSTR_VAL(recv_buf), arg3, arg4, (struct sockaddr *)&s_un, (socklen_t *)&slen); 1804 slen = sizeof(sin); 1805 memset(&sin, 0, slen); 1813 …php_sock->bsd_socket, ZSTR_VAL(recv_buf), arg3, arg4, (struct sockaddr *)&sin, (socklen_t *)&slen); 1835 slen = sizeof(sin6); 1836 memset(&sin6, 0, slen); 1844 …hp_sock->bsd_socket, ZSTR_VAL(recv_buf), arg3, arg4, (struct sockaddr *)&sin6, (socklen_t *)&slen);
|
H A D | multicast.c | 205 slen; in php_do_mcast_opt() local 217 &slen) == FAILURE) { in php_do_mcast_opt() 226 glen, (struct sockaddr*)&source, slen, if_index); in php_do_mcast_opt()
|
/PHP-7.2/ext/mbstring/oniguruma/src/ |
H A D | regcomp.c | 474 slen = 1; in compile_length_string_node() 480 slen++; in compile_length_string_node() 486 slen = 1; in compile_length_string_node() 523 slen = 1; in compile_string_node() 528 slen++; in compile_string_node() 535 slen = 1; in compile_string_node() 4646 if (slen > 0) { in optimize_node_left() 4649 set_mml(&opt->len, slen, slen); in optimize_node_left() 4663 if (slen > 0) { in optimize_node_left() 4669 max = slen; in optimize_node_left() [all …]
|
H A D | regparse.c | 276 int slen, term_len, i; in strdup_with_null() local 279 slen = end - s; in strdup_with_null() 282 r = (UChar* )xmalloc(slen + term_len); in strdup_with_null() 284 xmemcpy(r, s, slen); in strdup_with_null() 287 r[slen + i] = (UChar )0; in strdup_with_null()
|
/PHP-7.2/ext/spl/ |
H A D | spl_directory.c | 1009 size_t slen = 0, path_len; in SPL_METHOD() local 1011 if (zend_parse_parameters(ZEND_NUM_ARGS(), "|s", &suffix, &slen) == FAILURE) { in SPL_METHOD() 1025 RETURN_STR(php_basename(fname, flen, suffix, slen)); in SPL_METHOD() 1035 size_t slen = 0; in SPL_METHOD() local 1038 if (zend_parse_parameters(ZEND_NUM_ARGS(), "|s", &suffix, &slen) == FAILURE) { in SPL_METHOD() 1042 fname = php_basename(intern->u.dir.entry.d_name, strlen(intern->u.dir.entry.d_name), suffix, slen); in SPL_METHOD()
|
/PHP-7.2/ext/standard/ |
H A D | string.c | 2977 size_t slen = ZSTR_LEN(input); local 2992 num_bitset = ecalloc((slen + sizeof(zend_ulong)) / sizeof(zend_ulong), sizeof(zend_ulong)); 3004 } else if (UNEXPECTED(len > slen)) { 3028 if (UNEXPECTED(len > slen)) { 3045 if (UNEXPECTED(len > slen)) { 3068 while (pos <= slen - minlen) { 3072 if (len > slen - pos) { 3073 len = slen - pos; 3095 smart_str_appendl(&result, str + old_pos, slen - old_pos);
|
/PHP-7.2/sapi/cgi/ |
H A D | cgi_main.c | 1303 size_t slen = len - strlen(pt); local 1305 char *path_info = env_path_info ? env_path_info + pilen - slen : NULL; 2500 size_t slen = strlen(PG(arg_separator).input); local 2504 len += strlen(argv[i]) + slen;
|
/PHP-7.2/ext/fileinfo/ |
H A D | libmagic.patch | 433 slen = sizeof(**ma) * mentrycount; 434 - if ((*ma = CAST(struct magic *, malloc(slen))) == NULL) { 435 + if ((*ma = CAST(struct magic *, emalloc(slen))) == NULL) { 436 file_oomem(ms, slen); 3438 - size_t slen = ms->search.s_len; 3440 - if (slen != 0) { 3441 - copy = CAST(char *, malloc(slen)); 3446 - slen); 3449 - memcpy(copy, ms->search.s, slen); 3450 - copy[--slen] = '\0';
|
/PHP-7.2/ext/mbstring/ |
H A D | mbstring.c | 2295 zend_long offset = 0, slen; in PHP_FUNCTION() local 2330 slen = mbfl_strlen(&haystack); in PHP_FUNCTION() 2332 offset += slen; in PHP_FUNCTION() 2334 if (offset < 0 || offset > slen) { in PHP_FUNCTION()
|