/PHP-7.0/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.0/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.0/win32/ |
H A D | sendmail.c | 876 int slen; in Post() local 886 if ((slen = send(PW32G(mail_socket), msg + index, len, 0)) < 1) in Post() 888 len -= slen; in Post() 889 index += slen; in Post()
|
/PHP-7.0/sapi/fpm/fpm/ |
H A D | fpm_main.c | 1202 int slen = len - ptlen; local 1209 tflag = (slen != 0 && (!orig_path_info || strcmp(orig_path_info, path_info) != 0)); 1211 path_info = env_path_info ? env_path_info + pilen - slen : NULL; 1238 if (snlen>slen && !strcmp(env_script_name+snlen-slen, path_info)) { 1240 env_script_name[snlen-slen] = 0;
|
/PHP-7.0/ext/sockets/ |
H A D | sockets.c | 1685 socklen_t slen; local 1708 slen = sizeof(s_un); 1710 …hp_sock->bsd_socket, ZSTR_VAL(recv_buf), arg3, arg4, (struct sockaddr *)&s_un, (socklen_t *)&slen); 1728 slen = sizeof(sin); 1729 memset(&sin, 0, slen); 1737 …php_sock->bsd_socket, ZSTR_VAL(recv_buf), arg3, arg4, (struct sockaddr *)&sin, (socklen_t *)&slen); 1759 slen = sizeof(sin6); 1760 memset(&sin6, 0, slen); 1768 …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.0/ext/mbstring/oniguruma/ |
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() 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 D | regparse.c | 232 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.0/sapi/cgi/ |
H A D | cgi_main.c | 1242 size_t slen = len - strlen(pt); local 1244 char *path_info = env_path_info ? env_path_info + pilen - slen : NULL; 2274 size_t slen = strlen(PG(arg_separator).input); local 2278 len += strlen(argv[i]) + slen;
|
/PHP-7.0/ext/fileinfo/ |
H A D | libmagic.patch | 438 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.0/ext/fileinfo/libmagic/ |
H A D | softmagic.c | 1977 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 D | apprentice.c | 1182 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.0/ext/spl/ |
H A D | spl_directory.c | 985 size_t slen = 0, path_len; in SPL_METHOD() local 987 if (zend_parse_parameters(ZEND_NUM_ARGS(), "|s", &suffix, &slen) == FAILURE) { in SPL_METHOD() 1001 RETURN_STR(php_basename(fname, flen, suffix, slen)); in SPL_METHOD() 1011 size_t slen = 0; in SPL_METHOD() local 1014 if (zend_parse_parameters(ZEND_NUM_ARGS(), "|s", &suffix, &slen) == FAILURE) { in SPL_METHOD() 1018 fname = php_basename(intern->u.dir.entry.d_name, strlen(intern->u.dir.entry.d_name), suffix, slen); in SPL_METHOD()
|
/PHP-7.0/ext/standard/ |
H A D | string.c | 2915 size_t slen = ZSTR_LEN(input); local 2930 num_bitset = ecalloc((slen + sizeof(zend_ulong)) / sizeof(zend_ulong), sizeof(zend_ulong)); 2942 } else if (UNEXPECTED(len > slen)) { 2966 if (UNEXPECTED(len > slen)) { 2982 if (UNEXPECTED(len > slen)) { 3005 while (pos <= slen - minlen) { 3009 if (len > slen - pos) { 3010 len = slen - pos; 3032 smart_str_appendl(&result, str + old_pos, slen - old_pos);
|