Home
last modified time | relevance | path

Searched refs:slen (Results 1 – 19 of 19) sorted by relevance

/PHP-7.3/ext/fileinfo/libmagic/
H A Dder.c295 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 Dcdf.c939 size_t i, o4, nelements, j, slen, left; in cdf_read_property_info() local
997 slen = 2; in cdf_read_property_info()
1000 slen = 1; in cdf_read_property_info()
1002 o4 = slen * sizeof(uint32_t); in cdf_read_property_info()
1044 l = CDF_GETUINT32(q, slen); in cdf_read_property_info()
1061 slen += l >> 1; in cdf_read_property_info()
1062 o4 = slen * sizeof(uint32_t); in cdf_read_property_info()
H A Dsoftmagic.c1980 size_t slen; in magiccheck() local
1986 slen = MIN(m->vallen, sizeof(m->value.s)); in magiccheck()
1991 if (slen + idx > ms->search.s_len) in magiccheck()
1994 v = file_strncmp(m->value.s, ms->search.s + idx, slen, in magiccheck()
H A Dapprentice.c1234 size_t slen; in coalesce_entries() local
1239 slen = sizeof(**ma) * mentrycount; in coalesce_entries()
1240 if ((*ma = CAST(struct magic *, emalloc(slen))) == NULL) { in coalesce_entries()
1241 file_oomem(ms, slen); in coalesce_entries()
/PHP-7.3/ext/phar/
H A Dmakestub.php21 $slen = strlen($s) - strlen('index.php') - strlen("000"); variable
91 $stub .= "\n\tstatic const int newstub_len = " . $slen . ";
/PHP-7.3/ext/mbstring/oniguruma/src/
H A Dregenc.c148 int slen, term_len, i; in onigenc_strdup() local
151 slen = (int )(end - s); in onigenc_strdup()
154 r = (UChar* )xmalloc(slen + term_len); in onigenc_strdup()
156 xmemcpy(r, s, slen); in onigenc_strdup()
159 r[slen + i] = (UChar )0; in onigenc_strdup()
H A Dregcomp.c830 slen = 1; in compile_length_string_node()
836 slen++; in compile_length_string_node()
842 slen = 1; in compile_length_string_node()
900 int r, len, prev_len, slen; in compile_string_node() local
917 slen = 1; in compile_string_node()
922 slen++; in compile_string_node()
929 slen = 1; in compile_string_node()
5961 if (slen > 0) { in optimize_nodes()
5964 set_mml(&opt->len, slen, slen); in optimize_nodes()
5972 if (slen > 0) { in optimize_nodes()
[all …]
/PHP-7.3/win32/
H A Dsendmail.c838 int slen; in Post() local
848 if ((slen = send(PW32G(mail_socket), msg + index, len, 0)) < 1) in Post()
850 len -= slen; in Post()
851 index += slen; in Post()
/PHP-7.3/ext/intl/breakiterator/
H A Dbreakiterator_iterators.cpp171 size_t slen = Z_STRLEN(bio->text); in _breakiterator_parts_move_forward() local
174 assert(next <= slen && next >= cur); in _breakiterator_parts_move_forward()
/PHP-7.3/sapi/fpm/fpm/
H A Dfpm_main.c1142 int slen = len - ptlen; in init_request_info() local
1149 tflag = (slen != 0 && (!orig_path_info || strcmp(orig_path_info, path_info) != 0)); in init_request_info()
1151 path_info = (env_path_info && pilen > slen) ? env_path_info + pilen - slen : NULL; in init_request_info()
1178 if (snlen>slen && !strcmp(env_script_name+snlen-slen, path_info)) { in init_request_info()
1180 env_script_name[snlen-slen] = 0; in init_request_info()
/PHP-7.3/ext/mbstring/tests/
H A Dmb_stripos.phpt17 $slen = mb_strlen($euc_jp, 'EUC-JP');
18 echo "String len: $slen\n";
H A Dmb_strpos.phpt17 $slen = mb_strlen($euc_jp, 'EUC-JP');
18 echo "String len: $slen\n";
/PHP-7.3/ext/sockets/
H A Dsockets.c1793 socklen_t slen; local
1816 slen = sizeof(s_un);
1817 memset(&s_un, 0, slen);
1820 …hp_sock->bsd_socket, ZSTR_VAL(recv_buf), arg3, arg4, (struct sockaddr *)&s_un, (socklen_t *)&slen);
1838 slen = sizeof(sin);
1839 memset(&sin, 0, slen);
1847 …php_sock->bsd_socket, ZSTR_VAL(recv_buf), arg3, arg4, (struct sockaddr *)&sin, (socklen_t *)&slen);
1869 slen = sizeof(sin6);
1870 memset(&sin6, 0, slen);
1878 …hp_sock->bsd_socket, ZSTR_VAL(recv_buf), arg3, arg4, (struct sockaddr *)&sin6, (socklen_t *)&slen);
H A Dmulticast.c199 slen; in php_do_mcast_opt() local
211 &slen) == FAILURE) { in php_do_mcast_opt()
220 glen, (struct sockaddr*)&source, slen, if_index); in php_do_mcast_opt()
/PHP-7.3/sapi/cgi/
H A Dcgi_main.c1305 size_t slen = len - strlen(pt); local
1307 char *path_info = env_path_info ? env_path_info + pilen - slen : NULL;
2457 size_t slen = strlen(PG(arg_separator).input); local
2461 len += strlen(argv[i]) + slen;
/PHP-7.3/ext/spl/
H A Dspl_directory.c1008 size_t slen = 0, path_len; in SPL_METHOD() local
1010 if (zend_parse_parameters(ZEND_NUM_ARGS(), "|s", &suffix, &slen) == FAILURE) { in SPL_METHOD()
1024 RETURN_STR(php_basename(fname, flen, suffix, slen)); in SPL_METHOD()
1034 size_t slen = 0; in SPL_METHOD() local
1037 if (zend_parse_parameters(ZEND_NUM_ARGS(), "|s", &suffix, &slen) == FAILURE) { in SPL_METHOD()
1041 fname = php_basename(intern->u.dir.entry.d_name, strlen(intern->u.dir.entry.d_name), suffix, slen); in SPL_METHOD()
/PHP-7.3/ext/fileinfo/
H A Dlibmagic.patch497 slen = sizeof(**ma) * mentrycount;
498 - if ((*ma = CAST(struct magic *, malloc(slen))) == NULL) {
499 + if ((*ma = CAST(struct magic *, emalloc(slen))) == NULL) {
500 file_oomem(ms, slen);
1578 slen = 2;
4170 - size_t slen = ms->search.s_len;
4172 - if (slen != 0) {
4173 - copy = CAST(char *, malloc(slen));
4178 - slen);
4181 - memcpy(copy, ms->search.s, slen);
[all …]
/PHP-7.3/ext/standard/
H A Dstring.c3019 size_t slen = ZSTR_LEN(input); local
3034 num_bitset = ecalloc((slen + sizeof(zend_ulong)) / sizeof(zend_ulong), sizeof(zend_ulong));
3046 } else if (UNEXPECTED(len > slen)) {
3070 if (UNEXPECTED(len > slen)) {
3087 if (UNEXPECTED(len > slen)) {
3110 while (pos <= slen - minlen) {
3114 if (len > slen - pos) {
3115 len = slen - pos;
3138 smart_str_appendl(&result, str + old_pos, slen - old_pos);
/PHP-7.3/ext/mbstring/
H A Dmbstring.c2367 size_t slen = mbfl_strlen(&haystack); in PHP_FUNCTION() local
2369 offset += slen; in PHP_FUNCTION()
2371 if (offset < 0 || offset > slen) { in PHP_FUNCTION()

Completed in 98 milliseconds