/PHP-7.0/ext/iconv/tests/ |
H A D | eucjp2iso2022jp.phpt | 13 $len = strlen($str); 14 for ($i = 0; $i < $len; ++$i) {
|
/PHP-7.0/ext/zip/lib/ |
H A D | zip_utf-8.c | 218 _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 D | zip_io_util.c | 109 _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 D | zip_source_win32utf8.c | 42 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 D | strcspn_error.phpt | 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) 27 $len = 20; 31 var_dump( strcspn($str,$mask,$start,$len, $extra_arg) );
|
H A D | strspn_error.phpt | 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) 27 $len = 20; 31 var_dump( strspn($str,$mask,$start,$len, $extra_arg) );
|
H A D | strcspn_variation10.phpt | 2 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 D | strncasecmp_variation5.phpt | 2 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 D | strspn_variation10.phpt | 2 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 D | strspn_variation6.phpt | 2 …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 D | readline_cli.c | 221 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 D | url.c | 67 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 D | lob_008.phpt | 38 $len = 0; 40 $len += strlen($row[0]->read(1024)); 42 var_dump($len);
|
/PHP-7.0/ext/bcmath/libbcmath/src/ |
H A D | output.c | 71 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 D | rfc1867.c | 595 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 D | bug60761.phpt | 28 $len = strlen($html); 30 $lens[$len] = $len;
|
/PHP-7.0/ext/standard/tests/file/ |
H A D | fgetss_error.phpt | 22 $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 D | fgets_error.phpt | 22 $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 D | idn.c | 141 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 D | phpdbg_help.c | 180 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 D | phpdbg_prompt.c | 471 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 D | fpm_main.c | 367 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 D | pdo_sql_parser.c | 385 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 D | hash_joaat.c | 74 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 D | bug73037.phpt | 82 $len = strlen($data); 84 //echo "len=$len\n"; 92 Content-Length: ${len} 120 $len = $pos - $pos0; 121 echo substr($out, $pos0, $len);
|