/PHP-7.3/ext/standard/tests/strings/ |
H A D | bug54055.phpt | 10 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 D | substr_replace.phpt | 15 $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 D | strspn_variation4.phpt | 115 -- 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 D | strcspn_variation4.phpt | 117 -- 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.3/tests/output/ |
H A D | ob_start_basic_004.phpt | 16 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.3/Zend/ |
H A D | zend_smart_str.c | 65 size_t i, len = l; in zend_compute_escaped_string_len() local 70 len += 1; in zend_compute_escaped_string_len() 72 len += 3; in zend_compute_escaped_string_len() 75 return len; in zend_compute_escaped_string_len() 84 ZSTR_LEN(str->s) += len; in smart_str_append_escaped() 132 str->len = 0; in _smart_string_alloc_persistent() 140 if (UNEXPECTED((size_t) len > SIZE_MAX - str->len)) { in _smart_string_alloc_persistent() 143 len += str->len; in _smart_string_alloc_persistent() 152 str->len = 0; in _smart_string_alloc() 166 if (UNEXPECTED((size_t) len > SIZE_MAX - str->len)) { in _smart_string_alloc() [all …]
|
H A D | zend_smart_string.h | 57 if (UNEXPECTED(!str->c) || UNEXPECTED(len >= str->a - str->len)) { in smart_string_alloc() 61 _smart_string_alloc(str, len); in smart_string_alloc() 64 return str->len + len; in smart_string_alloc() 72 str->a = str->len = 0; in smart_string_free_ex() 77 str->c[str->len] = '\0'; in smart_string_0() 83 dest->c[dest->len - 1] = ch; in smart_string_appendc_ex() 88 memcpy(dest->c + dest->len, str, len); in smart_string_appendl_ex() 89 dest->len = new_len; in smart_string_appendl_ex() 106 dest->len = len; in smart_string_setl() 107 dest->a = len + 1; in smart_string_setl() [all …]
|
H A D | zend_vm_trace_handlers.h | 32 size_t len; in zend_vm_trace() local 36 len = last_len + 1 + op_len; in zend_vm_trace() 90 size_t len; in zend_vm_trace_init() local 95 len = strlen(buf); in zend_vm_trace_init() 96 while (len > 0 && buf[len-1] <= ' ') { in zend_vm_trace_init() 97 len--; in zend_vm_trace_init() 98 buf[len] = 0; in zend_vm_trace_init() 100 while (len > 0 && buf[len-1] >= '0' && buf[len-1] <= '9') { in zend_vm_trace_init() 101 len--; in zend_vm_trace_init() 103 if (len > 1) { in zend_vm_trace_init() [all …]
|
H A D | zend_bitset.h | 108 for (i = 0; i < len; i++) { 135 for (i = 0; i < len; i++) { 144 for (i = 0; i < len; i++) { 153 for (i = 0; i < len; i++) { 162 for (i = 0; i < len; i++) { 171 for (i = 0; i < len; i++) { 180 for (i = 0; i < len; i++) { 192 for (i = 0; i < len; i++) { 202 uint32_t i = len; 221 uint32_t _i, _len = (len); \ [all …]
|
H A D | zend_smart_str.h | 30 #define smart_str_extend(dest, len) \ argument 31 smart_str_extend_ex((dest), (len), 0) 34 #define smart_str_appendl(dest, src, len) \ argument 35 smart_str_appendl_ex((dest), (src), (len), 0) 63 len += ZSTR_LEN(str->s); in END_EXTERN_C() 64 if (UNEXPECTED(len >= str->a)) { in END_EXTERN_C() 67 smart_str_realloc(str, len); in END_EXTERN_C() 69 smart_str_erealloc(str, len); in END_EXTERN_C() 73 return len; in END_EXTERN_C() 77 size_t new_len = smart_str_alloc(dest, len, persistent); in smart_str_extend_ex() [all …]
|
/PHP-7.3/sapi/fpm/fpm/ |
H A D | zlog.c | 79 size_t len; in zlog_print_time() local 84 len += snprintf(timebuf + len, timebuf_len - len, ".%06d", (int) tv->tv_usec); in zlog_print_time() 86 len += snprintf(timebuf + len, timebuf_len - len, "] "); in zlog_print_time() 87 return len; in zlog_print_time() 177 len += snprintf(buf + len, buf_size - len, "%s: pid %d, %s(), line %d: ", in zlog_buf_prefix() 180 len += snprintf(buf + len, buf_size - len, "%s: %s(), line %d: ", in zlog_buf_prefix() 184 len += snprintf(buf + len, buf_size - len, "%s: ", in zlog_buf_prefix() 215 len += vsnprintf(buf + len, buf_size - len, fmt, args); in vzlog() 223 len += snprintf(buf + len, buf_size - len, in vzlog() 399 len = zlog_limit - stream->len - append_len; in zlog_stream_unbuffered_write() [all …]
|
H A D | fpm_log.c | 103 size_t len, len2; in fpm_log_write() local 145 len = 0; in fpm_log_write() 152 if (len >= FPM_LOG_BUFFER) { in fpm_log_write() 154 len = FPM_LOG_BUFFER; in fpm_log_write() 395 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%s", tmp); in fpm_log_write() 447 len += len2; in fpm_log_write() 449 if (len >= FPM_LOG_BUFFER) { in fpm_log_write() 451 len = FPM_LOG_BUFFER; in fpm_log_write() 461 len++; in fpm_log_write() 467 buffer[len] = '\n'; in fpm_log_write() [all …]
|
/PHP-7.3/ext/opcache/Optimizer/ |
H A D | zend_worklist.h | 27 int len; member 33 (s)->len = 0; \ 42 ZEND_ASSERT(len >= 0); in zend_worklist_stack_prepare() 45 stack->len = 0; in zend_worklist_stack_prepare() 46 stack->capacity = len; in zend_worklist_stack_prepare() 54 stack->buf[stack->len++] = i; in zend_worklist_stack_push() 59 ZEND_ASSERT(stack->len); in zend_worklist_stack_peek() 65 ZEND_ASSERT(stack->len); in zend_worklist_stack_pop() 76 (w)->stack.len = 0; \ 87 ZEND_ASSERT(len >= 0); in zend_worklist_prepare() [all …]
|
/PHP-7.3/ext/filter/ |
H A D | filter_private.h | 107 #define PHP_FILTER_TRIM_DEFAULT(p, len) PHP_FILTER_TRIM_DEFAULT_EX(p, len, 1); argument 109 #define PHP_FILTER_TRIM_DEFAULT_EX(p, len, return_if_empty) { \ argument 110 while ((len > 0) && (*p == ' ' || *p == '\t' || *p == '\r' || *p == '\v' || *p == '\n')) { \ 112 len--; \ 114 if (len < 1 && return_if_empty) { \ 117 if (len > 0) { \ 118 …while (p[len-1] == ' ' || p[len-1] == '\t' || p[len-1] == '\r' || p[len-1] == '\v' || p[len-1] == … 119 len--; \
|
/PHP-7.3/ext/mbstring/oniguruma/src/ |
H A D | regerror.c | 210 int len; in to_ascii() local 215 len = 0; in to_ascii() 220 len = 0; in to_ascii() 229 len += 10; in to_ascii() 234 len += 6; in to_ascii() 256 return len; in to_ascii() 284 int len, is_over; in onig_error_code_to_str() local 308 p += len; in onig_error_code_to_str() 331 s[len] = '\0'; in onig_error_code_to_str() 336 return len; in onig_error_code_to_str() [all …]
|
H A D | sjis.c | 128 int c, i, len; in mbc_to_code() local 134 if (len == 1) return n; in mbc_to_code() 136 for (i = 1; i < len; i++) { in mbc_to_code() 170 for (i = 0; i < len; i++) { in mbc_case_fold() 173 (*pp) += len; in mbc_case_fold() 182 int len; in left_adjust_char_head() local 197 p += len; in left_adjust_char_head() 232 int len = (int )(end - p); in property_name_to_ctype() local 235 if (len < sizeof(q) - 1) { in property_name_to_ctype() 236 xmemcpy(q, p, (size_t )len); in property_name_to_ctype() [all …]
|
H A D | euc_jp.c | 98 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() 143 int len; in mbc_case_fold() local 155 for (i = 0; i < len; i++) { in mbc_case_fold() 158 (*pp) += len; in mbc_case_fold() 170 int len; in left_adjust_char_head() local 178 p += len; in left_adjust_char_head() 214 int len = (int )(end - p); in property_name_to_ctype() local 217 if (len < sizeof(q) - 1) { in property_name_to_ctype() [all …]
|
/PHP-7.3/ext/dba/libcdb/ |
H A D | cdb.c | 51 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.3/ext/standard/ |
H A D | uuencode.c | 68 size_t len = 45; in php_uuencode() local 81 ee = s + len; in php_uuencode() 84 len = ee - s; in php_uuencode() 85 if (len % 3) { in php_uuencode() 100 if (len == 45) { in php_uuencode() 108 len = 0; in php_uuencode() 117 if (len < 45) { in php_uuencode() 152 ee = s + (len == 45 ? 60 : (int) floor(len * 1.33)); in php_uudecode() 168 if (len < 45) { in php_uudecode() 179 if (len > 1) { in php_uudecode() [all …]
|
/PHP-7.3/ext/xmlrpc/libxmlrpc/ |
H A D | simplestring.c | 119 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.3/ext/filter/tests/ |
H A D | 048.phpt | 8 $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';
|
/PHP-7.3/sapi/phpdbg/ |
H A D | phpdbg_io.c | 66 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.3/ext/zip/lib/ |
H A D | zip_source_zip.c | 43 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()
|
/PHP-7.3/ext/fileinfo/libmagic/ |
H A D | der.c | 177 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 < 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.3/ext/mbstring/ |
H A D | php_unicode.c | 261 return len; in php_unicode_tolower_full() 273 return len; in php_unicode_toupper_full() 285 return len; in php_unicode_totitle_full() 297 return len; in php_unicode_tofold_full() 314 unsigned len, i; in convert_case_filter() local 326 len = 1; in convert_case_filter() 335 len = 1; in convert_case_filter() 348 len = 1; in convert_case_filter() 357 len = 1; in convert_case_filter() 364 len = 1; in convert_case_filter() [all …]
|