/PHP-8.1/ext/standard/tests/strings/ |
H A D | bug54055.phpt | 11 495: len=502 12 496: len=503 13 497: len=504 14 498: len=505 15 499: len=506 16 500: len=507 17 501: len=508 18 502: len=509 19 503: len=510 20 504: len=511 [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 …]
|
/PHP-8.1/tests/output/ |
H A D | ob_start_basic_004.phpt | 15 return "f[call:$callback_invocations; len:$len]$string\n"; 43 f[call:1; len:1]1 44 f[call:2; len:1]2 45 f[call:3; len:1]3 46 f[call:4; len:1]4 47 f[call:5; len:1]5 48 f[call:6; len:1]6 51 f[call:9; len:0] 58 f[call:5; len:0] 68 f[call:3; len:0] [all …]
|
/PHP-8.1/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() 398 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%s", tmp); in fpm_log_write() 450 len += len2; in fpm_log_write() 452 if (len >= FPM_LOG_BUFFER) { in fpm_log_write() 454 len = FPM_LOG_BUFFER; in fpm_log_write() 464 len++; in fpm_log_write() 470 buffer[len] = '\n'; in fpm_log_write() [all …]
|
/PHP-8.1/Zend/ |
H A D | zend_smart_string.h | 55 if (UNEXPECTED(!str->c) || UNEXPECTED(len >= str->a - str->len)) { in smart_string_alloc() 59 _smart_string_alloc(str, len); in smart_string_alloc() 62 return str->len + len; in smart_string_alloc() 70 str->a = str->len = 0; in smart_string_free_ex() 75 str->c[str->len] = '\0'; in smart_string_0() 81 dest->c[dest->len - 1] = ch; in smart_string_appendc_ex() 86 memcpy(dest->c + dest->len, str, len); in smart_string_appendl_ex() 87 dest->len = new_len; in smart_string_appendl_ex() 104 dest->len = len; in smart_string_setl() 105 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_smart_str.c | 63 size_t i, len = l; in zend_compute_escaped_string_len() local 68 len += 1; in zend_compute_escaped_string_len() 70 len += 3; in zend_compute_escaped_string_len() 73 return len; in zend_compute_escaped_string_len() 82 ZSTR_LEN(str->s) += len; in smart_str_append_escaped() 141 str->len = 0; in _smart_string_alloc_persistent() 149 if (UNEXPECTED((size_t) len > SIZE_MAX - str->len)) { in _smart_string_alloc_persistent() 152 len += str->len; in _smart_string_alloc_persistent() 161 str->len = 0; in _smart_string_alloc() 175 if (UNEXPECTED((size_t) len > SIZE_MAX - str->len)) { in _smart_string_alloc() [all …]
|
H A D | zend_bitset.h | 148 for (i = 0; i < len; i++) { 175 for (i = 0; i < len; i++) { 184 for (i = 0; i < len; i++) { 193 for (i = 0; i < len; i++) { 202 for (i = 0; i < len; i++) { 211 for (i = 0; i < len; i++) { 220 for (i = 0; i < len; i++) { 232 for (i = 0; i < len; i++) { 242 uint32_t i = len; 261 uint32_t _i, _len = (len); \ [all …]
|
H A D | zend_smart_str.h | 28 #define smart_str_extend(dest, len) \ argument 29 smart_str_extend_ex((dest), (len), 0) 32 #define smart_str_appendl(dest, src, len) \ argument 33 smart_str_appendl_ex((dest), (src), (len), 0) 66 len += ZSTR_LEN(str->s); in END_EXTERN_C() 67 if (UNEXPECTED(len >= str->a)) { in END_EXTERN_C() 70 smart_str_realloc(str, len); in END_EXTERN_C() 72 smart_str_erealloc(str, len); in END_EXTERN_C() 76 return len; in END_EXTERN_C() 80 size_t new_len = smart_str_alloc(dest, len, persistent); in smart_str_extend_ex() [all …]
|
H A D | zend_string.h | 90 #define _ZSTR_STRUCT_SIZE(len) (_ZSTR_HEADER_SIZE + len + 1) in END_EXTERN_C() argument 157 ZSTR_LEN(ret) = len; in zend_string_alloc() 183 if (len > 1) { in zend_string_init_fast() 185 } else if (len == 0) { in zend_string_init_fast() 413 for (; len >= 8; len -= 8, str += 8) { in zend_inline_hash_func() 447 if (len >= 4) { in zend_inline_hash_func() 454 len -= 4; in zend_inline_hash_func() 457 if (len >= 2) { in zend_inline_hash_func() 458 if (len > 2) { in zend_inline_hash_func() 475 for (; len >= 8; len -= 8) { in zend_inline_hash_func() [all …]
|
/PHP-8.1/sapi/phpdbg/ |
H A D | phpdbg_io.c | 27 int bytes = PHPDBG_G(input_buflen), len = 0; in ZEND_EXTERN_MODULE_GLOBALS() local 41 for (i = len; i < len + bytes; i++) { in ZEND_EXTERN_MODULE_GLOBALS() 43 if (i != len + bytes - 1) { in ZEND_EXTERN_MODULE_GLOBALS() 46 len--; in ZEND_EXTERN_MODULE_GLOBALS() 62 len += bytes; in ZEND_EXTERN_MODULE_GLOBALS() 63 …} while ((bytes = phpdbg_mixed_read(PHPDBG_G(io)[PHPDBG_STDIN].fd, buf + len, PHPDBG_MAX_CMD - len… in ZEND_EXTERN_MODULE_GLOBALS() 77 ret = read(fd, ptr, len); in phpdbg_mixed_read() 85 const char *p = ptr, *endp = ptr + len; in phpdbg_output_pager() 108 bytes += write(fd, ptr, len); in phpdbg_output_pager() 117 return phpdbg_output_pager(fd, ptr, len); in phpdbg_mixed_write() [all …]
|
H A D | phpdbg_out.c | 126 int len; in phpdbg_vprint() local 147 len = 0; in phpdbg_vprint() 156 return len; in phpdbg_vprint() 174 int len; in phpdbg_output_err_buf() local 191 return len; in phpdbg_output_err_buf() 196 int len; in phpdbg_print() local 206 return len; in phpdbg_print() 213 int len = 0; in phpdbg_log_internal() local 222 return len; in phpdbg_log_internal() 229 int len = 0; in phpdbg_out_internal() local [all …]
|
/PHP-8.1/Zend/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-8.1/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-8.1/ext/dba/libcdb/ |
H A D | cdb.c | 49 while (len > 0) { in cdb_match() 51 if (n > len) in cdb_match() 52 n = len; in cdb_match() 59 len -= n; in cdb_match() 72 while (len--) { in cdb_hash() 108 while (len > 0) { in cdb_read() 120 len -= r; in cdb_read() 134 u = cdb_hash(key, len); in cdb_findnext() 163 if (u == len) in cdb_findnext() 169 c->dpos = pos + 8 + len; in cdb_findnext() [all …]
|
/PHP-8.1/ext/standard/ |
H A D | uuencode.c | 66 size_t len = 45; in php_uuencode() local 80 ee = s + len; in php_uuencode() 83 len = ee - s; in php_uuencode() 84 if (len % 3) { in php_uuencode() 99 if (len == 45) { in php_uuencode() 107 len = 0; in php_uuencode() 116 if (len < 45) { in php_uuencode() 156 ee = s + (len == 45 ? 60 : (int) floor(len * 1.33)); in php_uudecode() 172 if (len < 45) { in php_uudecode() 183 if (len > 1) { in php_uudecode() [all …]
|
/PHP-8.1/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';
|
H A D | 047.phpt | 8 $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-8.1/ext/hash/ |
H A D | hash_murmur.c | 54 ctx->len = 0; in PHP_MURMUR3AInit() 59 ctx->len += len; in PHP_MURMUR3AUpdate() 60 PMurHash32_Process(&ctx->h, &ctx->carry, in, len); in PHP_MURMUR3AUpdate() 77 copy_context->len = orig_context->len; in PHP_MURMUR3ACopy() 115 ctx->len = 0; in PHP_MURMUR3CInit() 120 ctx->len += len; in PHP_MURMUR3CUpdate() 121 PMurHash128x86_Process(ctx->h, ctx->carry, in, len); in PHP_MURMUR3CUpdate() 151 copy_context->len = orig_context->len; in PHP_MURMUR3CCopy() 187 ctx->len = 0; in PHP_MURMUR3FInit() 192 ctx->len += len; in PHP_MURMUR3FUpdate() [all …]
|
/PHP-8.1/ext/fileinfo/libmagic/ |
H A D | der.c | 187 size_t len; in getlength() local 214 len = 0; in getlength() 216 len = (len << 8) | c[(*p)++]; in getlength() 218 if (len > UINT32_MAX - *p || *p + len > l) { in getlength() 220 __func__, *p, len, l)); in getlength() 223 return CAST(uint32_t, len); in getlength() 247 if (len < 12) in der_data() 261 return len * 2; in der_data() 419 if (p + len > ep) in printdata() 421 printtag(tag, q, len); in printdata() [all …]
|
/PHP-8.1/Zend/tests/ |
H A D | call_user_func_array_array_slice_type.phpt | 9 $len = []; 10 call_user_func_array('var_dump', array_slice($array, 0, $len)); 15 $len = 2.0; 16 call_user_func_array('var_dump', array_slice($array, 0, $len)); 18 $len = null; 19 call_user_func_array('var_dump', array_slice($array, 1, $len));
|
/PHP-8.1/ext/hash/murmur/ |
H A D | PMurHash.c | 106 #define dobytes(cnt, h1, c, n, ptr, len) \ argument 111 n++; len--;\ 123 void PMurHash32_Process(uint32_t *ph1, uint32_t *pcarry, const void *key, int len) in PMurHash32_Process() argument 139 if(i && i <= len) { in PMurHash32_Process() 140 dobytes(i, h1, c, n, ptr, len); in PMurHash32_Process() 144 end = ptr + (len & ~3); in PMurHash32_Process() 155 if(i && i <= len) { in PMurHash32_Process() 156 dobytes(i, h1, c, n, ptr, len); in PMurHash32_Process() 160 end = ptr + (len & ~3); in PMurHash32_Process() 195 len -= len & ~3; in PMurHash32_Process() [all …]
|
/PHP-8.1/main/ |
H A D | php_open_temporary_file.c | 215 size_t len = strlen(sys_temp_dir); in php_get_temporary_directory() local 216 if (len >= 2 && sys_temp_dir[len - 1] == DEFAULT_SLASH) { in php_get_temporary_directory() 219 } else if (len >= 1 && sys_temp_dir[len - 1] != DEFAULT_SLASH) { in php_get_temporary_directory() 235 size_t len = GetTempPathW(MAXPATHLEN, sTemp); in php_get_temporary_directory() local 237 if (!len) { in php_get_temporary_directory() 241 if (NULL == (tmp = php_win32_ioutil_conv_w_to_any(sTemp, len, &len))) { in php_get_temporary_directory() 245 PG(php_sys_temp_dir) = estrndup(tmp, len - 1); in php_get_temporary_directory() 255 size_t len = strlen(s); in php_get_temporary_directory() local 257 if (s[len - 1] == DEFAULT_SLASH) { in php_get_temporary_directory() 258 PG(php_sys_temp_dir) = estrndup(s, len - 1); in php_get_temporary_directory() [all …]
|
/PHP-8.1/ext/iconv/tests/ |
H A D | iconv_substr.phpt | 10 $len = strlen($str); 11 for ($i = 0; $i < $len; ++$i) { 17 function foo($str, $offset, $len, $charset) { 18 hexdump(substr($str, $offset, $len)); 19 hexdump(iconv_substr($str, $offset, $len, $charset)); 22 function bar($str, $offset, $len = false) { 23 if (is_bool($len)) { 27 var_dump(substr($str, $offset, $len)); 28 var_dump(iconv_substr($str, $offset, $len));
|