Home
last modified time | relevance | path

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

12345678910>>...22

/PHP-7.2/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 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 …]
H A Dstrcspn_variation4.phpt117 -- Iteration with len value as "0.5" --
145 -- Iteration with len value as "" --
148 -- Iteration with len value as "" --
151 -- Iteration with len value as "1" --
154 -- Iteration with len value as "" --
157 -- Iteration with len value as "1" --
160 -- Iteration with len value as "" --
163 -- Iteration with len value as "" --
168 -- Iteration with len value as "" --
188 -- Iteration with len value as "" --
[all …]
/PHP-7.2/tests/output/
H A Dob_start_basic_004.phpt16 return "f[call:$callback_invocations; len:$len]$string\n";
44 f[call:1; len:1]1
45 f[call:2; len:1]2
46 f[call:3; len:1]3
47 f[call:4; len:1]4
48 f[call:5; len:1]5
49 f[call:6; len:1]6
52 f[call:9; len:0]
59 f[call:5; len:0]
69 f[call:3; len:0]
[all …]
/PHP-7.2/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()
106 size_t len = 0; in vzlog() local
120 len = 0; in vzlog()
131 len = 0; in vzlog()
151 len += snprintf(buf + len, buf_size - len, "%s: ", level_names[flags & ZLOG_LEVEL_MASK]); in vzlog()
160 len += vsnprintf(buf + len, buf_size - len, fmt, args); in vzlog()
168 len += snprintf(buf + len, buf_size - len, ": %s (%d)", strerror(saved_errno), saved_errno); in vzlog()
[all …]
H A Dfpm_log.c104 size_t len, len2; in fpm_log_write() local
146 len = 0; in fpm_log_write()
153 if (len >= FPM_LOG_BUFFER) { in fpm_log_write()
155 len = FPM_LOG_BUFFER; in fpm_log_write()
396 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%s", tmp); in fpm_log_write()
448 len += len2; in fpm_log_write()
450 if (len >= FPM_LOG_BUFFER) { in fpm_log_write()
452 len = FPM_LOG_BUFFER; in fpm_log_write()
462 len++; in fpm_log_write()
468 buffer[len] = '\n'; in fpm_log_write()
[all …]
/PHP-7.2/Zend/
H A Dzend_smart_string.h76 str->len = 0; in smart_string_alloc()
81 return len; in smart_string_alloc()
83 if (UNEXPECTED((size_t) len > SIZE_MAX - str->len)) { in smart_string_alloc()
86 len += str->len; in smart_string_alloc()
92 return len; in smart_string_alloc()
100 str->a = str->len = 0; in smart_string_free_ex()
105 str->c[str->len] = '\0'; in smart_string_0()
116 memcpy(dest->c + dest->len, str, len); in smart_string_appendl_ex()
117 dest->len = new_len; in smart_string_appendl_ex()
134 dest->len = len; in smart_string_setl()
[all …]
H A Dzend_bitset.h110 for (i = 0; i < len; i++) {
137 for (i = 0; i < len; i++) {
146 for (i = 0; i < len; i++) {
155 for (i = 0; i < len; i++) {
164 for (i = 0; i < len; i++) {
173 for (i = 0; i < len; i++) {
182 for (i = 0; i < len; i++) {
194 for (i = 0; i < len; i++) {
204 uint32_t i = len;
223 uint32_t _i, _len = (len); \
[all …]
H A Dzend_smart_str.c32 #define SMART_STR_NEW_SIZE(len) \ argument
40 : SMART_STR_NEW_SIZE(len); in smart_str_erealloc()
44 str->a = SMART_STR_NEW_SIZE(len); in smart_str_erealloc()
54 : SMART_STR_NEW_SIZE(len); in smart_str_realloc()
58 str->a = SMART_STR_NEW_SIZE(len); in smart_str_realloc()
69 size_t i, len = l; in zend_compute_escaped_string_len() local
74 len += 1; in zend_compute_escaped_string_len()
76 len += 3; in zend_compute_escaped_string_len()
79 return len; in zend_compute_escaped_string_len()
86 smart_str_alloc(str, len, 0); in smart_str_append_escaped()
[all …]
H A Dzend_string.h62 #define STR_ALLOCA_INIT(str, s, len, use_heap) ZSTR_ALLOCA_INIT(str, s, len, use_heap) in END_EXTERN_C() argument
75 #define _ZSTR_STRUCT_SIZE(len) (_ZSTR_HEADER_SIZE + len + 1) in END_EXTERN_C() argument
88 ZSTR_VAL(str)[(len)] = '\0'; \
146 ZSTR_LEN(ret) = len; in zend_string_alloc()
172 memcpy(ZSTR_VAL(ret), str, len); in zend_string_init()
173 ZSTR_VAL(ret)[len] = '\0'; in zend_string_init()
208 ZSTR_LEN(ret) = len; in zend_string_realloc()
228 ZSTR_LEN(ret) = len; in zend_string_extend()
248 ZSTR_LEN(ret) = len; in zend_string_truncate()
349 for (; len >= 8; len -= 8) { in zend_inline_hash_func()
[all …]
/PHP-7.2/ext/opcache/Optimizer/
H A Dzend_worklist.h29 int len; member
35 (s)->len = 0; \
44 ZEND_ASSERT(len >= 0); in zend_worklist_stack_prepare()
47 stack->len = 0; in zend_worklist_stack_prepare()
48 stack->capacity = len; in zend_worklist_stack_prepare()
56 stack->buf[stack->len++] = i; in zend_worklist_stack_push()
61 ZEND_ASSERT(stack->len); in zend_worklist_stack_peek()
67 ZEND_ASSERT(stack->len); in zend_worklist_stack_pop()
78 (w)->stack.len = 0; \
89 ZEND_ASSERT(len >= 0); in zend_worklist_prepare()
[all …]
/PHP-7.2/ext/filter/
H A Dfilter_private.h108 #define PHP_FILTER_TRIM_DEFAULT(p, len) PHP_FILTER_TRIM_DEFAULT_EX(p, len, 1); argument
110 #define PHP_FILTER_TRIM_DEFAULT_EX(p, len, return_if_empty) { \ argument
111 while ((len > 0) && (*p == ' ' || *p == '\t' || *p == '\r' || *p == '\v' || *p == '\n')) { \
113 len--; \
115 if (len < 1 && return_if_empty) { \
118 if (len > 0) { \
119 …while (p[len-1] == ' ' || p[len-1] == '\t' || p[len-1] == '\r' || p[len-1] == '\v' || p[len-1] == …
120 len--; \
/PHP-7.2/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()
122 len -= r; in cdb_read()
136 u = cdb_hash(key, len); in cdb_findnext()
165 if (u == len) in cdb_findnext()
171 c->dpos = pos + 8 + len; in cdb_findnext()
[all …]
/PHP-7.2/ext/mbstring/oniguruma/src/
H A Dregerror.c204 int len; in to_ascii() local
210 len = 0; in to_ascii()
219 len += 10; in to_ascii()
224 len += 6; in to_ascii()
246 return len; in to_ascii()
265 int len, is_over; local
289 p += len;
305 len = p - s;
312 s[len] = '\0';
317 return len;
[all …]
H A Deuc_jp.c98 int c, i, len; in mbc_to_code() local
103 if (len == 1) return n; in mbc_to_code()
105 for (i = 1; i < len; i++) { in mbc_to_code()
162 int len; in mbc_case_fold() local
174 for (i = 0; i < len; i++) { in mbc_case_fold()
177 (*pp) += len; in mbc_case_fold()
189 int len; in left_adjust_char_head() local
197 p += len; in left_adjust_char_head()
233 int len = end - p; in property_name_to_ctype() local
236 if (len < sizeof(q) - 1) { in property_name_to_ctype()
[all …]
H A Dsjis.c131 int c, i, len; in mbc_to_code() local
137 if (len == 1) return n; in mbc_to_code()
139 for (i = 1; i < len; i++) { in mbc_to_code()
177 for (i = 0; i < len; i++) { in mbc_case_fold()
180 (*pp) += len; in mbc_case_fold()
215 int len; in left_adjust_char_head() local
230 p += len; in left_adjust_char_head()
265 int len = end - p; in property_name_to_ctype() local
268 if (len < sizeof(q) - 1) { in property_name_to_ctype()
269 xmemcpy(q, p, (size_t )len); in property_name_to_ctype()
[all …]
/PHP-7.2/ext/standard/
H A Duuencode.c70 size_t len = 45; in php_uuencode() local
83 ee = s + len; in php_uuencode()
86 len = ee - s; in php_uuencode()
87 if (len % 3) { in php_uuencode()
102 if (len == 45) { in php_uuencode()
110 len = 0; in php_uuencode()
119 if (len < 45) { in php_uuencode()
154 ee = s + (len == 45 ? 60 : (int) floor(len * 1.33)); in php_uudecode()
170 if (len < 45) { in php_uudecode()
181 if (len > 1) { in php_uudecode()
[all …]
H A Dhead.c43 size_t len; in PHP_FUNCTION() local
46 Z_PARAM_STRING(ctr.line, len) in PHP_FUNCTION()
52 ctr.line_len = (uint32_t)len; in PHP_FUNCTION()
62 size_t len = 0; in PHP_FUNCTION() local
66 Z_PARAM_STRING(ctr.line, len) in PHP_FUNCTION()
69 ctr.line_len = (uint32_t)len; in PHP_FUNCTION()
107 len += ZSTR_LEN(name); in php_setcookie()
111 len += ZSTR_LEN(encoded_value); in php_setcookie()
119 len += ZSTR_LEN(path); in php_setcookie()
122 len += ZSTR_LEN(domain); in php_setcookie()
[all …]
/PHP-7.2/ext/xmlrpc/libxmlrpc/
H A Dsimplestring.c119 string->len = 0; in simplestring_init_str()
148 string->len = 0; in simplestring_clear()
172 string->len = 0; in simplestring_free()
205 if((SIZE_MAX - add_len) < target->len || (SIZE_MAX - add_len - 1) < target->len) { in simplestring_addn()
210 if(target->len + add_len + 1 > target->size) { in simplestring_addn()
212 newsize = target->len + add_len + 1; in simplestring_addn()
219 if(newsize < (target->len + add_len + 1)) { in simplestring_addn()
230 memcpy(target->str + target->len, source, add_len); in simplestring_addn()
232 target->len += add_len; in simplestring_addn()
233 target->str[target->len] = 0; /* null terminate */ in simplestring_addn()
/PHP-7.2/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-7.2/sapi/phpdbg/
H A Dphpdbg_io.c66 for (i = len; i < len + bytes; i++) { in ZEND_EXTERN_MODULE_GLOBALS()
68 if (i != len + bytes - 1) { in ZEND_EXTERN_MODULE_GLOBALS()
71 len--; in ZEND_EXTERN_MODULE_GLOBALS()
87 len += bytes; in ZEND_EXTERN_MODULE_GLOBALS()
88 …} while ((bytes = phpdbg_mixed_read(PHPDBG_G(io)[PHPDBG_STDIN].fd, buf + len, PHPDBG_MAX_CMD - len in ZEND_EXTERN_MODULE_GLOBALS()
99 int got_now, i = len, j;
163 int sent, i = len;
175 return len;
187 ret = read(sock, ptr, len);
218 bytes += write(sock, ptr, len);
[all …]
/PHP-7.2/ext/fileinfo/libmagic/
H A Dder.c177 size_t len; in getlength() local
200 len = 0; in getlength()
202 len = (len << 8) | c[(*p)++]; in getlength()
204 if (*p + len >= l) in getlength()
206 return CAST(uint32_t, len); in getlength()
235 for (i = 0; i < len; i++) { in der_data()
240 return len * 2; in der_data()
283 tag = gettag(b, &offs, len); in der_cmp()
378 if (p + len > ep) in printdata()
380 printtag(tag, q, len); in printdata()
[all …]
/PHP-7.2/ext/zip/lib/
H A Dzip_source_zip.c43 zip_flags_t flags, zip_uint64_t start, zip_int64_t len) in zip_source_zip() argument
45 if (len < -1) { in zip_source_zip()
50 if (len == -1) in zip_source_zip()
51 len = 0; in zip_source_zip()
53 if (start == 0 && len == 0) in zip_source_zip()
58 return _zip_source_zip_new(za, srcza, srcidx, flags, start, (zip_uint64_t)len, NULL); in zip_source_zip()

Completed in 43 milliseconds

12345678910>>...22