Home
last modified time | relevance | path

Searched refs:len (Results 1 – 25 of 477) sorted by last modified time

12345678910>>...20

/PHP-7.4/ext/phar/
H A Dphar.c133 size_t len; in phar_split_cache_list() local
136 len = end - key; in phar_split_cache_list()
674 uint32_t len; in phar_parse_pharfile() local
1032 if (!len) { in phar_parse_pharfile()
1043 buffer += len; in phar_parse_pharfile()
1128 buffer += len; in phar_parse_pharfile()
2076 (len >= 2 && !php_check_dots(element, len))
2412 while (len--) { in phar_postprocess_file()
2572 if (len < 0) { in phar_flush()
2587 len = -len; in phar_flush()
[all …]
/PHP-7.4/main/
H A Dphp_variables.c387 ssize_t len = php_stream_read(s, buf, SAPI_POST_HANDLER_BUFSIZ); in SAPI_POST_HANDLER_FUNC() local
389 if (len > 0) { in SAPI_POST_HANDLER_FUNC()
390 smart_str_appendl(&post_data.str, buf, len); in SAPI_POST_HANDLER_FUNC()
398 if (len != SAPI_POST_HANDLER_BUFSIZ){ in SAPI_POST_HANDLER_FUNC()
562 size_t name_len, len; in import_environment_variable() local
575 len = strlen(p); in import_environment_variable()
576 if (len == 0) { in import_environment_variable()
578 } else if (len == 1) { in import_environment_variable()
581 ZVAL_NEW_STR(&val, zend_string_init(p, len, 0)); in import_environment_variable()
H A Dmain.c104 size_t len = strlen(hint); in get_safe_charset_hint() local
115 if (len == charset_map[i].codeset_len in get_safe_charset_hint()
116 && zend_binary_strcasecmp(hint, len, charset_map[i].codeset, len) == 0) { in get_safe_charset_hint()
912 size_t len; in php_log_err_with_severity() local
929 php_ignore_value(write(fd, tmp, (unsigned)len)); in php_log_err_with_severity()
931 php_ignore_value(write(fd, tmp, len)); in php_log_err_with_severity()
1522 int len; in php_get_current_user() local
1527 len = (int)strlen(name); in php_get_current_user()
1528 name[len] = '\0'; in php_get_current_user()
1529 SG(request_info).current_user_length = len; in php_get_current_user()
[all …]
/PHP-7.4/ext/pgsql/
H A Dpgsql.c891 if (len) { in _php_pgsql_trim_message()
892 *len = i; in _php_pgsql_trim_message()
1057 if (len <= 2) { in _php_pgsql_detect_identifier_escape()
1770 size_t len; local
3530 zend_long len; local
3545 buf_len = len < 0 ? 0 : len;
3568 size_t len; local
3585 len = z_len;
3588 len = str_len;
4898 size_t len; local
[all …]
/PHP-7.4/ext/mysqlnd/
H A Dmysqlnd_wireprotocol.c494 size_t len; in php_mysqlnd_auth_write() local
521 p+= len; in php_mysqlnd_auth_write()
569 p+= len; in php_mysqlnd_auth_write()
1051 size_t len; in php_mysqlnd_rset_header_read() local
1168 p += len; \
1194 zend_ulong len; in php_mysqlnd_rset_field_read() local
1290 p += len; in php_mysqlnd_rset_field_read()
1631 p -= len; in php_mysqlnd_rowp_read_text_protocol_aux()
1645 *(p + len) = '\0'; in php_mysqlnd_rowp_read_text_protocol_aux()
1679 *(p + len) = save; in php_mysqlnd_rowp_read_text_protocol_aux()
[all …]
H A Dmysqlnd_result.c74 if (meta->fields[i].max_length < len) { in MYSQLND_METHOD()
75 meta->fields[i].max_length = len; in MYSQLND_METHOD()
132 meta->fields[field].max_length = len; in MYSQLND_METHOD()
727 lengths[i] = len; in MYSQLND_METHOD()
730 if (field->max_length < len) { in MYSQLND_METHOD()
731 field->max_length = len; in MYSQLND_METHOD()
870 lengths[i] = len; in MYSQLND_METHOD()
873 if (field->max_length < len) { in MYSQLND_METHOD()
874 field->max_length = len; in MYSQLND_METHOD()
1097 meta->fields[i].max_length = len; in MYSQLND_METHOD()
[all …]
/PHP-7.4/ext/filter/
H A Dlogical_filters.c204 size_t len; in php_filter_int() local
214 len = Z_STRLEN_P(value); in php_filter_int()
216 if (len == 0) { in php_filter_int()
235 p++; len--; in php_filter_int()
237 p++; len--; in php_filter_int()
245 } else if (len != 0) { in php_filter_int()
275 switch (len) { in php_filter_boolean()
335 size_t len; in php_filter_float() local
355 len = Z_STRLEN_P(value); in php_filter_float()
359 end = str + len; in php_filter_float()
[all …]
/PHP-7.4/ext/pcre/
H A Dphp_pcre.c349 int len = pcre2_config(what, NULL); in PHP_INI_END() local
350 char *ret = (char *) malloc(len + 1); in PHP_INI_END()
352 len = pcre2_config(what, ret); in PHP_INI_END()
353 if (!len) { in PHP_INI_END()
/PHP-7.4/Zend/
H A Dzend_string.h76 #define _ZSTR_STRUCT_SIZE(len) (_ZSTR_HEADER_SIZE + len + 1) in END_EXTERN_C() argument
141 ZSTR_LEN(ret) = len; in zend_string_alloc()
189 ZSTR_LEN(ret) = len; in zend_string_realloc()
210 ZSTR_LEN(ret) = len; in zend_string_extend()
373 for (; len >= 8; len -= 8, str += 8) { in zend_inline_hash_func()
407 if (len >= 4) { in zend_inline_hash_func()
414 len -= 4; in zend_inline_hash_func()
417 if (len >= 2) { in zend_inline_hash_func()
418 if (len > 2) { in zend_inline_hash_func()
435 for (; len >= 8; len -= 8) { in zend_inline_hash_func()
[all …]
H A Dzend_smart_str.c65 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 …]
/PHP-7.4/main/streams/
H A Dstreams.c820 size_t len; in _php_stream_puts() local
1482 len += ret; in _php_stream_copy_to_mem()
1485 if (len) { in _php_stream_copy_to_mem()
1517 len += ret; in _php_stream_copy_to_mem()
1526 if (len) { in _php_stream_copy_to_mem()
1546 if (!len) { in _php_stream_copy_to_stream_ex()
1547 len = &dummy; in _php_stream_copy_to_stream_ex()
1551 *len = 0; in _php_stream_copy_to_stream_ex()
1565 *len = 0; in _php_stream_copy_to_stream_ex()
1668 size_t len; in _php_stream_copy_to_stream() local
[all …]
/PHP-7.4/ext/standard/
H A Darray.c149 t = is_numeric_string(s->key->val, s->key->len, &l2, &d, 1); in php_array_key_compare()
163 t = is_numeric_string(f->key->val, f->key->len, &l1, &d, 1); in php_array_key_compare()
224 l1 = f->key->len; in php_array_key_compare_string_case()
231 l2 = s->key->len; in php_array_key_compare_string_case()
257 l1 = f->key->len; in php_array_key_compare_string()
264 l2 = s->key->len; in php_array_key_compare_string()
290 l1 = f->key->len; in php_array_key_compare_string_natural_general()
297 l2 = s->key->len; in php_array_key_compare_string_natural_general()
H A Duser_filters.c275 size_t len; in user_filter_factory_create() local
284 len = strlen(filtername); in user_filter_factory_create()
287 if (NULL == (fdat = zend_hash_str_find_ptr(BG(user_filter_map), (char*)filtername, len))) { in user_filter_factory_create()
296 char *wildcard = safe_emalloc(len, 1, 3); in user_filter_factory_create()
299 memcpy(wildcard, filtername, len + 1); /* copy \0 */ in user_filter_factory_create()
/PHP-7.4/ext/libxml/
H A Dlibxml.c382 static int php_libxml_streams_IO_read(void *context, char *buffer, int len) in php_libxml_streams_IO_read() argument
384 return php_stream_read((php_stream*)context, buffer, len); in php_libxml_streams_IO_read()
387 static int php_libxml_streams_IO_write(void *context, const char *buffer, int len) in php_libxml_streams_IO_write() argument
389 return php_stream_write((php_stream*)context, buffer, len); in php_libxml_streams_IO_write()
592 int len, len_iter, output = 0; in php_libxml_internal_error_handler() local
595 len = vspprintf(&buf, 0, *msg, ap); in php_libxml_internal_error_handler()
596 len_iter = len; in php_libxml_internal_error_handler()
604 smart_str_appendl(&LIBXML(error_buffer), buf, len); in php_libxml_internal_error_handler()
/PHP-7.4/sapi/fpm/fpm/
H A Dzlog.c79 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 …]
/PHP-7.4/ext/intl/locale/
H A Dlocale_methods.c179 size_t len = 0; in getSingletonPos() local
181 if( str && ((len=strlen(str))>0) ){ in getSingletonPos()
183 for( i=0; (size_t)i < len ; i++){ in getSingletonPos()
373 tag_value->len = strlen(tag_value->val); in get_icu_value_internal()
998 size_t len = 0; in get_private_subtags() local
1007 if( singletonPos + 2 == len){ in get_private_subtags()
1023 len = strlen(mod_loc_name); in get_private_subtags()
1591 int len; in PHP_FUNCTION() local
1605 size_t len; in PHP_FUNCTION() local
1609 if(len > ULOC_FULLNAME_CAPACITY) { in PHP_FUNCTION()
[all …]
/PHP-7.4/ext/mbstring/
H A Dmbstring.c2221 size_t len; in PHP_FUNCTION() local
3020 len = string.len; in PHP_FUNCTION()
3036 if (len < 0) { in PHP_FUNCTION()
3037 len = (string.len - from) + len; in PHP_FUNCTION()
3038 if (len < 0) { in PHP_FUNCTION()
3039 len = 0; in PHP_FUNCTION()
3108 marker.len = 0; in PHP_FUNCTION()
4834 …if (illegalchars == 0 && string.len == result.len && memcmp(string.val, result.val, string.len) ==… in php_mb_check_encoding_impl()
5333 size_t len = 0; in php_mb_stripos() local
5335 haystack.len = len; in php_mb_stripos()
[all …]
/PHP-7.4/ext/date/
H A Dphp_date.c47 # define DATE_I64A(i, s, len) _i64toa_s(i, s, len, 10) argument
51 # define DATE_I64A(i, s, len) \ argument
53 int st = snprintf(s, len, "%lld", i); \
/PHP-7.4/ext/pcre/pcre2lib/
H A Dpcre2_jit_compile.c5452 len = 1; in scan_prefix()
5702 len = 1; in scan_prefix()
5734 len_save = len; in scan_prefix()
5741 len--; in scan_prefix()
5756 while (len > 0); in scan_prefix()
5761 len = len_save; in scan_prefix()
6787 int i, j, k, len, c; in optimize_class_chars() local
6792 len = 0; in optimize_class_chars()
6808 k = len; in optimize_class_chars()
6820 if (k == len) in optimize_class_chars()
[all …]
/PHP-7.4/sapi/fpm/tests/
H A Dstatus.inc30 'listen queue len' => '\d+',
/PHP-7.4/ext/zip/
H A Dphp_zip.c147 size_t dir_len, len; in php_zip_extract_file() local
219 if (!len) { in php_zip_extract_file()
744 ZEND_ARG_INFO(0, len)
827 int len = 0; in php_zip_property_reader() local
1311 zend_long len = 0; in PHP_NAMED_FUNCTION() local
1324 if (len <= 0) { in PHP_NAMED_FUNCTION()
1325 len = 1024; in PHP_NAMED_FUNCTION()
1591 int zep, syp, len; local
2706 zend_long len = 0; local
2731 if (len < 1) {
[all …]
/PHP-7.4/ext/gd/libgd/
H A Dgd.c1565 int len = 0; in strlen16() local
1568 len++; in strlen16()
1570 return len; in strlen16()
/PHP-7.4/ext/fileinfo/
H A Dlibmagic.patch188 size_t i, len;
197 len = (ms->c.len = 10) * sizeof(*ms->c.li);
394 - ssize_t len;
395 + size_t len;
754 - if (read(fd, map->p, map->len) != (ssize_t)map->len) {
882 size_t len;
2254 - int len;
2448 len = (ms->c.len = 20 + level) * sizeof(*ms->c.li);
3212 int len;
3347 - size_t len;
[all …]
/PHP-7.4/ext/date/lib/
H A Dparse_date.re135 unsigned int line, len;
449 int len = 0;
458 while ((**ptr >= '0') && (**ptr <= '9') && len < max_length) {
460 ++len;
492 int len = 0;
501 …while (((**ptr == '.') || (**ptr == ':') || ((**ptr >= '0') && (**ptr <= '9'))) && len < max_lengt…
503 ++len;
887 s->len = 0;
1830 char *e = s + len - 1;
1839 if (len > 0) {
[all …]
H A Dparse_date.c137 unsigned int line, len; member
451 int len = 0; in timelib_get_nr_ex() local
460 while ((**ptr >= '0') && (**ptr <= '9') && len < max_length) { in timelib_get_nr_ex()
462 ++len; in timelib_get_nr_ex()
494 int len = 0; in timelib_get_frac_nr() local
503 …while (((**ptr == '.') || (**ptr == ':') || ((**ptr >= '0') && (**ptr <= '9'))) && len < max_lengt… in timelib_get_frac_nr()
505 ++len; in timelib_get_frac_nr()
889 s->len = 0; in scan()
24938 char *e = s + len - 1; in timelib_strtotime()
24947 if (len > 0) { in timelib_strtotime()
[all …]

Completed in 229 milliseconds

12345678910>>...20