Home
last modified time | relevance | path

Searched refs:len (Results 101 – 125 of 496) sorted by last modified time

12345678910>>...20

/PHP-5.5/ext/standard/
H A Dvar_unserializer.re204 for (i = 0; i < *len; i++) {
232 *len = i;
606 size_t len, maxlen;
609 len = parse_uiv(start + 2);
611 if (maxlen < len) {
618 YYCURSOR += len;
634 size_t len, maxlen;
639 if (maxlen < len) {
715 if (maxlen < len || len == 0) {
722 YYCURSOR += len;
[all …]
H A Dversioning.c36 int len = strlen(version); in php_canonicalize_version() local
37 char *buf = safe_emalloc(len, 2, 1), *q, lp, lq; in php_canonicalize_version()
40 if (len == 0) { in php_canonicalize_version()
H A Durl.c67 unsigned char *e = (unsigned char *)str + len; in php_replace_controlchars_ex()
494 end = (unsigned char *)s + len; in php_url_encode()
495 start = to = (unsigned char *) safe_emalloc(3, len, 1); in php_url_encode()
569 PHPAPI int php_url_decode(char *str, int len) in php_url_decode() argument
574 while (len--) { in php_url_decode()
586 len -= 2; in php_url_decode()
605 str = (unsigned char *) safe_emalloc(3, len, 1);
606 for (x = 0, y = 0; len--; x++, y++) {
674 PHPAPI int php_raw_url_decode(char *str, int len) argument
679 while (len--) {
[all …]
H A Durl.h37 PHPAPI int php_url_decode(char *str, int len); /* return value: length of decoded string */
38 PHPAPI int php_raw_url_decode(char *str, int len); /* return value: length of decoded string */
39 PHPAPI char *php_url_encode(char const *s, int len, int *new_length);
40 PHPAPI char *php_raw_url_encode(char const *s, int len, int *new_length);
H A Durl_scanner_ex.re211 switch (ctx->tag.len) {
254 ctx->tag.len = 0;
265 ctx->arg.len = 0;
357 ctx->buf.len = rest;
404 ctx->result.len = 0;
435 size_t len;
440 if (len > UINT_MAX)
441 len = UINT_MAX;
446 if (ctx->buf.len) {
454 ctx->result.len = 0;
[all …]
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()
H A Duuencode.c70 int len = 45; in php_uuencode() local
79 ee = s + len; in php_uuencode()
82 len = ee - s; in php_uuencode()
83 if (len % 3) { in php_uuencode()
98 if (len == 45) { in php_uuencode()
106 len = 0; in php_uuencode()
115 if (len < 45) { in php_uuencode()
147 ee = s + (len == 45 ? 60 : (int) floor(len * 1.33)); in php_uudecode()
163 if (len < 45) { in php_uudecode()
173 if (len > 1) { in php_uudecode()
[all …]
H A Dvar.c514 PHPWRITE(buf.c, buf.len); in php_var_export()
536 RETVAL_STRINGL(buf.c, buf.len, 1); in PHP_FUNCTION()
538 PHPWRITE(buf.c, buf.len); in PHP_FUNCTION()
550 register int len; in php_add_var_hash() local
556 len = id + sizeof(id) - 1 - p; in php_add_var_hash()
559 len = id + sizeof(id) - 1 - p; in php_add_var_hash()
562 if (var_old && zend_hash_find(var_hash, p, len, var_old) == SUCCESS) { in php_add_var_hash()
577 zend_hash_add(var_hash, p, len, &var_no, sizeof(var_no), NULL); in php_add_var_hash()
596 smart_str_append_long(buf, len); in php_var_serialize_string()
598 smart_str_appendl(buf, str, len); in php_var_serialize_string()
[all …]
/PHP-5.5/ext/sybase_ct/
H A Dphp_sybase_ct.c733 int hashed_details_length, len; in php_sybase_do_connect() local
739 …NUM_ARGS() TSRMLS_CC, "|s!s!s!s!s!", &host, &len, &user, &len, &passwd, &len, &charset, &len, &app… in php_sybase_do_connect()
743 …UM_ARGS() TSRMLS_CC, "|s!s!s!s!s!b", &host, &len, &user, &len, &passwd, &len, &charset, &len, &app… in php_sybase_do_connect()
1064 int id, len; in PHP_FUNCTION() local
1067 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|r", &db, &len, &sybase_link_index) == FAIL… in PHP_FUNCTION()
1078 spprintf(&cmdbuf, 4 + len + 1, "use %s", db); in PHP_FUNCTION()
1429 int len, id, deadlock_count; in php_sybase_query() local
1440 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|rb", &query, &len, &sybase_link_index, &st… in php_sybase_query()
/PHP-5.5/ext/standard/tests/strings/
H A Dsubstr_replace_error.phpt55 Warning: substr_replace(): 'from' and 'len' should be of same type - numerical or array in %s on l…
58 Warning: substr_replace(): 'from' and 'len' should be of same type - numerical or array in %s on l…
63 Warning: substr_replace(): 'from' and 'len' should have the same number of elements in %s on line %d
68 Warning: substr_replace(): Functionality of 'from' and 'len' as arrays is not implemented in %s on …
H A Dsubstr_replace.phpt15 $len = 3;
20 $len = 0;
25 $len = -2;
36 $len = 3;
81 $len = 3;
92 $len = 3;
102 $len = 3;
111 $len = 0;
121 $len = 0;
155 $len = 3;
[all …]
H A Dstrspn_variation6.phpt2 …spn() function : usage variations - with heredoc strings, varying mask & default start and 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 mask and default start and len arguments
86 var_dump( strspn($str,$mask) ); // with default start and len value
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 Dstrspn_variation8.phpt2 Test strspn() function : usage variations - with heredoc strings, varying start and 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 len arguments
16 echo "*** Testing strspn() : with different start and len values ***\n";
85 // defining array of different len values
96 // loop through each element of the array for heredoc str, mask str , start values and len values
104 foreach($len_array as $len) {
105 var_dump( strspn($str,$mask,$start,$len) );
115 *** Testing strspn() : with different start and len values ***
H A Dstrspn_variation9.phpt2 Test strspn() function : usage variations - different strings with default start and 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 different strings as str argument and default start and len args
16 echo "*** Testing strspn() : with different str and default start and len args ***\n";
56 *** Testing strspn() : with different str and default start and len args ***
H A Dstrspn_basic.phpt5 /* Prototype : proto int strspn(string str, string mask [, int start [, int len]])
7 … If start or/and length is provided, it works like strspn(substr($s,$start,$len),$good_chars)
23 $len = 30;
26 var_dump( strspn($str, $mask, $start, $len) );
28 // Calling strspn() with three arguments and default len argument
H A Dstrspn_error.phpt5 /* 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)
27 $len = 20;
31 var_dump( strspn($str,$mask,$start,$len, $extra_arg) );
H A Dstrspn_variation1.phpt5 /* 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)
23 $len = 10;
96 var_dump( strspn($value,$mask,$start) ); // with default len value
97 var_dump( strspn($value,$mask,$start,$len) ); // with all args
H A Dstrspn_variation10.phpt2 Test strspn() function : usage variations - with varying mask & default start and 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 varying mask and default start and len arguments
16 echo "*** Testing strspn() : with different mask strings and default start and len arguments ***\n";
69 *** Testing strspn() : with different mask strings and default start and len arguments ***
H A Dstrspn_variation11.phpt2 Test strspn() function : usage variations - with 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 varying start and default len arguments
16 echo "*** Testing strspn() : with different start and default len values ***\n";
81 *** Testing strspn() : with different start and default len values ***
H A Dstrspn_variation12.phpt2 Test strspn() function : usage variations - with varying start and 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 varying start and len arguments
16 echo "*** Testing strspn() : with different start and len values ***\n";
55 // defining an array of len values
66 // loop through each element of the array for len argument
72 foreach($len_array as $len) {
73 var_dump( strspn($str,$mask,$start,$len) );
83 *** Testing strspn() : with different start and len values ***
H A Dstrspn_variation2.phpt5 /* 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)
22 $len = 10;
95 var_dump( strspn($str,$value,$start) ); // with default len value
96 var_dump( strspn($str,$value,$start,$len) ); // with all args
H A Dstrspn_variation3.phpt5 /* 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)
23 $len = 10;
92 var_dump( strspn($str,$mask,$value) ); // with default len value
93 var_dump( strspn($str,$mask,$value,$len) ); // with all args
H A Dstrspn_variation4.phpt115 -- Iteration with len value as "0.5" --
143 -- Iteration with len value as "" --
146 -- Iteration with len value as "" --
149 -- Iteration with len value as "1" --
152 -- Iteration with len value as "" --
155 -- Iteration with len value as "1" --
158 -- Iteration with len value as "" --
161 -- Iteration with len value as "" --
166 -- Iteration with len value as "" --
186 -- Iteration with len value as "" --
[all …]
H A Dstrspn_variation5.phpt2 Test strspn() function : usage variations - with heredoc strings with default start and 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)
70 var_dump( strspn($str,$mask) ); // with default start and len values

Completed in 53 milliseconds

12345678910>>...20