Home
last modified time | relevance | path

Searched refs:len (Results 1 – 25 of 535) sorted by relevance

12345678910>>...22

/PHP-5.6/ext/standard/tests/strings/
H A Dbug54055.phpt10 495: len=502
11 496: len=503
12 497: len=504
13 498: len=505
14 499: len=506
15 500: len=507
16 501: len=507
17 502: len=507
18 503: len=507
19 504: len=507
[all …]
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 Dstrcspn_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_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 …]
/PHP-5.6/tests/output/
H A Dob_start_basic_004.phpt16 return "f[call:$callback_invocations; len:$len]$string\n";
45 f[call:1; len:1]1
46 f[call:2; len:1]2
47 f[call:3; len:1]3
48 f[call:4; len:1]4
49 f[call:5; len:1]5
50 f[call:6; len:1]6
53 f[call:9; len:0]
60 f[call:5; len:0]
70 f[call:3; len:0]
[all …]
/PHP-5.6/sapi/fpm/fpm/
H A Dzlog.c70 size_t len; in zlog_print_time() local
74 len += snprintf(timebuf + len, timebuf_len - len, ".%06d", (int) tv->tv_usec); in zlog_print_time()
76 len += snprintf(timebuf + len, timebuf_len - len, "] "); in zlog_print_time()
77 return len; in zlog_print_time()
107 size_t len = 0; in zlog_ex() local
120 len = 0; in zlog_ex()
131 len = 0; in zlog_ex()
151 len += snprintf(buf + len, buf_size - len, "%s: ", level_names[flags & ZLOG_LEVEL_MASK]); in zlog_ex()
161 len += vsnprintf(buf + len, buf_size - len, fmt, args); in zlog_ex()
170 len += snprintf(buf + len, buf_size - len, ": %s (%d)", strerror(saved_errno), saved_errno); in zlog_ex()
[all …]
H A Dfpm_log.c105 size_t len, len2; in fpm_log_write() local
147 len = 0; in fpm_log_write()
154 if (len >= FPM_LOG_BUFFER) { in fpm_log_write()
156 len = FPM_LOG_BUFFER; in fpm_log_write()
397 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%s", tmp); in fpm_log_write()
449 len += len2; in fpm_log_write()
451 if (len >= FPM_LOG_BUFFER) { in fpm_log_write()
453 len = FPM_LOG_BUFFER; in fpm_log_write()
463 len++; in fpm_log_write()
469 buffer[len] = '\n'; in fpm_log_write()
[all …]
/PHP-5.6/ext/mbstring/oniguruma/
H A Dregerror.c198 int len; in to_ascii() local
204 len = 0; in to_ascii()
213 len += 10; in to_ascii()
218 len += 6; in to_ascii()
240 return len; in to_ascii()
259 int len, is_over; local
283 p += len;
299 len = p - s;
306 s[len] = '\0';
311 return len;
[all …]
/PHP-5.6/ext/filter/
H A Dfilter_private.h103 #define PHP_FILTER_TRIM_DEFAULT(p, len) PHP_FILTER_TRIM_DEFAULT_EX(p, len, 1); argument
105 #define PHP_FILTER_TRIM_DEFAULT_EX(p, len, return_if_empty) { \ argument
106 while ((len > 0) && (*p == ' ' || *p == '\t' || *p == '\r' || *p == '\v' || *p == '\n')) { \
108 len--; \
110 if (len < 1 && return_if_empty) { \
113 if (len > 0) { \
114 …while (p[len-1] == ' ' || p[len-1] == '\t' || p[len-1] == '\r' || p[len-1] == '\v' || p[len-1] == …
115 len--; \
/PHP-5.6/ext/standard/
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 Dhead.c79 int len=sizeof("Set-Cookie: "); in php_setcookie() local
94 len += name_len; in php_setcookie()
99 len += encoded_value_len; in php_setcookie()
102 len += value_len; in php_setcookie()
105 len += path_len; in php_setcookie()
108 len += domain_len; in php_setcookie()
111 cookie = emalloc(len + 100); in php_setcookie()
138 strlcat(cookie, dt, len + 100); in php_setcookie()
143 strlcat(cookie, tsdelta, len + 100); in php_setcookie()
153 strlcat(cookie, path, len + 100); in php_setcookie()
[all …]
H A Dphp_string.h121 PHPAPI char *php_strtoupper(char *s, size_t len);
122 PHPAPI char *php_strtolower(char *s, size_t len);
123 PHPAPI char *php_strtr(char *str, int len, char *str_from, char *str_to, int trlen);
126 PHPAPI void php_stripslashes(char *str, int *len TSRMLS_DC);
127 PHPAPI void php_stripcslashes(char *str, int *len);
129 PHPAPI size_t php_dirname(char *str, size_t len);
136 PHPAPI size_t php_strip_tags(char *rbuf, int len, int *state, char *allow, int allow_len);
139 PHPAPI int php_char_to_str(char *str, uint len, char from, char *to, int to_len, zval *result);
156 # define php_mblen(ptr, len) 1 argument
159 # define php_mblen(ptr, len) ((ptr) == NULL ? memset(&BG(mblen_state), 0, sizeof(BG(mblen_state)))… argument
[all …]
/PHP-5.6/ext/dba/libcdb/
H A Dcdb.c51 while (len > 0) { in cdb_match()
53 if (n > len) in cdb_match()
54 n = len; in cdb_match()
61 len -= n; in cdb_match()
74 while (len--) { in cdb_hash()
110 while (len > 0) { in cdb_read()
113 r = php_stream_read(c->fp, buf, len); in cdb_read()
122 len -= r; in cdb_read()
136 u = cdb_hash(key, len); in cdb_findnext()
165 if (u == len) in cdb_findnext()
[all …]
/PHP-5.6/ext/xmlrpc/libxmlrpc/
H A Dsimplestring.c118 string->len = 0; in simplestring_init_str()
147 string->len = 0; in simplestring_clear()
171 string->len = 0; in simplestring_free()
204 if((INT_MAX - add_len) < target->len || (INT_MAX - add_len - 1) < target->len) { in simplestring_addn()
209 if(target->len + add_len + 1 > target->size) { in simplestring_addn()
211 newsize = target->len + add_len + 1; in simplestring_addn()
218 if(newsize < (target->len + add_len + 1)) { in simplestring_addn()
229 memcpy(target->str + target->len, source, add_len); in simplestring_addn()
231 target->len += add_len; in simplestring_addn()
232 target->str[target->len] = 0; /* null terminate */ in simplestring_addn()
/PHP-5.6/ext/filter/tests/
H A D048.phpt8 $len = strlen($s);
9 while ($len > 0) {
10 $len--;
11 if ($s[$len] != 'f') {
12 if ($s[$len] == '9') {
13 $s[$len] = 'a';
15 $s[$len] = $s[$len] + 1;
19 $s[$len] = '0';
H A D047.phpt8 $len = strlen($s);
9 while ($len > 0) {
10 $len--;
11 if ($s[$len] != '7') {
12 $s[$len] = $s[$len] + 1;
15 $s[$len] = '0';
/PHP-5.6/ext/zip/lib/
H A Dzip_source_window.c43 zip_uint64_t len; member
54 zip_source_window(struct zip *za, struct zip_source *src, zip_uint64_t start, zip_uint64_t len) in zip_source_window() argument
69 ctx->len = len; in zip_source_window()
70 ctx->left = len; in zip_source_window()
79 zip_uint64_t len, enum zip_source_cmd cmd) in window_read() argument
103 if (len > ctx->left) in window_read()
104 len = ctx->left; in window_read()
106 if (len == 0) in window_read()
109 if ((ret=zip_source_read(src, data, len)) < 0) in window_read()
132 st->size = ctx->len; in window_read()
H A Dzip_source_zip.c45 zip_flags_t flags, zip_uint64_t start, zip_int64_t len) in zip_source_zip() argument
47 if (len < -1) { in zip_source_zip()
52 if (len == -1) in zip_source_zip()
53 len = 0; in zip_source_zip()
55 if (start == 0 && len == 0) in zip_source_zip()
60 return _zip_source_zip_new(za, srcza, srcidx, flags, start, (zip_uint64_t)len, NULL); in zip_source_zip()
H A Dzip_source_filep.c51 zip_int64_t len; /* length of data to copy */ member
63 zip_int64_t len) in zip_source_filep() argument
68 if (file == NULL || len < -1) { in zip_source_filep()
106 f->len = (len ? len : -1); in _zip_source_file_or_p()
151 z->remain = z->len; in read_file()
156 n = len > (zip_uint64_t)z->remain ? (zip_uint64_t)z->remain : len; in read_file()
158 n = len; in read_file()
194 if (len < sizeof(z->st)) in read_file()
220 if (z->len != -1) { in read_file()
221 st->size = (zip_uint64_t)z->len; in read_file()
[all …]
H A Dzip_source_zip_new.c44 zip_uint64_t start, zip_uint64_t len, const char *password) in _zip_source_zip_new() argument
74 if ((start > 0 || len > 0) && (flags & ZIP_FL_COMPRESSED)) { in _zip_source_zip_new()
80 if ((start > 0 || len > 0) && (start+len < start || start+len > st.size)) { in _zip_source_zip_new()
115 if (start+len > 0 && enc_impl == NULL && comp_impl == NULL) { in _zip_source_zip_new()
118 st2.size = len ? len : st.size-start; in _zip_source_zip_new()
151 && (len == 0 || len == st.comp_size)) { in _zip_source_zip_new()
161 if (start+len > 0 && (comp_impl || enc_impl)) { in _zip_source_zip_new()
162 if ((s2=zip_source_window(za, src, start, len ? len : st.size-start)) == NULL) { in _zip_source_zip_new()
/PHP-5.6/main/
H A Dphp_open_temporary_file.c211 int len = strlen(sys_temp_dir); in php_get_temporary_directory() local
212 if (len >= 2 && sys_temp_dir[len - 1] == DEFAULT_SLASH) { in php_get_temporary_directory()
215 } else if (len >= 1 && sys_temp_dir[len - 1] != DEFAULT_SLASH) { in php_get_temporary_directory()
230 DWORD len = GetTempPath(sizeof(sTemp),sTemp); in php_get_temporary_directory() local
231 assert(0 < len); /* should *never* fail! */ in php_get_temporary_directory()
232 if (sTemp[len - 1] == DEFAULT_SLASH) { in php_get_temporary_directory()
235 temporary_directory = estrndup(sTemp, len); in php_get_temporary_directory()
244 int len = strlen(s); in php_get_temporary_directory() local
246 if (s[len - 1] == DEFAULT_SLASH) { in php_get_temporary_directory()
247 temporary_directory = estrndup(s, len - 1); in php_get_temporary_directory()
[all …]
/PHP-5.6/ext/mysqlnd/
H A Dmysqlnd_bt.c31 (*str)[(*len)++] = chr
56 int *len; in mysqlnd_build_trace_args() local
59 len = va_arg(args, int*); in mysqlnd_build_trace_args()
85 if ((*str)[*len - l_added] < 32) { in mysqlnd_build_trace_args()
86 (*str)[*len - l_added] = '?'; in mysqlnd_build_trace_args()
153 int *len, *num; in mysqlnd_build_trace_string() local
161 len = va_arg(args, int*); in mysqlnd_build_trace_string()
191 int last_len = *len; in mysqlnd_build_trace_string()
193 if (last_len != *len) { in mysqlnd_build_trace_string()
194 *len -= 2; /* remove last ', ' */ in mysqlnd_build_trace_string()
[all …]
/PHP-5.6/ext/mbstring/oniguruma/enc/
H A Deuc_jp.c62 int c, i, len; in mbc_to_code() local
65 len = enclen(ONIG_ENCODING_EUC_JP, p); in mbc_to_code()
67 if (len == 1) return n; in mbc_to_code()
69 for (i = 1; i < len; i++) { in mbc_to_code()
126 int len; in mbc_case_fold() local
138 for (i = 0; i < len; i++) { in mbc_case_fold()
141 (*pp) += len; in mbc_case_fold()
153 int len; in left_adjust_char_head() local
159 len = enclen(ONIG_ENCODING_EUC_JP, p); in left_adjust_char_head()
160 if (p + len > s) return (UChar* )p; in left_adjust_char_head()
[all …]
/PHP-5.6/ext/pdo_dblib/
H A Ddblib_stmt.c217 unsigned long *len, int *caller_frees TSRMLS_DC) in pdo_dblib_stmt_get_col() argument
229 *len = dbdatlen(H->link, colno+1); in pdo_dblib_stmt_get_col()
232 if (*len == 0 && *ptr == NULL) { in pdo_dblib_stmt_get_col()
244 tmp_ptr = emalloc(*len + 1); in pdo_dblib_stmt_get_col()
245 memcpy(tmp_ptr, *ptr, *len); in pdo_dblib_stmt_get_col()
246 tmp_ptr[*len] = '\0'; in pdo_dblib_stmt_get_col()
259 *len = 36+1; in pdo_dblib_stmt_get_col()
260 tmp_ptr = emalloc(*len + 1); in pdo_dblib_stmt_get_col()
263 *len = dbconvert(NULL, SQLUNIQUE, *ptr, *len, SQLCHAR, tmp_ptr, *len); in pdo_dblib_stmt_get_col()
264 php_strtoupper(tmp_ptr, *len); in pdo_dblib_stmt_get_col()
[all …]
/PHP-5.6/ext/pdo_odbc/
H A Dodbc_stmt.c181 int len; in odbc_stmt_execute() local
233 if (len == 0) { in odbc_stmt_execute()
362 P->len *= 2; in odbc_stmt_param_hook()
378 P->len, in odbc_stmt_param_hook()
379 &P->len in odbc_stmt_param_hook()
421 P->len += len; in odbc_stmt_param_hook()
704 *len = used; in odbc_stmt_get_col()
713 *len = 0; in odbc_stmt_get_col()
722 *len = 0; in odbc_stmt_get_col()
735 *len = 0; in odbc_stmt_get_col()
[all …]

Completed in 55 milliseconds

12345678910>>...22