Home
last modified time | relevance | path

Searched refs:len (Results 276 – 300 of 496) sorted by relevance

1...<<11121314151617181920

/PHP-5.5/ext/phar/
H A Dutil.c1400 size_t len = 0; in phar_hex_str() local
1404 for (; len < digest_len; ++len) { in phar_hex_str()
1529 int read_size, len; local
1631 read_len -= (off_t)len;
1671 read_len -= (off_t)len;
1704 read_len -= (off_t)len;
1744 PHP_SHA1Update(&context, buf, len);
1745 read_len -= (off_t)len;
1777 PHP_MD5Update(&context, buf, len);
1778 read_len -= (off_t)len;
[all …]
/PHP-5.5/ext/standard/tests/strings/
H A Dstrncasecmp_variation4.phpt5 /* Prototype : int strncasecmp ( string $str1, string $str2, int $len );
92 $len = strlen($values[$index]) + 1;
93 var_dump( strncasecmp($str1, $str2, $len) );
H A Dstrncasecmp_variation10.phpt5 /* Prototype : int strncasecmp ( string $str1, string $str2, int $len );
91 $len = strlen($values[$index]) + 1;
92 var_dump( strncasecmp($str1, "string", $len) );
H A Dstrspn_variation7.phpt2 Test strspn() function : usage variations - with heredoc strings, varying start and default len args
5 /* Prototype : proto int strspn(string str, string mask [, int start [, int len]])
7 … If start or/and length is provided works like strspn(substr($s,$start,$len),$good_chars)
13 * Testing strspn() : with heredoc string, varying start and default len arguments
98 var_dump( strspn($str,$mask,$start) ); // with default len value
H A Dstrcspn_variation7.phpt2 Test strcspn() function : usage variations - with heredoc strings, varying start and default len ar…
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 heredoc string, varying start and default len arguments
98 var_dump( strcspn($str,$mask,$start) ); // with default len value
H A Dstrncasecmp_variation11.phpt5 /* Prototype : int strncasecmp ( string $str1, string $str2, int $len );
92 $len = strlen($values[$index]) + 1;
93 var_dump( strncasecmp("string", $str2, $len) );
H A Dstrncmp_variation4.phpt5 /* Prototype : int strncmp ( string $str1, string $str2, int $len );
92 $len = strlen($values[$index]) + 1;
93 var_dump( strncmp($str1, $str2, $len) );
/PHP-5.5/ext/hash/
H A Dhash_md.c67 static void Encode(unsigned char *output, php_hash_uint32 *input, unsigned int len) in Encode() argument
71 for (i = 0, j = 0; j < len; i++, j += 4) { in Encode()
84 static void Decode(php_hash_uint32 *output, const unsigned char *input, unsigned int len) in Decode() argument
88 for (i = 0, j = 0; j < len; i++, j += 4) in Decode()
657 PHP_HASH_API void PHP_MD2Update(PHP_MD2_CTX *context, const unsigned char *buf, unsigned int len) in PHP_MD2Update() argument
659 const unsigned char *p = buf, *e = buf + len; in PHP_MD2Update()
662 if (context->in_buffer + len < 16) { in PHP_MD2Update()
664 memcpy(context->buffer + context->in_buffer, p, len); in PHP_MD2Update()
665 context->in_buffer += len; in PHP_MD2Update()
/PHP-5.5/ext/mbstring/oniguruma/
H A Dregexec.c1297 int len; in match_at() local
1441 int len; in match_at() local
1530 int len; in match_at() local
2141 int len; in match_at() local
2163 sprev += len; in match_at()
2173 int len; in match_at() local
2195 sprev += len; in match_at()
2204 int len, is_fail; in match_at() local
2283 int len; in match_at() local
2973 int i, len; in set_bm_backward_skip() local
[all …]
H A Dregparse.c221 int len = end - src; in onig_strcpy() local
222 if (len > 0) { in onig_strcpy()
662 int i, len; in name_find() local
670 if (len == e->name_len && onig_strncmp(name, e->name, len) == 0) in name_find()
1566 int i, len; in node_str_head_pad() local
4224 r = len; in parse_char_class()
4261 if (i < len) { in parse_char_class()
4297 r = len; in parse_char_class()
4997 int r, i, len; in i_apply_case_fold() local
5107 len = 1; in parse_exp()
[all …]
/PHP-5.5/ext/exif/
H A Dtest.txt265 $len = 2;
272 $len++;
284 $len++;
306 $len++;
324 $len++;
328 $len++;
332 $len++;
340 $tab2 .= "<tr><td rowspan='$len' valign='top'>$num</td></tr>\n";
/PHP-5.5/ext/soap/
H A Dphp_sdl.c90 nscat[len] = '\0'; in get_element()
118 nscat = emalloc(len + 1); in get_encoder()
122 nscat[len] = '\0'; in get_encoder()
1201 int len; in sdl_deserialize_string() local
1207 s = emalloc(len+1); in sdl_deserialize_string()
1209 s[len] = '\0'; in sdl_deserialize_string()
1216 int len; in sdl_deserialize_key() local
1219 if (len == 0) { in sdl_deserialize_key()
3246 len += user_len-1; in get_sdl()
3247 key[len++] = '-'; in get_sdl()
[all …]
/PHP-5.5/ext/bz2/
H A Dbz2.c341 long len = 1024; in PHP_FUNCTION() local
344 if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r|l", &bz, &len)) { in PHP_FUNCTION()
350 if ((len + 1) < 1) { in PHP_FUNCTION()
355 Z_STRVAL_P(return_value) = emalloc(len + 1); in PHP_FUNCTION()
356 Z_STRLEN_P(return_value) = php_stream_read(stream, Z_STRVAL_P(return_value), len); in PHP_FUNCTION()
/PHP-5.5/ext/intl/grapheme/
H A Dgrapheme_util.c220 int grapheme_ascii_check(const unsigned char *day, int32_t len) in grapheme_ascii_check() argument
222 int ret_len = len; in grapheme_ascii_check()
223 while ( len-- ) { in grapheme_ascii_check()
/PHP-5.5/ext/pdo/
H A Dpdo.c67 PDO_API char *php_pdo_str_tolower_dup(const char *src, int len) in php_pdo_str_tolower_dup() argument
69 char *dest = emalloc(len + 1); in php_pdo_str_tolower_dup()
70 zend_str_tolower_copy(dest, src, len); in php_pdo_str_tolower_dup()
/PHP-5.5/ext/standard/
H A Dsha1.c372 static void SHA1Encode(output, input, len) in SHA1Encode() argument
375 unsigned int len;
379 for (i = 0, j = 0; j < len; i++, j += 4) {
392 static void SHA1Decode(output, input, len) in SHA1Decode() argument
395 unsigned int len;
399 for (i = 0, j = 0; j < len; i++, j += 4)
H A Duser_filters.c291 int len; in user_filter_factory_create() local
300 len = strlen(filtername); in user_filter_factory_create()
303 if (FAILURE == zend_hash_find(BG(user_filter_map), (char*)filtername, len + 1, (void**)&fdat)) { in user_filter_factory_create()
312 char *wildcard = emalloc(len + 3); in user_filter_factory_create()
315 memcpy(wildcard, filtername, len + 1); /* copy \0 */ in user_filter_factory_create()
/PHP-5.5/ext/xml/
H A Dcompat.c352 _build_entity(const xmlChar *name, int len, xmlChar **entity, int *entity_len) in _build_entity() argument
354 *entity_len = len + 2; in _build_entity()
357 memcpy(*entity+1, name, len); in _build_entity()
358 (*entity)[len+1] = ';'; in _build_entity()
390 int len; in _get_entity() local
392 _build_entity(name, xmlStrlen(name), &entity, &len); in _get_entity()
393 parser->h_default(parser->user, (const xmlChar *) entity, len); in _get_entity()
/PHP-5.5/ext/dom/
H A Ddocumenttype.c225 if (ret_buf.len) { in dom_documenttype_internal_subset_read()
226 ZVAL_STRINGL(*retval, ret_buf.c, ret_buf.len, 1); in dom_documenttype_internal_subset_read()
/PHP-5.5/ext/opcache/
H A Dzend_accelerator_module.c89 int len = strlen(ZCG(accel_directives).restrict_api); in validate_api_restriction() local
92 strlen(SG(request_info).path_translated) < len || in validate_api_restriction()
93 memcmp(SG(request_info).path_translated, ZCG(accel_directives).restrict_api, len) != 0) { in validate_api_restriction()
515 size_t len; in accelerator_get_scripts() local
528 len = strlen(str); in accelerator_get_scripts()
529 if (len > 0 && str[len - 1] == '\n') len--; in accelerator_get_scripts()
530 add_assoc_stringl(persistent_script_report, "last_used", str, len, 1); in accelerator_get_scripts()
/PHP-5.5/ext/mbstring/libmbfl/mbfl/
H A Dmbfl_memory_device.h63 MBFLAPI extern int mbfl_memory_device_strncat(mbfl_memory_device *device, const char *psrc, int len
/PHP-5.5/ext/intl/tests/
H A Dregression_sort_eq.phpt2 Regression: sort() eq but different len.
H A Dregression_sortwsk_eq.phpt2 Regression: sort_wsk() eq but different len.
/PHP-5.5/ext/mcrypt/tests/
H A Dblowfish.phpt9 $len = strlen($data);
10 return pack("H" . $len, $data);
/PHP-5.5/ext/mysqlnd/
H A Dmysqlnd_auth.c317 php_mysqlnd_crypt(zend_uchar *buffer, const zend_uchar *s1, const zend_uchar *s2, size_t len) in php_mysqlnd_crypt() argument
319 const zend_uchar *s1_end = s1 + len; in php_mysqlnd_crypt()
488 int len; in mysqlnd_sha256_get_rsa_key() local
551 if ((len = php_stream_copy_to_mem(stream, &key_str, PHP_STREAM_COPY_ALL, 0)) >= 0 ) { in mysqlnd_sha256_get_rsa_key()
552 BIO * bio = BIO_new_mem_buf(key_str, len); in mysqlnd_sha256_get_rsa_key()
558 DBG_INF_FMT("Public key:%*.s", len, key_str); in mysqlnd_sha256_get_rsa_key()

Completed in 99 milliseconds

1...<<11121314151617181920