Home
last modified time | relevance | path

Searched refs:len (Results 101 – 125 of 519) sorted by relevance

12345678910>>...21

/PHP-7.0/sapi/cgi/
H A Dcgi_main.c382 int len; in sapi_cgi_send_headers() local
548 size_t len; in _sapi_cgi_putenv() local
577 len = slprintf(buf, len - 1, "%s=%s", name, value); in _sapi_cgi_putenv()
583 len = slprintf(buf, len - 1, "%s=", name); in _sapi_cgi_putenv()
1655 len--;
1656 } while (len != 0 && (h->header[len-1] == ' ' || h->header[len-1] == '\t'));
1657 if (len) {
1660 s[len] = 0;
1714 size_t len; local
2275 len = 0;
[all …]
/PHP-7.0/ext/standard/tests/strings/
H A Dstrcspn_basic.phpt5 /* Prototype : proto int strcspn(string str, string mask [, int start [, int len]])
7 … If start or/and length is provided, it works like strcspn(substr($s,$start,$len),$bad_chars)
23 $len = 30;
26 var_dump( strcspn($str, $mask, $start, $len) );
H A Dstrncasecmp_error.phpt5 /* Prototype : int strncasecmp ( string $str1, string $str2, int $len );
13 $len = 10;
24 var_dump( strncasecmp($str1, $str2, $len, $extra_arg) );
27 $len = -10;
28 var_dump( strncasecmp($str1, $str2, $len) );
H A Dstrcspn_variation9.phpt2 Test strcspn() function : usage variations - different strings with default start and len args
5 /* Prototype : proto int strcspn(string str, string mask [, int start [, int len]])
7 … If start or/and length is provided works like strcspn(substr($s,$start,$len),$bad_chars)
13 * Testing strcspn() : with different strings as str argument and default start and len args
16 echo "*** Testing strcspn() : with different str and default start and len args ***\n";
56 *** Testing strcspn() : with different str and default start and len args ***
/PHP-7.0/ext/zip/lib/
H A Dzip_file_set_comment.c42 const char *comment, zip_uint16_t len, zip_flags_t flags) in zip_file_set_comment() argument
56 if (len > 0 && comment == NULL) { in zip_file_set_comment()
61 if (len > 0) { in zip_file_set_comment()
62 if ((cstr=_zip_string_new((const zip_uint8_t *)comment, len, flags, &za->error)) == NULL) in zip_file_set_comment()
/PHP-7.0/ext/pgsql/tests/
H A Dpg_meta_data_001.phpt37 ["len"]=>
54 ["len"]=>
73 ["len"]=>
90 ["len"]=>
109 ["len"]=>
134 ["len"]=>
/PHP-7.0/ext/sockets/tests/
H A Dsocket_sentto_recvfrom_ipv4_udp.phpt27 $len = strlen($msg);
28 $bytes_sent = socket_sendto($socket, $msg, $len, 0, $address, 1223);
31 } else if ($bytes_sent != $len) {
32 die($bytes_sent . ' bytes have been sent instead of the ' . $len . ' bytes expected');
42 } else if ($bytes_received != $len) {
43 … die($bytes_received . ' bytes have been received instead of the ' . $len . ' bytes expected');
H A Dsocket_sentto_recvfrom_ipv6_udp.phpt29 $len = strlen($msg);
30 $bytes_sent = socket_sendto($socket, $msg, $len, 0, $address, 1223);
33 } else if ($bytes_sent != $len) {
34 die($bytes_sent . ' bytes have been sent instead of the ' . $len . ' bytes expected');
44 } else if ($bytes_received != $len) {
45 … die($bytes_received . ' bytes have been received instead of the ' . $len . ' bytes expected');
H A Dsocket_sentto_recvfrom_ipv6_udp-win32.phpt29 $len = strlen($msg);
30 $bytes_sent = socket_sendto($socket, $msg, $len, 0, $address, 1223);
33 } else if ($bytes_sent != $len) {
34 die($bytes_sent . ' bytes have been sent instead of the ' . $len . ' bytes expected');
44 } else if ($bytes_received != $len) {
45 … die($bytes_received . ' bytes have been received instead of the ' . $len . ' bytes expected');
/PHP-7.0/sapi/phpdbg/
H A Dphpdbg_list.c84 phpdbg_list_function_byname(param->str, param->len); in PHPDBG_LIST()
115 if (phpdbg_safe_class_lookup(param->str, param->len, &ce) == SUCCESS) { in PHPDBG_LIST()
192 void phpdbg_list_function_byname(const char *str, size_t len) /* {{{ */ in phpdbg_list_function_byname() argument
197 size_t func_name_len = len; in phpdbg_list_function_byname()
242 if (zend_stream_fixup(file, &bufptr, &data.len) == FAILURE) { in phpdbg_compile_file()
248 data.buf = emalloc(data.len + ZEND_MMAP_AHEAD + 1); in phpdbg_compile_file()
249 if (data.len > 0) { in phpdbg_compile_file()
250 memcpy(data.buf, bufptr, data.len); in phpdbg_compile_file()
252 memset(data.buf + data.len, 0, ZEND_MMAP_AHEAD + 1); in phpdbg_compile_file()
258 fake.handle.stream.mmap.len = data.len; in phpdbg_compile_file()
[all …]
H A Dphpdbg_print.c153 if (phpdbg_safe_class_lookup(param->str, param->len, &ce) == SUCCESS) { in PHPDBG_PRINT()
216 size_t func_name_len = param->len; in PHPDBG_PRINT()
265 void phpdbg_print_opcodes_function(const char *function, size_t len) { in phpdbg_print_opcodes_function() argument
266 zend_function *func = zend_hash_str_find_ptr(EG(function_table), function, len); in phpdbg_print_opcodes_function()
272 ….function_name->len == len && !zend_binary_strcasecmp(function, len, func->op_array.function_name-… in phpdbg_print_opcodes_function()
273 phpdbg_print_opcodes_function(rt_name->val, rt_name->len); in phpdbg_print_opcodes_function()
308 …if (ce->name->len == strlen(class) && !zend_binary_strcasecmp(class, strlen(class), ce->name->val,… in phpdbg_print_opcodes_method()
366 …if (ce->name->len == strlen(class) && !zend_binary_strcasecmp(class, strlen(class), ce->name->val,… in phpdbg_print_opcodes_class()
/PHP-7.0/ext/hash/
H A Dhash_crc32.c31 PHP_HASH_API void PHP_CRC32Update(PHP_CRC32_CTX *context, const unsigned char *input, size_t len) in PHP_CRC32Update() argument
35 for (i = 0; i < len; ++i) { in PHP_CRC32Update()
40 PHP_HASH_API void PHP_CRC32BUpdate(PHP_CRC32_CTX *context, const unsigned char *input, size_t len) in PHP_CRC32BUpdate() argument
44 for (i = 0; i < len; ++i) { in PHP_CRC32BUpdate()
H A Dhash_snefru.c142 PHP_HASH_API void PHP_SNEFRUUpdate(PHP_SNEFRU_CTX *context, const unsigned char *input, size_t len) in PHP_SNEFRUUpdate() argument
144 if ((MAX32 - context->count[1]) < (len * 8)) { in PHP_SNEFRUUpdate()
147 context->count[1] = (len * 8) - context->count[1]; in PHP_SNEFRUUpdate()
149 context->count[1] += len * 8; in PHP_SNEFRUUpdate()
152 if (context->length + len < 32) { in PHP_SNEFRUUpdate()
153 memcpy(&context->buffer[context->length], input, len); in PHP_SNEFRUUpdate()
154 context->length += len; in PHP_SNEFRUUpdate()
156 size_t i = 0, r = (context->length + len) % 32; in PHP_SNEFRUUpdate()
164 for (; i + 32 <= len; i += 32) { in PHP_SNEFRUUpdate()
/PHP-7.0/ext/mbstring/oniguruma/enc/
H A Dbig5.c118 int len; in big5_left_adjust_char_head() local
131 len = enclen(ONIG_ENCODING_BIG5, p); in big5_left_adjust_char_head()
132 if (p + len > s) return (UChar* )p; in big5_left_adjust_char_head()
133 p += len; in big5_left_adjust_char_head()
H A Dunicode.c10819 int len; in onigenc_unicode_property_name_to_ctype() local
10826 len = 0; in onigenc_unicode_property_name_to_ctype()
10839 buf[len] = 0; in onigenc_unicode_property_name_to_ctype()
10985 int i, len, rlen; local
10992 *pp += len;
11018 fold += len;
11019 rlen += len;
11028 return len;
11324 p += len;
11338 len += clen;
[all …]
H A Deuc_kr.c101 int len; in euckr_left_adjust_char_head() local
107 len = enclen(ONIG_ENCODING_EUC_KR, p); in euckr_left_adjust_char_head()
108 if (p + len > s) return (UChar* )p; in euckr_left_adjust_char_head()
109 p += len; in euckr_left_adjust_char_head()
/PHP-7.0/Zend/
H A Dzend_virtual_cwd.c114 (len >= 2 && !php_check_dots(element, len))
331 if (r < len) { in php_sys_stat_ex()
346 len = r+1; in php_sys_stat_ex()
396 if (len >= 4 && path[len-4] == '.') { in php_sys_stat_ex()
812 i = len; in tsrm_realpath_r()
817 if (i == len || in tsrm_realpath_r()
820 len = i - 1; in tsrm_realpath_r()
865 path[len] = 0; in tsrm_realpath_r()
906 !(IS_UNC_PATH(path, len) && len >= 3 && path[2] != '?') && in tsrm_realpath_r()
1038 j = len; in tsrm_realpath_r()
[all …]
/PHP-7.0/ext/fileinfo/libmagic/
H A Dcdf.c157 (void)memcpy(&(a), &buf[len], sizeof(a)), len += sizeof(a)
159 (void)memcpy((a), &buf[len], sizeof(a)), len += sizeof(a)
319 if (FINFO_READ_FUNC(info->i_fd, buf, len) != (ssize_t)len) in cdf_read()
383 return len; in cdf_read_short_sector()
1142 int len = 0; in cdf_print_elapsed_time() local
1155 len += snprintf(buf + len, bufsiz - len, "%dd+", days); in cdf_print_elapsed_time()
1161 len += snprintf(buf + len, bufsiz - len, "%.2d:", hours); in cdf_print_elapsed_time()
1166 len += snprintf(buf + len, bufsiz - len, "%.2d:", mins); in cdf_print_elapsed_time()
1168 return len; in cdf_print_elapsed_time()
1170 len += snprintf(buf + len, bufsiz - len, "%.2d", secs); in cdf_print_elapsed_time()
[all …]
/PHP-7.0/ext/wddx/
H A Dphp_wddx_api.h52 #define php_wddx_add_chunk_ex(packet, str, len) smart_str_appendl(packet, str, len) argument
65 #define php_wddx_gather(packet) estrndup(packet->c, packet->len)
/PHP-7.0/ext/xmlrpc/libxmlrpc/
H A Dxml_element.c281 return fptr && text ? fptr(data, text, len ? len : strlen(text)) : 0; in xml_elem_writefunc()
439 if(!el->text.len && !Q_Size(&el->children)) { in xml_element_serialize()
447 if(el->text.len) { in xml_element_serialize()
449 int buflen = el->text.len; in xml_element_serialize()
545 *buf_len = buf.len; in xml_elem_serialize_to_string()
637 int len) in _xmlrpc_charHandler() argument
647 len = new_len; in _xmlrpc_charHandler()
653 simplestring_addn(&mydata->current->text, s, len); in _xmlrpc_charHandler()
714 if(!len) { in xml_elem_parse_buf()
715 len = strlen(in_buf); in xml_elem_parse_buf()
[all …]
H A Dencodings.h43 char* utf8_encode(const char *s, int len, int *newlen, ENCODING_ID encoding);
44 char* utf8_decode(const char *s, int len, int *newlen, ENCODING_ID encoding);
/PHP-7.0/ext/mbstring/oniguruma/
H A Dregposix.c39 #define ENC_STRING_LEN(enc,s,len) do { \ argument
43 len = tmps - (UChar* )(s); \
46 len = onigenc_str_bytelen_null(enc, (UChar* )s); \
136 int r, len; in regcomp() local
153 ENC_STRING_LEN(OnigEncDefaultCharEncoding, pattern, len); in regcomp()
154 r = onig_new(PONIG_C(reg), (UChar* )pattern, (UChar* )(pattern + len), in regcomp()
169 int r, i, len; in regexec() local
192 ENC_STRING_LEN(ONIG_C(reg)->enc, str, len); in regexec()
193 end = (UChar* )(str + len); in regexec()
/PHP-7.0/sapi/litespeed/
H A Dlsapi_main.c352 int len; in sapi_lsapi_send_headers() local
381 ++len; in sapi_lsapi_log_message()
483 int len; in lsapi_execute_script() local
493 if ( len > 45 ) in lsapi_execute_script()
494 len = len - 45; in lsapi_execute_script()
496 len = 0; in lsapi_execute_script()
589 --len; in pathlen_without_trailing_slash()
591 return len; in pathlen_without_trailing_slash()
1455 int len; in PHP_FUNCTION() local
1474 while( len > 0 && (isspace( headerBuf[len-1])) ) { in PHP_FUNCTION()
[all …]
/PHP-7.0/ext/standard/tests/
H A Dbug71827.phpt5 $line = str_repeat(' ',20); $value ='03'; $pos=0; $len='2';
6 $line = substr_replace($line,$value,$pos,$len);
/PHP-7.0/ext/mbstring/libmbfl/mbfl/
H A Dmbfilter.c823 len = 0; in mbfl_strlen()
825 len = string->len; in mbfl_strlen()
827 len = string->len/2; in mbfl_strlen()
829 len = string->len/4; in mbfl_strlen()
841 len++; in mbfl_strlen()
865 return len; in mbfl_strlen()
951 len = 0; in mbfl_oddlen()
1032 if (haystack_u8->len < needle_u8->len) { in mbfl_strpos()
1322 len = string->len; in mbfl_substr()
1780 int len, n; in mbfl_strwidth() local
[all …]

Completed in 211 milliseconds

12345678910>>...21