/php-src/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-src/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-src/sapi/fpm/fpm/ |
H A D | zlog.c | 80 size_t len; in zlog_print_time() local 85 len += snprintf(timebuf + len, timebuf_len - len, ".%06d", (int) tv->tv_usec); in zlog_print_time() 87 len += snprintf(timebuf + len, timebuf_len - len, "] "); in zlog_print_time() 181 len += snprintf(buf + len, buf_size - len, "%s: pid %d, %s(), line %d: ", in zlog_buf_prefix() 184 len += snprintf(buf + len, buf_size - len, "%s: %s(), line %d: ", in zlog_buf_prefix() 188 len += snprintf(buf + len, buf_size - len, "%s: ", in zlog_buf_prefix() 220 len += vsnprintf(buf + len, buf_size - len, fmt, args); in vzlog() 228 len += snprintf(buf + len, buf_size - len, in vzlog() 398 len = zlog_limit - stream->len - append_len; in zlog_stream_unbuffered_write() 691 len = MIN(len + 1, zlog_limit); in zlog_stream_prefix_ex() [all …]
|
H A D | fpm_log.c | 113 size_t len, len2; in fpm_log_write() local 159 len = 0; in fpm_log_write() 166 if (len >= FPM_LOG_BUFFER) { in fpm_log_write() 168 len = FPM_LOG_BUFFER; in fpm_log_write() 412 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%s", tmp); in fpm_log_write() 464 len += len2; in fpm_log_write() 466 if (len >= FPM_LOG_BUFFER) { in fpm_log_write() 468 len = FPM_LOG_BUFFER; in fpm_log_write() 478 len++; in fpm_log_write() 484 buffer[len] = '\n'; in fpm_log_write() [all …]
|
/php-src/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 | 64 size_t i, len = l; in zend_compute_escaped_string_len() local 69 len += 1; in zend_compute_escaped_string_len() 71 len += 3; in zend_compute_escaped_string_len() 74 return len; in zend_compute_escaped_string_len() 83 ZSTR_LEN(str->s) += len; in smart_str_append_escaped() 142 str->len = 0; in _smart_string_alloc_persistent() 150 if (UNEXPECTED((size_t) len > SIZE_MAX - str->len)) { in _smart_string_alloc_persistent() 153 len += str->len; in _smart_string_alloc_persistent() 162 str->len = 0; in _smart_string_alloc() 176 if (UNEXPECTED((size_t) len > SIZE_MAX - str->len)) { in _smart_string_alloc() [all …]
|
H A D | zend_bitset.h | 155 for (i = 0; i < len; i++) { 182 for (i = 0; i < len; i++) { 191 for (i = 0; i < len; i++) { 200 for (i = 0; i < len; i++) { 209 for (i = 0; i < len; i++) { 218 for (i = 0; i < len; i++) { 227 for (i = 0; i < len; i++) { 239 for (i = 0; i < len; i++) { 249 uint32_t i = len; 268 uint32_t _i, _len = (len); \ [all …]
|
/php-src/ext/dom/lexbor/lexbor/tag/ |
H A D | tag.h | 45 lxb_tag_name_by_id(lxb_tag_id_t tag_id, size_t *len) in lxb_tag_name_by_id() argument 49 if (len != NULL) { in lxb_tag_name_by_id() 50 *len = 0; in lxb_tag_name_by_id() 56 if (len != NULL) { in lxb_tag_name_by_id() 57 *len = data->entry.length; in lxb_tag_name_by_id() 64 lxb_tag_name_upper_by_id(lxb_tag_id_t tag_id, size_t *len) in lxb_tag_name_upper_by_id() argument 68 if (len != NULL) { in lxb_tag_name_upper_by_id() 69 *len = 0; in lxb_tag_name_upper_by_id() 75 if (len != NULL) { in lxb_tag_name_upper_by_id() 76 *len = data->entry.length; in lxb_tag_name_upper_by_id() [all …]
|
H A D | tag.c | 77 lxb_tag_data_by_name(lexbor_hash_t *hash, const lxb_char_t *name, size_t len) in lxb_tag_data_by_name() argument 81 if (name == NULL || len == 0) { in lxb_tag_data_by_name() 86 name, len); in lxb_tag_data_by_name() 98 const lxb_char_t *name, size_t len) 103 if (name == NULL || len == 0) { 108 name, len); 124 lxb_tag_name_by_id_noi(lxb_tag_id_t tag_id, size_t *len) in lxb_tag_name_by_id_noi() argument 126 return lxb_tag_name_by_id(tag_id, len); in lxb_tag_name_by_id_noi() 130 lxb_tag_name_upper_by_id_noi(lxb_tag_id_t tag_id, size_t *len) in lxb_tag_name_upper_by_id_noi() argument 132 return lxb_tag_name_upper_by_id(tag_id, len); in lxb_tag_name_upper_by_id_noi() [all …]
|
/php-src/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 …]
|
/php-src/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-src/ext/dom/lexbor/lexbor/dom/interfaces/ |
H A D | document_type.h | 46 lxb_dom_document_type_name(lxb_dom_document_type_t *doc_type, size_t *len) in lxb_dom_document_type_name() argument 55 if (len != NULL) { in lxb_dom_document_type_name() 56 *len = 0; in lxb_dom_document_type_name() 62 if (len != NULL) { in lxb_dom_document_type_name() 63 *len = data->entry.length; in lxb_dom_document_type_name() 72 if (len != NULL) { in lxb_dom_document_type_public_id() 73 *len = doc_type->public_id.length; in lxb_dom_document_type_public_id() 82 if (len != NULL) { in lxb_dom_document_type_system_id() 83 *len = doc_type->system_id.length; in lxb_dom_document_type_system_id() 97 size_t *len); [all …]
|
/php-src/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-src/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-src/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-src/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-src/ext/opcache/jit/ir/ |
H A D | ir_strtab.c | 13 uint32_t len; member 24 for (i = 0; i < len; i++) { in ir_str_hash() 117 uint32_t h = ir_str_hash(str, len); in ir_strtab_find() 125 && p->len == len in ir_strtab_find() 136 uint32_t h = ir_str_hash(str, len); in ir_strtab_lookup() 144 && p->len == len in ir_strtab_lookup() 166 strtab->buf_top += len + 1; in ir_strtab_lookup() 174 p->len = len; in ir_strtab_lookup() 193 && p->len == len in ir_strtab_update() 212 *len = b->len; in ir_strtab_strl() [all …]
|
/php-src/ext/hash/ |
H A D | hash_murmur.c | 59 ctx->len = 0; in PHP_MURMUR3AInit() 64 ctx->len += len; in PHP_MURMUR3AUpdate() 65 PMurHash32_Process(&ctx->h, &ctx->carry, in, len); in PHP_MURMUR3AUpdate() 82 copy_context->len = orig_context->len; in PHP_MURMUR3ACopy() 125 ctx->len = 0; in PHP_MURMUR3CInit() 130 ctx->len += len; in PHP_MURMUR3CUpdate() 131 PMurHash128x86_Process(ctx->h, ctx->carry, in, len); in PHP_MURMUR3CUpdate() 161 copy_context->len = orig_context->len; in PHP_MURMUR3CCopy() 202 ctx->len = 0; in PHP_MURMUR3FInit() 207 ctx->len += len; in PHP_MURMUR3FUpdate() [all …]
|
/php-src/ext/mbstring/libmbfl/filters/ |
H A D | mbfilter_utf16.c | 741 len -= 2; in mb_utf16be_to_wchar_avx2() 754 len -= 4; in mb_utf16be_to_wchar_avx2() 777 len -= 2; in mb_utf16be_to_wchar_avx2() 828 len -= 8; in mb_wchar_to_utf16be_avx2() 849 len--; in mb_wchar_to_utf16be_avx2() 867 if (len) { in mb_wchar_to_utf16be_avx2() 1007 len -= 8; in mb_wchar_to_utf16le_avx2() 1025 len--; in mb_wchar_to_utf16le_avx2() 1043 if (len) { in mb_wchar_to_utf16le_avx2() 1056 len &= ~1; in mb_cut_utf16be() [all …]
|
/php-src/ext/dom/lexbor/lexbor/html/tree/ |
H A D | open_elements.c | 19 while (len != 0) { in lxb_html_tree_open_elements_remove_by_node() 20 len--; in lxb_html_tree_open_elements_remove_by_node() 22 if (list[len] == node) { in lxb_html_tree_open_elements_remove_by_node() 25 memmove(list + len, list + len + 1, sizeof(void *) * delta); in lxb_html_tree_open_elements_remove_by_node() 177 while (len != 0) { in lxb_html_tree_open_elements_find_by_node_reverse() 178 len--; in lxb_html_tree_open_elements_find_by_node_reverse() 180 if (list[len] == node) { in lxb_html_tree_open_elements_find_by_node_reverse() 182 *return_pos = len; in lxb_html_tree_open_elements_find_by_node_reverse() 233 while (len != 0) { in lxb_html_tree_open_elements_find_reverse() 234 len--; in lxb_html_tree_open_elements_find_reverse() [all …]
|
/php-src/ext/bcmath/libbcmath/src/ |
H A D | convert.h | 30 static inline BC_VECTOR bc_partial_convert_to_vector(const char *n, size_t len) in bc_partial_convert_to_vector() argument 32 if (len == BC_VECTOR_SIZE) { in bc_partial_convert_to_vector() 39 for (size_t i = 0; i < len; i++) { in bc_partial_convert_to_vector() 52 size_t len = MIN(BC_VECTOR_SIZE, nlen); in bc_convert_to_vector() local 53 n_vector[i] = bc_partial_convert_to_vector(nend, len); in bc_convert_to_vector() 54 nend -= len; in bc_convert_to_vector() 55 nlen -= len; in bc_convert_to_vector()
|
/php-src/main/ |
H A D | php_open_temporary_file.c | 105 size_t len; in php_do_open_temporary_file() local 148 random_prefix = emalloc(len); in php_do_open_temporary_file() 150 while (p + 1 < random_prefix + len) { in php_do_open_temporary_file() 246 size_t len = strlen(sys_temp_dir); in php_get_temporary_directory() local 247 if (len >= 2 && sys_temp_dir[len - 1] == DEFAULT_SLASH) { in php_get_temporary_directory() 250 } else if (len >= 1 && sys_temp_dir[len - 1] != DEFAULT_SLASH) { in php_get_temporary_directory() 268 if (!len) { in php_get_temporary_directory() 272 if (NULL == (tmp = php_win32_ioutil_conv_w_to_any(sTemp, len, &len))) { in php_get_temporary_directory() 286 size_t len = strlen(s); in php_get_temporary_directory() local 288 if (s[len - 1] == DEFAULT_SLASH) { in php_get_temporary_directory() [all …]
|
/php-src/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() 223 return CAST(uint32_t, len); in getlength() 248 if (len < 12) in der_data() 257 for (i = 0; i < len; i++) { in der_data() 262 return len * 2; in der_data() 431 if (p + len > ep) in printdata() 433 printtag(tag, q, len); in printdata() [all …]
|