Home
last modified time | relevance | path

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

12345678910>>...20

/PHP-5.5/ext/standard/tests/strings/
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 Dstrcspn_variation5.phpt2 Test strcspn() function : usage variations - with heredoc 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)
70 var_dump( strcspn($str,$mask) ); // with default start and len values
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
H A Dstrncmp_variation5.phpt5 /* Prototype : int strncmp ( string $str1, string $str2, int $len );
12 echo "*** Test strncmp() function: by supplying all types for 'len' ***\n";
90 $len = $lengths[$index];
92 var_dump( strncmp($str1, $str2, $len) );
100 *** Test strncmp() function: by supplying all types for 'len' ***
H A Dstrlen.phpt23 "\x000", // len = 2
24 "\xABC", // len = 2
25 "\0000", // len = 2
28 "\t", // len = 1
29 '\t', // len = 2
135 var_dump(strlen(10.55555555555555555555555555)); // len = 13
136 var_dump(strlen(10.55555555595555555555555555)); // len = 12
139 var_dump(strlen(strlen("Hello"))); // len=1
/PHP-5.5/ext/intl/locale/
H A Dlocale_methods.c182 int len = 0; in getSingletonPos() local
185 for( i=0; i<len ; i++){ in getSingletonPos()
227 int len=0; in PHP_NAMED_FUNCTION() local
230 &locale_name ,&len ) == FAILURE) in PHP_NAMED_FUNCTION()
238 if(len == 0) { in PHP_NAMED_FUNCTION()
240 len = strlen(locale_name); in PHP_NAMED_FUNCTION()
989 int len =0; in get_private_subtags() local
994 len = strlen(mod_loc_name); in get_private_subtags()
1016 len = strlen(mod_loc_name); in get_private_subtags()
1584 int len; in PHP_FUNCTION() local
[all …]
/PHP-5.5/main/
H A Drfc1867.c585 int len = haystacklen; in php_ap_memstr() local
595 if (memcmp(needle, ptr, needlen < len ? needlen : len) == 0 && (partial || len >= needlen)) { in php_ap_memstr()
600 ptr++; len--; in php_ap_memstr()
609 int len, max; in multipart_buffer_read() local
631 if (len > 0) { in multipart_buffer_read()
635 buf[len] = 0; in multipart_buffer_read()
637 if (bound && len > 0 && buf[len-1] == '\r') { in multipart_buffer_read()
638 buf[--len] = 0; in multipart_buffer_read()
643 self->buf_begin += len; in multipart_buffer_read()
646 return len; in multipart_buffer_read()
[all …]
/PHP-5.5/ext/zip/lib/
H A Dzip_source_crc.c78 zip_uint64_t len, enum zip_source_cmd cmd) in crc_read() argument
94 if (ctx->eof || len == 0) in crc_read()
97 if ((n=zip_source_read(src, data, len)) < 0) in crc_read()
H A Dzip_source_pkware.c110 zip_uint64_t len, int update_only) in decrypt() argument
116 for (i=0; i<len; i++) { in decrypt()
182 zip_uint64_t len, enum zip_source_cmd cmd) in pkware_decrypt() argument
196 if ((n=zip_source_read(src, data, len)) < 0) in pkware_decrypt()
/PHP-5.5/ext/zlib/tests/
H A Dbug60761.phpt28 $len = strlen($html);
30 $lens[$len] = $len;
/PHP-5.5/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-5.5/ext/readline/
H A Dreadline_cli.c217 for (i = 0; i < len; ++i) { in cli_is_valid_code()
289 if (i + 2 < len && code[i+1] == '<' && code[i+2] == '<') { in cli_is_valid_code()
568 int len = class_name_len + 2 + strlen(retval) + 1; in cli_completion_generator() local
569 char *tmp = malloc(len); in cli_completion_generator()
571 snprintf(tmp, len, "%s::%s", (*pce)->name, retval); in cli_completion_generator()
589 size_t size = 4096, pos = 0, len; in readline_shell_run() local
625 len = strlen(line); in readline_shell_run()
647 if (pos + len + 2 > size) { in readline_shell_run()
648 size = pos + len + 2; in readline_shell_run()
651 memcpy(&code[pos], line, len); in readline_shell_run()
[all …]
/PHP-5.5/sapi/fpm/fpm/
H A Dfpm_main.c405 int len; in sapi_cgi_send_headers() local
415 if (len > SAPI_CGI_MAX_HEADER_LENGTH) { in sapi_cgi_send_headers()
416 len = SAPI_CGI_MAX_HEADER_LENGTH; in sapi_cgi_send_headers()
459 PHPWRITE_H(buf, len); in sapi_cgi_send_headers()
673 char *buf = malloc(len + 2); in sapi_cgi_log_fastcgi()
674 memcpy(buf, message, len); in sapi_cgi_log_fastcgi()
675 memcpy(buf + len, "\n", sizeof("\n")); in sapi_cgi_log_fastcgi()
1185 int len = script_path_translated_len; local
1208 int slen = len - ptlen;
1639 int len = strlen(php_optarg); local
[all …]
/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 …]
/PHP-5.5/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-5.5/ext/pdo_pgsql/
H A Dpgsql_statement.c322 int len; in pgsql_stmt_param_hook() local
328 Z_STRLEN_P(param->parameter) = len; in pgsql_stmt_param_hook()
506 *len = 0; in pgsql_stmt_get_col()
509 *len = PQgetlength(S->result, S->current_row - 1, colno); in pgsql_stmt_get_col()
516 *len = sizeof(long); in pgsql_stmt_get_col()
522 *len = sizeof(zend_bool); in pgsql_stmt_get_col()
533 *len = 0; in pgsql_stmt_get_col()
537 *len = 0; in pgsql_stmt_get_col()
543 *len = 0; in pgsql_stmt_get_col()
550 *len = 0; in pgsql_stmt_get_col()
[all …]
/PHP-5.5/ext/phar/
H A Dtar.c27 while (i < len && buf[i] == ' ') { in phar_tar_number()
68 int s = len; in phar_tar_octal()
80 while (len-- > 0) in phar_tar_octal()
90 char *end = buf + len; in phar_tar_checksum()
856 entry->metadata_str.len = 0; in phar_tar_setmetadata()
1004 if (len < 0) { in phar_tar_flush()
1012 if (len == -1) { in phar_tar_flush()
1015 len = -len; in phar_tar_flush()
1019 if (!(len = php_stream_copy_to_mem(stubfile, &user_stub, len, 0)) || !user_stub) { in phar_tar_flush()
1044 len = pos - user_stub + 18; in phar_tar_flush()
[all …]
/PHP-5.5/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()
H A Dhash_adler32.c30 …P_HASH_API void PHP_ADLER32Update(PHP_ADLER32_CTX *context, const unsigned char *input, size_t len) in PHP_ADLER32Update() argument
36 for (i = 0; i < len; ++i) { in PHP_ADLER32Update()
H A Dphp_hash_fnv.h67 static php_hash_uint32 fnv_32_buf(void *buf, size_t len, php_hash_uint32 hval, int alternate);
68 static php_hash_uint64 fnv_64_buf(void *buf, size_t len, php_hash_uint64 hval, int alternate);
/PHP-5.5/Zend/
H A Dzend_alloc.h93 inline static void * __zend_malloc(size_t len) in __zend_malloc() argument
95 void *tmp = malloc(len); in __zend_malloc()
103 inline static void * __zend_calloc(size_t nmemb, size_t len) in __zend_calloc() argument
105 void *tmp = _safe_malloc(nmemb, len, 0); in __zend_calloc()
106 memset(tmp, 0, nmemb * len); in __zend_calloc()
110 inline static void * __zend_realloc(void *p, size_t len) in __zend_realloc() argument
112 p = realloc(p, len); in __zend_realloc()
140 #define safe_estrndup(ptr, len) ((ptr)?(estrndup((ptr), (len))):STR_EMPTY_ALLOC()) argument
/PHP-5.5/sapi/cli/
H A Dphp_cli_server.c473 if (len == ext_len && memcmp(pair->ext, ext, len) == 0) { in get_mime_type()
510 int len; in add_response_header() local
515 len = p - h->header; in add_response_header()
516 if (p && (len > 0)) { in add_response_header()
517 while (len > 0 && (h->header[len-1] == ' ' || h->header[len-1] == '\t')) { in add_response_header()
518 len--; in add_response_header()
520 if (len) { in add_response_header()
523 s[len] = 0; in add_response_header()
1057 chunk->data.immortal.len = len; in php_cli_server_chunk_immortal_new()
1072 chunk->data.heap.len = len; in php_cli_server_chunk_heap_new()
[all …]
/PHP-5.5/ext/mbstring/tests/
H A Dbug52981.phpt10 $len = strlen($upper);
11 for ($i = 0; $i < $len; ++$i) echo dechex(ord($upper[$i])) . ' ';
/PHP-5.5/TSRM/
H A Dtsrm_virtual_cwd.h70 #define IS_UNC_PATH(path, len) \ argument
71 (len >= 2 && IS_SLASH(path[0]) && IS_SLASH(path[1]))
72 #define IS_ABSOLUTE_PATH(path, len) \ argument
73 (len >= 2 && ((isalpha(path[0]) && path[1] == ':') || IS_UNC_PATH(path, len)))
85 #define IS_ABSOLUTE_PATH(path, len) \ argument
86 ((strchr(path, ':') != NULL) || ((len >= 1) && ((path[0] == '/') || (path[0] == '\\'))))
112 #define IS_ABSOLUTE_PATH(path, len) \ argument

Completed in 228 milliseconds

12345678910>>...20