Home
last modified time | relevance | path

Searched refs:len (Results 151 – 175 of 519) sorted by relevance

12345678910>>...21

/PHP-7.0/ext/iconv/tests/
H A Deucjp2iso2022jp.phpt13 $len = strlen($str);
14 for ($i = 0; $i < $len; ++$i) {
/PHP-7.0/ext/zip/lib/
H A Dzip_utf-8.c218 _zip_cp437_to_utf8(const zip_uint8_t * const _cp437buf, zip_uint32_t len, in _zip_cp437_to_utf8() argument
225 if (len == 0) { in _zip_cp437_to_utf8()
232 for (i=0; i<len; i++) in _zip_cp437_to_utf8()
241 for (i=0; i<len; i++) in _zip_cp437_to_utf8()
H A Dzip_io_util.c109 _zip_read_string(zip_buffer_t *buffer, zip_source_t *src, zip_uint16_t len, bool nulp, zip_error_t … in _zip_read_string() argument
114 if ((raw=_zip_read_data(buffer, src, len, nulp, error)) == NULL) in _zip_read_string()
117 s = _zip_string_new(raw, len, ZIP_FL_ENC_GUESS, error); in _zip_read_string()
H A Dzip_source_win32utf8.c42 zip_source_file(zip_t *za, const char *fname, zip_uint64_t start, zip_int64_t len) in zip_source_file() argument
47 return zip_source_file_create(fname, start, len, &za->error); in zip_source_file()
/PHP-7.0/ext/standard/tests/strings/
H A Dstrcspn_error.phpt5 /* 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)
27 $len = 20;
31 var_dump( strcspn($str,$mask,$start,$len, $extra_arg) );
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 Dstrcspn_variation10.phpt2 Test strcspn() function : usage variations - with varying mask & 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 varying mask and default start and len arguments
16 echo "*** Testing strcspn() : with different mask strings and default start and len arguments ***\n…
67 *** Testing strcspn() : with different mask strings and default start and len arguments ***
H A Dstrncasecmp_variation5.phpt2 Test strncasecmp() function : usage variations - unexpected values for 'len'
7 /* Prototype : int strncasecmp ( string $str1, string $str2, int $len );
14 echo "*** Test strncasecmp() function: unexpected values for 'len' ***\n";
88 $len = $lengths[$index];
90 var_dump( strncasecmp($str1, $str2, $len) );
98 *** Test strncasecmp() function: unexpected values for 'len' ***
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_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
/PHP-7.0/ext/readline/
H A Dreadline_cli.c221 for (i = 0; i < len; ++i) { in cli_is_valid_code()
287 if (i + 2 < len && code[i+1] == '<' && code[i+2] == '<') { in cli_is_valid_code()
566 int len = class_name_len + 2 + strlen(retval) + 1; in cli_completion_generator() local
567 char *tmp = malloc(len); in cli_completion_generator()
569 snprintf(tmp, len, "%s::%s", ZSTR_VAL(ce->name), retval); in cli_completion_generator()
587 size_t size = 4096, pos = 0, len; in readline_shell_run() local
623 len = strlen(line); in readline_shell_run()
643 if (pos + len + 2 > size) { in readline_shell_run()
644 size = pos + len + 2; in readline_shell_run()
647 memcpy(&code[pos], line, len); in readline_shell_run()
[all …]
/PHP-7.0/ext/standard/
H A Durl.c67 unsigned char *e = (unsigned char *)str + len; in php_replace_controlchars_ex()
458 end = (unsigned char *)s + len; in php_url_encode()
459 start = zend_string_safe_alloc(3, len, 0, 0); in php_url_encode()
529 PHPAPI size_t php_url_decode(char *str, size_t len) in php_url_decode() argument
534 while (len--) { in php_url_decode()
546 len -= 2; in php_url_decode()
565 str = zend_string_safe_alloc(3, len, 0, 0);
566 for (x = 0, y = 0; len--; x++, y++) {
624 PHPAPI size_t php_raw_url_decode(char *str, size_t len) argument
629 while (len--) {
[all …]
/PHP-7.0/ext/oci8/tests/
H A Dlob_008.phpt38 $len = 0;
40 $len += strlen($row[0]->read(1024));
42 var_dump($len);
/PHP-7.0/ext/bcmath/libbcmath/src/
H A Doutput.c71 int len, ix; local
75 len = strlen (digits);
76 while (size > len)
81 for (ix=0; ix < len; ix++)
/PHP-7.0/main/
H A Drfc1867.c595 int len = haystacklen; in php_ap_memstr() local
605 if (memcmp(needle, ptr, needlen < len ? needlen : len) == 0 && (partial || len >= needlen)) { in php_ap_memstr()
610 ptr++; len--; in php_ap_memstr()
619 size_t len, max; in multipart_buffer_read() local
641 if (len > 0) { in multipart_buffer_read()
645 buf[len] = 0; in multipart_buffer_read()
647 if (bound && len > 0 && buf[len-1] == '\r') { in multipart_buffer_read()
648 buf[--len] = 0; in multipart_buffer_read()
653 self->buf_begin += len; in multipart_buffer_read()
656 return (int)len; in multipart_buffer_read()
[all …]
/PHP-7.0/ext/zlib/tests/
H A Dbug60761.phpt28 $len = strlen($html);
30 $lens[$len] = $len;
/PHP-7.0/ext/standard/tests/file/
H A Dfgetss_error.phpt22 $len = 0;
24 var_dump( fgetss($fp, $len, $allowable_tags) );
25 $len = -10;
26 var_dump( fgetss($fp, $len, $allowable_tags) );
27 $len = 1;
28 var_dump( fgetss($fp, $len, $allowable_tags) ); // return length - 1 always, expect false
H A Dfgets_error.phpt22 $len = 0;
23 var_dump( fgets($fp, $len) );
24 $len = -10;
25 var_dump( fgets($fp, $len) );
26 $len = 1;
27 var_dump( fgets($fp, $len) ); // return length - 1 always, expect false
/PHP-7.0/ext/intl/idn/
H A Didn.c141 int32_t len; in php_intl_idn_to_46() local
155 len = uidna_nameToASCII_UTF8(uts46, domain, domain_len, in php_intl_idn_to_46()
158 len = uidna_nameToUnicodeUTF8(uts46, domain, domain_len, in php_intl_idn_to_46()
161 if (len >= 255 || php_intl_idn_check_status(status, "failed to convert name", in php_intl_idn_to_46()
168 ZSTR_VAL(buffer)[len] = '\0'; in php_intl_idn_to_46()
169 ZSTR_LEN(buffer) = len; in php_intl_idn_to_46()
/PHP-7.0/sapi/phpdbg/
H A Dphpdbg_help.c180 const char *key, size_t len, /* pointer and length of key */ in get_command() argument
188 if (len == 1) { in get_command()
199 if (!strncmp(c->name, key, len)) { in get_command()
243 n = get_command(param->str, param->len, &cmd, phpdbg_prompt_commands); in PHPDBG_COMMAND()
251 if (param->len > 1) { in PHPDBG_COMMAND()
253 if (!strncmp(cmd->name, param->str, param->len)) { in PHPDBG_COMMAND()
285 int len; in PHPDBG_HELP() local
294 len = 20 - 1 - c->name_len; in PHPDBG_HELP()
298 c->alias, c_sub->alias, c->name, len, c_sub->name, c_sub->tip); in PHPDBG_HELP()
313 len = 20 - 1 - c->name_len; in PHPDBG_HELP()
[all …]
H A Dphpdbg_prompt.c471 int seplen = param->len; in PHPDBG_COMMAND()
560 data->len -= 2; in phpdbg_compile_stdin()
561 memmove(data->buf, data->buf + 2, data->len); in phpdbg_compile_stdin()
574 size_t len; in phpdbg_compile() local
585 if (len >= 3 && buf[0] == '#' && buf[1] == '!') { in phpdbg_compile()
586 char *end = buf + len; in phpdbg_compile()
598 fh.handle.stream.mmap.len -= start_line_len; in phpdbg_compile()
622 data->len += start_line_len; in phpdbg_compile()
630 fh.handle.stream.mmap.len = len; in phpdbg_compile()
1389 path = estrndup(param->str, param->len); in PHPDBG_COMMAND()
[all …]
/PHP-7.0/sapi/fpm/fpm/
H A Dfpm_main.c367 int len; in sapi_cgi_send_headers() local
377 if (len > SAPI_CGI_MAX_HEADER_LENGTH) { in sapi_cgi_send_headers()
378 len = SAPI_CGI_MAX_HEADER_LENGTH; in sapi_cgi_send_headers()
421 PHPWRITE_H(buf, len); in sapi_cgi_send_headers()
648 char *buf = malloc(len + 2); in sapi_cgi_log_fastcgi()
649 memcpy(buf, message, len); in sapi_cgi_log_fastcgi()
650 memcpy(buf + len, "\n", sizeof("\n")); in sapi_cgi_log_fastcgi()
1179 int len = script_path_translated_len; local
1202 int slen = len - ptlen;
1650 int len = strlen(php_optarg); local
[all …]
/PHP-7.0/ext/pdo/
H A Dpdo_sql_parser.c385 size_t len; member
419 int len = s.cur - s.tok; in pdo_parse_params() local
420 if ((inquery < (s.cur - len)) && isalnum(*(s.cur - len - 1))) { in pdo_parse_params()
432 plc->len = s.cur - s.tok; in pdo_parse_params()
486 if ((param = zend_hash_str_find_ptr(params, plc->pos, plc->len)) == NULL) { in pdo_parse_params()
511 param = zend_hash_str_find_ptr(params, plc->pos, plc->len); in pdo_parse_params()
622 ptr = plc->pos + plc->len; in pdo_parse_params()
654 name = estrndup(plc->pos, plc->len); in pdo_parse_params()
671 zend_hash_str_update_mem(stmt->bound_param_map, name, plc->len, idxbuf, plc->qlen + 1); in pdo_parse_params()
694 name = estrndup(plc->pos, plc->len); in pdo_parse_params()
[all …]
/PHP-7.0/ext/hash/
H A Dhash_joaat.c74 joaat_buf(void *buf, size_t len, php_hash_uint32 hval) in joaat_buf() argument
79 for (i = 0; i < len; i++) { in joaat_buf()
/PHP-7.0/ext/soap/tests/
H A Dbug73037.phpt82 $len = strlen($data);
84 //echo "len=$len\n";
92 Content-Length: ${len}
120 $len = $pos - $pos0;
121 echo substr($out, $pos0, $len);

Completed in 48 milliseconds

12345678910>>...21