Home
last modified time | relevance | path

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

/PHP-8.0/ext/fileinfo/libmagic/
H A Dder.c333 size_t slen = strlen(buf); in der_cmp() local
335 if (strncmp(buf, s, slen) != 0) in der_cmp()
338 s += slen; in der_cmp()
351 slen = 0; in der_cmp()
353 slen = slen * 10 + *s - '0'; in der_cmp()
357 __func__, slen, tlen); in der_cmp()
358 if (tlen != slen) in der_cmp()
H A Dcdf.c961 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 Dsoftmagic.c2171 size_t slen; in magiccheck() local
2177 slen = MIN(m->vallen, sizeof(m->value.s)); in magiccheck()
2181 if (slen > 0 && m->str_flags == 0) { in magiccheck()
2183 idx = m->str_range + slen; in magiccheck()
2187 m->value.s, slen)); in magiccheck()
2198 if (slen + idx > ms->search.s_len) in magiccheck()
2201 v = file_strncmp(m->value.s, ms->search.s + idx, slen, in magiccheck()
H A Dfuncs.c688 file_printable(char *buf, size_t bufsiz, const char *str, size_t slen) in file_printable() argument
692 const unsigned char *es = s + slen; in file_printable()
H A Dapprentice.c1288 size_t slen; in coalesce_entries() local
1293 slen = sizeof(**ma) * mentrycount; in coalesce_entries()
1294 if ((*ma = CAST(struct magic *, emalloc(slen))) == NULL) { in coalesce_entries()
1295 file_oomem(ms, slen); in coalesce_entries()
/PHP-8.0/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-8.0/ext/mbstring/tests/
H A Dmb_stripos_invalid_offset.phpt15 $slen = mb_strlen($string);
16 echo "String len: $slen\n";
H A Dmb_strpos_invalid_offset.phpt15 $slen = mb_strlen($string);
16 echo "String len: $slen\n";
H A Dmb_strpos.phpt16 $slen = mb_strlen($euc_jp, 'EUC-JP');
17 echo "String len: $slen\n";
H A Dmb_stripos.phpt16 $slen = mb_strlen($euc_jp, 'EUC-JP');
17 echo "String len: $slen\n";
/PHP-8.0/win32/
H A Dsendmail.c894 int slen; in Post() local
904 if ((slen = send(PW32G(mail_socket), msg + index, len, 0)) < 1) in Post()
906 len -= slen; in Post()
907 index += slen; in Post()
/PHP-8.0/sapi/fpm/fpm/
H A Dfpm_main.c1125 int slen = len - ptlen; in init_request_info() local
1132 tflag = (slen != 0 && (!orig_path_info || strcmp(orig_path_info, path_info) != 0)); in init_request_info()
1134 path_info = (env_path_info && pilen > slen) ? env_path_info + pilen - slen : NULL; in init_request_info()
1161 if (snlen>slen && !strcmp(env_script_name+snlen-slen, path_info)) { in init_request_info()
1163 env_script_name[snlen-slen] = 0; in init_request_info()
/PHP-8.0/ext/sockets/
H A Dsockets.c1536 socklen_t slen; local
1559 slen = sizeof(s_un);
1560 memset(&s_un, 0, slen);
1563 …hp_sock->bsd_socket, ZSTR_VAL(recv_buf), arg3, arg4, (struct sockaddr *)&s_un, (socklen_t *)&slen);
1578 slen = sizeof(sin);
1579 memset(&sin, 0, slen);
1587 …php_sock->bsd_socket, ZSTR_VAL(recv_buf), arg3, arg4, (struct sockaddr *)&sin, (socklen_t *)&slen);
1605 slen = sizeof(sin6);
1606 memset(&sin6, 0, slen);
1614 …hp_sock->bsd_socket, ZSTR_VAL(recv_buf), arg3, arg4, (struct sockaddr *)&sin6, (socklen_t *)&slen);
H A Dmulticast.c196 slen; in php_do_mcast_opt() local
206 &slen) == FAILURE) { in php_do_mcast_opt()
215 glen, (struct sockaddr*)&source, slen, if_index); in php_do_mcast_opt()
/PHP-8.0/ext/spl/
H A Dspl_directory.c1007 size_t slen = 0, path_len; in PHP_METHOD() local
1009 if (zend_parse_parameters(ZEND_NUM_ARGS(), "|s", &suffix, &slen) == FAILURE) { in PHP_METHOD()
1028 RETURN_STR(php_basename(fname, flen, suffix, slen)); in PHP_METHOD()
1037 size_t slen = 0; in PHP_METHOD() local
1040 if (zend_parse_parameters(ZEND_NUM_ARGS(), "|s", &suffix, &slen) == FAILURE) { in PHP_METHOD()
1044 fname = php_basename(intern->u.dir.entry.d_name, strlen(intern->u.dir.entry.d_name), suffix, slen); in PHP_METHOD()
/PHP-8.0/sapi/cgi/
H A Dcgi_main.c1285 size_t slen = len - strlen(pt); local
1287 char *path_info = env_path_info ? env_path_info + pilen - slen : NULL;
2430 size_t slen = strlen(PG(arg_separator).input); local
2434 len += strlen(argv[i]) + slen;
/PHP-8.0/ext/standard/
H A Dstring.c2728 size_t slen = ZSTR_LEN(input); local
2743 num_bitset = ecalloc((slen + sizeof(zend_ulong)) / sizeof(zend_ulong), sizeof(zend_ulong));
2755 } else if (UNEXPECTED(len > slen)) {
2779 if (UNEXPECTED(len > slen)) {
2796 if (UNEXPECTED(len > slen)) {
2819 while (pos <= slen - minlen) {
2823 if (len > slen - pos) {
2824 len = slen - pos;
2847 smart_str_appendl(&result, str + old_pos, slen - old_pos);
/PHP-8.0/ext/fileinfo/
H A Dlibmagic.patch392 slen = sizeof(**ma) * mentrycount;
393 - if ((*ma = CAST(struct magic *, malloc(slen))) == NULL) {
394 + if ((*ma = CAST(struct magic *, emalloc(slen))) == NULL) {
395 file_oomem(ms, slen);
3597 - size_t slen = ms->search.s_len;
3599 - if (slen != 0) {
3600 - copy = CAST(char *, malloc(slen));
3605 - slen);
3608 - memcpy(copy, ms->search.s, slen);
3609 - copy[--slen] = '\0';

Completed in 92 milliseconds