Home
last modified time | relevance | path

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

/PHP-7.4/ext/fileinfo/libmagic/
H A Dder.c298 size_t slen = strlen(buf); in der_cmp() local
300 if (strncmp(buf, s, slen) != 0) in der_cmp()
303 s += slen; in der_cmp()
316 slen = 0; in der_cmp()
318 slen = slen * 10 + *s - '0'; in der_cmp()
322 __func__, slen, tlen); in der_cmp()
323 if (tlen != slen) in der_cmp()
H A Dcdf.c945 size_t i, o4, nelements, j, slen, left; in cdf_read_property_info() local
1003 slen = 2; in cdf_read_property_info()
1006 slen = 1; in cdf_read_property_info()
1008 o4 = slen * sizeof(uint32_t); in cdf_read_property_info()
1050 l = CDF_GETUINT32(q, slen); in cdf_read_property_info()
1067 slen += l >> 1; in cdf_read_property_info()
1068 o4 = slen * sizeof(uint32_t); in cdf_read_property_info()
H A Dfuncs.c601 file_printable(char *buf, size_t bufsiz, const char *str, size_t slen) in file_printable() argument
605 const unsigned char *es = s + slen; in file_printable()
H A Dsoftmagic.c2099 size_t slen; in magiccheck() local
2105 slen = MIN(m->vallen, sizeof(m->value.s)); in magiccheck()
2109 if (slen > 0 && m->str_flags == 0) { in magiccheck()
2111 idx = m->str_range + slen; in magiccheck()
2115 m->value.s, slen)); in magiccheck()
2126 if (slen + idx > ms->search.s_len) in magiccheck()
2129 v = file_strncmp(m->value.s, ms->search.s + idx, slen, in magiccheck()
H A Dapprentice.c1248 size_t slen; in coalesce_entries() local
1253 slen = sizeof(**ma) * mentrycount; in coalesce_entries()
1254 if ((*ma = CAST(struct magic *, emalloc(slen))) == NULL) { in coalesce_entries()
1255 file_oomem(ms, slen); in coalesce_entries()
/PHP-7.4/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.4/win32/
H A Dsendmail.c893 int slen; in Post() local
903 if ((slen = send(PW32G(mail_socket), msg + index, len, 0)) < 1) in Post()
905 len -= slen; in Post()
906 index += slen; in Post()
/PHP-7.4/sapi/fpm/fpm/
H A Dfpm_main.c1134 int slen = len - ptlen; in init_request_info() local
1141 tflag = (slen != 0 && (!orig_path_info || strcmp(orig_path_info, path_info) != 0)); in init_request_info()
1143 path_info = (env_path_info && pilen > slen) ? env_path_info + pilen - slen : NULL; in init_request_info()
1170 if (snlen>slen && !strcmp(env_script_name+snlen-slen, path_info)) { in init_request_info()
1172 env_script_name[snlen-slen] = 0; in init_request_info()
/PHP-7.4/ext/sockets/
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()
H A Dsockets.c1789 socklen_t slen; local
1812 slen = sizeof(s_un);
1813 memset(&s_un, 0, slen);
1816 …hp_sock->bsd_socket, ZSTR_VAL(recv_buf), arg3, arg4, (struct sockaddr *)&s_un, (socklen_t *)&slen);
1831 slen = sizeof(sin);
1832 memset(&sin, 0, slen);
1840 …php_sock->bsd_socket, ZSTR_VAL(recv_buf), arg3, arg4, (struct sockaddr *)&sin, (socklen_t *)&slen);
1858 slen = sizeof(sin6);
1859 memset(&sin6, 0, slen);
1867 …hp_sock->bsd_socket, ZSTR_VAL(recv_buf), arg3, arg4, (struct sockaddr *)&sin6, (socklen_t *)&slen);
/PHP-7.4/ext/mbstring/tests/
H A Dmb_stripos.phpt16 $slen = mb_strlen($euc_jp, 'EUC-JP');
17 echo "String len: $slen\n";
H A Dmb_strpos.phpt16 $slen = mb_strlen($euc_jp, 'EUC-JP');
17 echo "String len: $slen\n";
/PHP-7.4/ext/fileinfo/
H A Dlibmagic.patch435 slen = sizeof(**ma) * mentrycount;
436 - if ((*ma = CAST(struct magic *, malloc(slen))) == NULL) {
437 + if ((*ma = CAST(struct magic *, emalloc(slen))) == NULL) {
438 file_oomem(ms, slen);
1278 slen = 2;
3529 - size_t slen = ms->search.s_len;
3531 - if (slen != 0) {
3532 - copy = CAST(char *, malloc(slen));
3537 - slen);
3540 - memcpy(copy, ms->search.s, slen);
[all …]
/PHP-7.4/sapi/cgi/
H A Dcgi_main.c1298 size_t slen = len - strlen(pt); local
1300 char *path_info = env_path_info ? env_path_info + pilen - slen : NULL;
2459 size_t slen = strlen(PG(arg_separator).input); local
2463 len += strlen(argv[i]) + slen;
/PHP-7.4/ext/spl/
H A Dspl_directory.c1010 size_t slen = 0, path_len; in SPL_METHOD() local
1012 if (zend_parse_parameters(ZEND_NUM_ARGS(), "|s", &suffix, &slen) == FAILURE) { in SPL_METHOD()
1026 RETURN_STR(php_basename(fname, flen, suffix, slen)); in SPL_METHOD()
1036 size_t slen = 0; in SPL_METHOD() local
1039 if (zend_parse_parameters(ZEND_NUM_ARGS(), "|s", &suffix, &slen) == FAILURE) { in SPL_METHOD()
1043 fname = php_basename(intern->u.dir.entry.d_name, strlen(intern->u.dir.entry.d_name), suffix, slen); in SPL_METHOD()
/PHP-7.4/ext/standard/
H A Dstring.c3005 size_t slen = ZSTR_LEN(input); local
3020 num_bitset = ecalloc((slen + sizeof(zend_ulong)) / sizeof(zend_ulong), sizeof(zend_ulong));
3032 } else if (UNEXPECTED(len > slen)) {
3056 if (UNEXPECTED(len > slen)) {
3073 if (UNEXPECTED(len > slen)) {
3096 while (pos <= slen - minlen) {
3100 if (len > slen - pos) {
3101 len = slen - pos;
3124 smart_str_appendl(&result, str + old_pos, slen - old_pos);
/PHP-7.4/ext/mbstring/
H A Dmbstring.c2536 size_t slen = mbfl_strlen(&haystack); in PHP_FUNCTION() local
2538 offset += slen; in PHP_FUNCTION()
2540 if (offset < 0 || offset > slen) { in PHP_FUNCTION()

Completed in 86 milliseconds