Home
last modified time | relevance | path

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

12345678910>>...20

/PHP-5.4/ext/mysqlnd/
H A Dmysqlnd_charset.c141 unsigned int len = check_mb_utf8mb3_sequence(start, end); in check_mb_utf8mb3_valid() local
142 return (len > 1)? len:0; in check_mb_utf8mb3_valid()
147 unsigned int len = check_mb_utf8_sequence(start, end); in check_mb_utf8_valid() local
148 return (len > 1)? len:0; in check_mb_utf8_valid()
700 unsigned int len = 0; in mysqlnd_cset_escape_quotes() local
703 if (cset->char_maxlen > 1 && (len = cset->mb_valid(escapestr, end))) { in mysqlnd_cset_escape_quotes()
706 if ((newstr + len) > newstr_e) { in mysqlnd_cset_escape_quotes()
711 while (len--) { in mysqlnd_cset_escape_quotes()
756 unsigned int len = 0; in mysqlnd_cset_escape_slashes() local
761 if ((newstr + len) > newstr_e) { in mysqlnd_cset_escape_slashes()
[all …]
/PHP-5.4/ext/fileinfo/libmagic/
H A Dapprentice.c99 size_t len; member
149 size_t len; member
461 size_t i, len; in file_ms_alloc() local
473 len = (ms->c.len = 10) * sizeof(*ms->c.li); in file_ms_alloc()
942 size_t len; in load_1() local
983 if ((size_t)(len - 2) > bang[i].len && in load_1()
1423 size_t len; in get_cond() member
2658 map->len = 0; in apprentice_map()
2753 size_t len; in apprentice_compile() local
2979 len = *s;
[all …]
/PHP-5.4/ext/oci8/tests/
H A Dlob_008.phpt38 $len = 0;
40 $len += strlen($row[0]->read(1024));
42 var_dump($len);
/PHP-5.4/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 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.4/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.4/ext/phar/
H A Dphar_internal.h475 int len; member
528 if (len) { in phar_stream_copy_to_stream()
529 *len = ret; in phar_stream_copy_to_stream()
537 …ar_stream_copy_to_stream(src, dest, maxlen, len) _php_stream_copy_to_stream_ex((src), (dest), (max… argument
565 static inline int phar_find_key(HashTable *_SERVER, char *key, int len, void **stuff TSRMLS_DC) in phar_find_key() argument
567 if (SUCCESS == zend_hash_find(_SERVER, key, len, stuff)) { in phar_find_key()
570 int s = len; in phar_find_key()
572 s = phar_make_unicode(&var, key, len TSRMLS_CC); in phar_find_key()
679 int phar_tar_flush(phar_archive_data *phar, char *user_stub, long len, int defaultstub, char **erro…
701 int phar_flush(phar_archive_data *archive, char *user_stub, long len, int convert, char **error TSR…
[all …]
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()
836 entry->metadata_str.len = 0; in phar_tar_setmetadata()
981 if (len < 0) { in phar_tar_flush()
989 if (len == -1) { in phar_tar_flush()
992 len = -len; in phar_tar_flush()
996 if (!(len = php_stream_copy_to_mem(stubfile, &user_stub, len, 0)) || !user_stub) { in phar_tar_flush()
1021 len = pos - user_stub + 18; in phar_tar_flush()
[all …]
/PHP-5.4/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.4/ext/standard/tests/file/
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
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
/PHP-5.4/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()
/PHP-5.4/ext/zlib/tests/
H A Dbug60761.phpt28 $len = strlen($html);
30 $lens[$len] = $len;
/PHP-5.4/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()
672 char *buf = malloc(len + 2); in sapi_cgi_log_fastcgi()
673 memcpy(buf, message, len); in sapi_cgi_log_fastcgi()
674 memcpy(buf + len, "\n", sizeof("\n")); in sapi_cgi_log_fastcgi()
675 fcgi_write(request, FCGI_STDERR, buf, len+1); in sapi_cgi_log_fastcgi()
1181 int len = script_path_translated_len; local
1204 int slen = len - ptlen;
[all …]
/PHP-5.4/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.4/ext/intl/locale/
H A Dlocale_methods.c182 int len = 0; in getSingletonPos() local
185 for( i=0; i<len ; i++){ in getSingletonPos()
230 int len=0; in PHP_NAMED_FUNCTION() local
233 &locale_name ,&len ) == FAILURE) in PHP_NAMED_FUNCTION()
241 if(len == 0) { in PHP_NAMED_FUNCTION()
243 len = strlen(locale_name); in PHP_NAMED_FUNCTION()
991 int len =0; in get_private_subtags() local
996 len = strlen(mod_loc_name); in get_private_subtags()
1200 int len = 0; in strToMatch() local
1207 len = strlen(str); in strToMatch()
[all …]
/PHP-5.4/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.4/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()
505 *len = 0; in pgsql_stmt_get_col()
508 *len = PQgetlength(S->result, S->current_row - 1, colno); in pgsql_stmt_get_col()
515 *len = sizeof(long); in pgsql_stmt_get_col()
521 *len = sizeof(zend_bool); in pgsql_stmt_get_col()
532 *len = 0; in pgsql_stmt_get_col()
536 *len = 0; in pgsql_stmt_get_col()
542 *len = 0; in pgsql_stmt_get_col()
549 *len = 0; in pgsql_stmt_get_col()
[all …]
/PHP-5.4/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.4/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.4/ext/pdo/
H A Dpdo_sql_parser.re71 int len;
101 int len = s.cur - s.tok;
102 if ((inquery < (s.cur - len)) && isalnum(*(s.cur - len - 1))) {
114 plc->len = s.cur - s.tok;
168 if (zend_hash_find(params, plc->pos, plc->len, (void**) &param) == FAILURE) {
193 ret = zend_hash_find(params, plc->pos, plc->len, (void**) &param);
207 size_t len;
210 len = php_stream_copy_to_mem(stm, &buf, PHP_STREAM_COPY_ALL, 0);
289 ptr = plc->pos + plc->len;
321 name = estrndup(plc->pos, plc->len);
[all …]

Completed in 80 milliseconds

12345678910>>...20