Home
last modified time | relevance | path

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

/PHP-7.1/ext/phar/
H A Dmakestub.php21 $slen = strlen($s) - strlen('index.php') - strlen("000"); variable
93 $stub .= "\n\tstatic const int newstub_len = " . $slen . ";
/PHP-7.1/ext/intl/breakiterator/
H A Dbreakiterator_iterators.cpp171 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.1/win32/
H A Dsendmail.c877 int slen; in Post() local
887 if ((slen = send(PW32G(mail_socket), msg + index, len, 0)) < 1) in Post()
889 len -= slen; in Post()
890 index += slen; in Post()
/PHP-7.1/sapi/fpm/fpm/
H A Dfpm_main.c1203 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.1/ext/mbstring/tests/
H A Dmb_strpos.phpt17 $slen = mb_strlen($euc_jp, 'EUC-JP');
18 echo "String len: $slen\n";
H A Dmb_stripos.phpt17 $slen = mb_strlen($euc_jp, 'EUC-JP');
18 echo "String len: $slen\n";
/PHP-7.1/ext/sockets/
H A Dsockets.c1695 socklen_t slen; local
1718 slen = sizeof(s_un);
1720 …hp_sock->bsd_socket, ZSTR_VAL(recv_buf), arg3, arg4, (struct sockaddr *)&s_un, (socklen_t *)&slen);
1738 slen = sizeof(sin);
1739 memset(&sin, 0, slen);
1747 …php_sock->bsd_socket, ZSTR_VAL(recv_buf), arg3, arg4, (struct sockaddr *)&sin, (socklen_t *)&slen);
1769 slen = sizeof(sin6);
1770 memset(&sin6, 0, slen);
1778 …hp_sock->bsd_socket, ZSTR_VAL(recv_buf), arg3, arg4, (struct sockaddr *)&sin6, (socklen_t *)&slen);
H A Dmulticast.c205 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.1/ext/mbstring/oniguruma/
H A Dregcomp.c474 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()
4589 if (slen > 0) { in optimize_node_left()
4592 set_mml(&opt->len, slen, slen); in optimize_node_left()
4606 if (slen > 0) { in optimize_node_left()
4612 max = slen; in optimize_node_left()
[all …]
H A Dregparse.c232 int slen, term_len, i; in strdup_with_null() local
235 slen = end - s; in strdup_with_null()
238 r = (UChar* )xmalloc(slen + term_len); in strdup_with_null()
240 xmemcpy(r, s, slen); in strdup_with_null()
243 r[slen + i] = (UChar )0; in strdup_with_null()
/PHP-7.1/ext/fileinfo/
H A Dlibmagic.patch438 slen = sizeof(**ma) * mentrycount;
439 - if ((*ma = CAST(struct magic *, malloc(slen))) == NULL) {
440 + if ((*ma = CAST(struct magic *, emalloc(slen))) == NULL) {
441 file_oomem(ms, slen);
3579 - size_t slen = ms->search.s_len;
3583 - if (slen != 0) {
3584 - copy = malloc(slen);
3588 - slen);
3591 - memcpy(copy, ms->search.s, slen);
3592 - copy[--slen] = '\0';
[all …]
/PHP-7.1/ext/fileinfo/libmagic/
H A Dsoftmagic.c1977 size_t slen; in magiccheck() local
1983 slen = MIN(m->vallen, sizeof(m->value.s)); in magiccheck()
1988 if (slen + idx > ms->search.s_len) in magiccheck()
1991 v = file_strncmp(m->value.s, ms->search.s + idx, slen, in magiccheck()
H A Dapprentice.c1182 size_t slen; in coalesce_entries() local
1187 slen = sizeof(**ma) * mentrycount; in coalesce_entries()
1188 if ((*ma = CAST(struct magic *, emalloc(slen))) == NULL) { in coalesce_entries()
1189 file_oomem(ms, slen); in coalesce_entries()
/PHP-7.1/ext/spl/
H A Dspl_directory.c986 size_t slen = 0, path_len; in SPL_METHOD() local
988 if (zend_parse_parameters(ZEND_NUM_ARGS(), "|s", &suffix, &slen) == FAILURE) { in SPL_METHOD()
1002 RETURN_STR(php_basename(fname, flen, suffix, slen)); in SPL_METHOD()
1012 size_t slen = 0; in SPL_METHOD() local
1015 if (zend_parse_parameters(ZEND_NUM_ARGS(), "|s", &suffix, &slen) == FAILURE) { in SPL_METHOD()
1019 fname = php_basename(intern->u.dir.entry.d_name, strlen(intern->u.dir.entry.d_name), suffix, slen); in SPL_METHOD()
/PHP-7.1/ext/standard/
H A Dstring.c2931 size_t slen = ZSTR_LEN(input); local
2946 num_bitset = ecalloc((slen + sizeof(zend_ulong)) / sizeof(zend_ulong), sizeof(zend_ulong));
2958 } else if (UNEXPECTED(len > slen)) {
2982 if (UNEXPECTED(len > slen)) {
2998 if (UNEXPECTED(len > slen)) {
3021 while (pos <= slen - minlen) {
3025 if (len > slen - pos) {
3026 len = slen - pos;
3048 smart_str_appendl(&result, str + old_pos, slen - old_pos);
/PHP-7.1/sapi/cgi/
H A Dcgi_main.c1299 size_t slen = len - strlen(pt); local
1301 char *path_info = env_path_info ? env_path_info + pilen - slen : NULL;
2501 size_t slen = strlen(PG(arg_separator).input); local
2505 len += strlen(argv[i]) + slen;
/PHP-7.1/ext/mbstring/
H A Dmbstring.c2273 zend_long offset = 0, slen; in PHP_FUNCTION() local
2308 slen = mbfl_strlen(&haystack); in PHP_FUNCTION()
2310 offset += slen; in PHP_FUNCTION()
2312 if (offset < 0 || offset > slen) { in PHP_FUNCTION()

Completed in 104 milliseconds