/PHP-8.2/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.2/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.2/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() 178 len += snprintf(buf + len, buf_size - len, "%s: pid %d, %s(), line %d: ", in zlog_buf_prefix() 181 len += snprintf(buf + len, buf_size - len, "%s: %s(), line %d: ", in zlog_buf_prefix() 185 len += snprintf(buf + len, buf_size - len, "%s: ", in zlog_buf_prefix() 217 len += vsnprintf(buf + len, buf_size - len, fmt, args); in vzlog() 225 len += snprintf(buf + len, buf_size - len, in vzlog() 395 len = zlog_limit - stream->len - append_len; in zlog_stream_unbuffered_write() 688 len = MIN(len + 1, zlog_limit); in zlog_stream_prefix_ex() [all …]
|
H A D | fpm_log.c | 117 size_t len, len2; in fpm_log_write() local 163 len = 0; in fpm_log_write() 170 if (len >= FPM_LOG_BUFFER) { in fpm_log_write() 172 len = FPM_LOG_BUFFER; in fpm_log_write() 416 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%s", tmp); in fpm_log_write() 468 len += len2; in fpm_log_write() 470 if (len >= FPM_LOG_BUFFER) { in fpm_log_write() 472 len = FPM_LOG_BUFFER; in fpm_log_write() 482 len++; in fpm_log_write() 488 buffer[len] = '\n'; in fpm_log_write() [all …]
|
/PHP-8.2/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_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() 431 for (; len >= 8; len -= 8, str += 8) { in zend_inline_hash_func() 465 if (len >= 4) { in zend_inline_hash_func() 472 len -= 4; in zend_inline_hash_func() 475 if (len >= 2) { in zend_inline_hash_func() 476 if (len > 2) { in zend_inline_hash_func() 493 for (; len >= 8; len -= 8) { in zend_inline_hash_func() [all …]
|
/PHP-8.2/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.2/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() 52 stack->buf[stack->len++] = i; in zend_worklist_stack_push() 57 ZEND_ASSERT(stack->len); in zend_worklist_stack_peek() 63 ZEND_ASSERT(stack->len); in zend_worklist_stack_pop() 74 (w)->stack.len = 0; \ 85 ZEND_ASSERT(len >= 0); in zend_worklist_prepare() [all …]
|
/PHP-8.2/ext/filter/ |
H A D | filter_private.h | 108 #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-8.2/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.2/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 …]
|
H A D | php_string.h | 40 PHPAPI char *php_strtoupper(char *s, size_t len); 41 PHPAPI char *php_strtolower(char *s, size_t len); 44 PHPAPI char *php_strtr(char *str, size_t len, const char *str_from, const char *str_to, size_t trle… 47 PHPAPI zend_string *php_addcslashes_str(const char *str, size_t len, const char *what, size_t what_… 50 PHPAPI zend_string *php_basename(const char *s, size_t len, const char *suffix, size_t sufflen); 51 PHPAPI size_t php_dirname(char *str, size_t len); 56 PHPAPI size_t php_strip_tags(char *rbuf, size_t len, const char *allow, size_t allow_len); 57 PHPAPI size_t php_strip_tags_ex(char *rbuf, size_t len, const char *allow, size_t allow_len, bool a… 68 …y_string_shuffle(const php_random_algo *algo, php_random_status *status, char *str, zend_long len); 74 # define php_mblen(ptr, len) ((int) mbrlen(ptr, len, &BG(mblen_state))) argument [all …]
|
/PHP-8.2/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.2/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.2/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.2/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.2/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.2/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));
|
/PHP-8.2/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 …]
|