/php-src/ext/mbstring/libmbfl/mbfl/ |
H A D | mbfilter_8bit.c | 40 static void mb_wchar_to_8bit(uint32_t *in, size_t len, mb_convert_buf *buf, bool end); 112 static void mb_wchar_to_8bit(uint32_t *in, size_t len, mb_convert_buf *buf, bool end) in mb_wchar_to_8bit() argument 116 MB_CONVERT_BUF_ENSURE(buf, out, limit, len); in mb_wchar_to_8bit() 118 while (len--) { in mb_wchar_to_8bit() 124 MB_CONVERT_BUF_ENSURE(buf, out, limit, len); in mb_wchar_to_8bit()
|
/php-src/ext/standard/tests/strings/ |
H A D | strncmp_error.phpt | 11 /* Invalid argument for $len */ 12 $len = -10; 15 var_dump( strncmp($str1, $str2, $len) );
|
H A D | strspn_basic.phpt | 16 $len = 12; 19 var_dump( strspn($str, $mask, $start, $len) ); 21 // Calling strspn() with three arguments and default len argument
|
/php-src/ext/phar/ |
H A D | phar_path_check.re | 21 phar_path_check_result phar_path_check(char **s, size_t *len, const char **error) 26 if (*len == 1 && *p == '.') { 29 } else if (*len == 2 && p[0] == '.' && p[1] == '.') { 36 #define YYLIMIT p+*len 84 *len = (p - (const unsigned char*)*s) -1; 94 (*len)--; 96 if ((p - (const unsigned char*)*s) - 1 != *len)
|
/php-src/ext/hash/ |
H A D | php_hash_xxhash.h | 29 PHP_HASH_API void PHP_XXH32Update(PHP_XXH32_CTX *ctx, const unsigned char *in, size_t len); 39 PHP_HASH_API void PHP_XXH64Update(PHP_XXH64_CTX *ctx, const unsigned char *in, size_t len); 61 PHP_HASH_API void PHP_XXH3_64_Update(PHP_XXH3_64_CTX *ctx, const unsigned char *in, size_t len); 68 PHP_HASH_API void PHP_XXH3_128_Update(PHP_XXH3_128_CTX *ctx, const unsigned char *in, size_t len);
|
/php-src/sapi/phpdbg/ |
H A D | phpdbg_list.c | 82 phpdbg_list_function_byname(param->str, param->len); in PHPDBG_LIST() 113 if (phpdbg_safe_class_lookup(param->str, param->len, &ce) == SUCCESS) { in PHPDBG_LIST() 186 void phpdbg_list_function_byname(const char *str, size_t len) /* {{{ */ in phpdbg_list_function_byname() argument 191 size_t func_name_len = len; in phpdbg_list_function_byname() 234 size_t len; in phpdbg_compile_file() local 238 if (zend_stream_fixup(file, &bufptr, &len) == FAILURE) { in phpdbg_compile_file() 247 data.buf = estrndup(bufptr, len); in phpdbg_compile_file() 248 data.len = len; in phpdbg_compile_file() 256 data.buf[data.len] = '\0'; in phpdbg_compile_file() 258 *(dataptr = emalloc(sizeof(phpdbg_file_source) + sizeof(uint32_t) * data.len)) = data; in phpdbg_compile_file() [all …]
|
H A D | phpdbg_io.h | 24 PHPDBG_API int phpdbg_mixed_read(int fd, char *ptr, int len, int tmo); 25 PHPDBG_API int phpdbg_mixed_write(int fd, const char *ptr, int len);
|
/php-src/sapi/fuzzer/ |
H A D | generate_unserialize_dict.php | 5 $len = strlen($class); variable 6 $dict .= "\"$len:\\\"" . addslashes($class) . "\\\"\"\n";
|
/php-src/ext/standard/ |
H A D | crypt_sha256.c | 34 if (n > len) { in __php_stpncpy() 35 n = len; in __php_stpncpy() 109 if (ctx->total[0] < len) { in sha256_process_block() 246 size_t add = 128 - left_over > len ? len : 128 - left_over; in sha256_process_bytes() 259 len -= add; in sha256_process_bytes() 263 if (len >= 64) { in sha256_process_bytes() 272 while (len > 64) { in sha256_process_bytes() 275 len -= 64; in sha256_process_bytes() 279 len &= 63; in sha256_process_bytes() 284 if (len > 0) { in sha256_process_bytes() [all …]
|
/php-src/ext/dom/lexbor/lexbor/core/ |
H A D | dtoa.c | 48 lexbor_grisu2_round(lxb_char_t *start, size_t len, uint64_t delta, uint64_t rest, in lexbor_grisu2_round() argument 55 start[len - 1]--; in lexbor_grisu2_round() 241 size_t len; in lexbor_write_exponent() local 270 len = buf + (sizeof(buf) - 1) - p; in lexbor_write_exponent() 272 memcpy(begin, p, len); in lexbor_write_exponent() 274 return len + 1; in lexbor_write_exponent() 278 lexbor_prettify(lxb_char_t *begin, lxb_char_t *end, size_t len, int dec_exp) in lexbor_prettify() argument 285 length = (int) len; in lexbor_prettify() 368 lexbor_dtoa(double value, lxb_char_t *begin, size_t len) in lexbor_dtoa() argument 372 lxb_char_t *end = begin + len; in lexbor_dtoa() [all …]
|
/php-src/sapi/litespeed/ |
H A D | lsapi_main.c | 380 int len; in sapi_lsapi_send_headers_like_cgi() local 513 ++len; in sapi_lsapi_log_message() 650 int len; in lsapi_execute_script() local 657 if ( len > 45 ) in lsapi_execute_script() 658 len = len - 45; in lsapi_execute_script() 660 len = 0; in lsapi_execute_script() 844 --len; in pathlen_without_trailing_slash() 846 return len; in pathlen_without_trailing_slash() 1681 int len; in PHP_FUNCTION() local 1698 if (p && len > 0 && len < LSAPI_RESP_HTTP_HEADER_MAX) { in PHP_FUNCTION() [all …]
|
/php-src/ext/filter/ |
H A D | logical_filters.c | 203 size_t len; in php_filter_int() local 215 if (len == 0) { in php_filter_int() 234 p++; len--; in php_filter_int() 236 p++; len--; in php_filter_int() 237 if (len == 0) { in php_filter_int() 246 p++; len--; in php_filter_int() 247 if (len == 0) { in php_filter_int() 284 switch (len) { in php_filter_boolean() 344 size_t len; in php_filter_float() local 368 end = str + len; in php_filter_float() [all …]
|
/php-src/ext/fileinfo/libmagic/ |
H A D | funcs.c | 135 size_t len; in file_vprintf() local 149 if (len > 1024 || len + ms->o.blen > 1024 * 1024) { in file_vprintf() 165 ms->o.blen = len; in file_vprintf() 233 len); in file_oomem() 551 size_t psize, len; in file_getbuffer() local 565 file_oomem(ms, len); in file_getbuffer() 568 psize = len * 4 + 1; in file_getbuffer() 586 eop = op + len; in file_getbuffer() 628 size_t len; in file_check_mem() local 631 len = (ms->c.len = 20 + level) * sizeof(*ms->c.li); in file_check_mem() [all …]
|
H A D | cdf.c | 173 (void)memcpy(&(a), &buf[len], sizeof(a)), len += sizeof(a) 175 (void)memcpy((a), &buf[len], sizeof(a)), len += sizeof(a) 357 if (FINFO_READ_FUNC(info->i_fd, buf, len) != (ssize_t)len) in cdf_read() 434 return len; in cdf_read_short_sector() 1276 int len = 0; in cdf_print_elapsed_time() local 1289 len += snprintf(buf + len, bufsiz - len, "%dd+", days); in cdf_print_elapsed_time() 1295 len += snprintf(buf + len, bufsiz - len, "%.2d:", hours); in cdf_print_elapsed_time() 1300 len += snprintf(buf + len, bufsiz - len, "%.2d:", mins); in cdf_print_elapsed_time() 1302 return len; in cdf_print_elapsed_time() 1304 len += snprintf(buf + len, bufsiz - len, "%.2d", secs); in cdf_print_elapsed_time() [all …]
|
/php-src/ext/pdo_pgsql/tests/ |
H A D | bug62498.phpt | 70 ["len"]=> 89 ["len"]=> 108 ["len"]=> 127 ["len"]=> 146 ["len"]=> 165 ["len"]=> 184 ["len"]=> 203 ["len"]=> 222 ["len"]=>
|
H A D | bug62498-32bit.phpt | 71 ["len"]=> 90 ["len"]=> 109 ["len"]=> 128 ["len"]=> 147 ["len"]=> 166 ["len"]=> 185 ["len"]=> 204 ["len"]=> 223 ["len"]=>
|
/php-src/ext/pcre/pcre2lib/sljit/allocator_src/ |
H A D | sljitProtExecAllocatorPosix.c | 76 size_t len = strlen(dir); in create_tempfile() local 77 if (len > 0 && len < sizeof(tmp_name)) { in create_tempfile() 79 memcpy(tmp_name, dir, len + 1); in create_tempfile() 80 tmp_name_len = len; in create_tempfile()
|
/php-src/ext/standard/tests/file/ |
H A D | fwrite_error.phpt | 16 $len = 0; 17 var_dump( fwrite($file_handle, $data, $len) ); 18 $len = -10; 19 var_dump( fwrite($file_handle, $data, $len) );
|
/php-src/ext/fileinfo/ |
H A D | php_libmagic.c | 20 zend_string* convert_libmagic_pattern(const char *val, size_t len, uint32_t options) in convert_libmagic_pattern() argument 25 for (i = j = 0; i < len; i++) { in convert_libmagic_pattern() 43 for (i = 0; i < len; i++, j++) { in convert_libmagic_pattern()
|
/php-src/ext/libxml/ |
H A D | mime_sniff.c | 163 …ol is_empty_string_or_does_not_solely_contain_http_token_code_points(const char *start, size_t len) in is_empty_string_or_does_not_solely_contain_http_token_code_points() argument 165 if (len == 0) { in is_empty_string_or_does_not_solely_contain_http_token_code_points() 168 while (len > 0) { in is_empty_string_or_does_not_solely_contain_http_token_code_points() 172 len--; in is_empty_string_or_does_not_solely_contain_http_token_code_points() 178 static bool solely_contains_http_quoted_string_tokens(const char *start, size_t len) in solely_contains_http_quoted_string_tokens() argument 180 while (len > 0) { in solely_contains_http_quoted_string_tokens() 184 len--; in solely_contains_http_quoted_string_tokens()
|
/php-src/Zend/ |
H A D | zend_mmap.h | 37 static zend_always_inline void zend_mmap_set_name(const void *start, size_t len, const char *name) in zend_mmap_set_name() argument 40 prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, (unsigned long)start, len, (unsigned long)name); in zend_mmap_set_name()
|
H A D | zend_ini_scanner.l | 140 #define zend_ini_copy_value(retval, str, len) \ argument 141 ZVAL_NEW_STR(retval, zend_string_init(str, len, ZEND_SYSTEM_INI)) 144 #define RETURN_TOKEN(type, str, len) { \ argument 147 zend_ini_copy_typed_value(ini_lval, type, str, len); \ 150 zend_ini_copy_value(ini_lval, str, len); \ 168 zend_ini_copy_value(retval, str, len); in zend_ini_copy_typed_value() 187 static void yy_scan_buffer(const char *str, unsigned int len) in yy_scan_buffer() argument 191 YYLIMIT = YYCURSOR + len; in yy_scan_buffer() 269 int len = (int)strlen(str); in zend_ini_prepare_string_for_scanning() local 275 yy_scan_buffer(str, len); in zend_ini_prepare_string_for_scanning() [all …]
|
/php-src/ext/json/ |
H A D | json_encoder.c | 85 size_t len; in php_json_encode_double() local 89 len = strlen(num); in php_json_encode_double() 91 num[len++] = '.'; in php_json_encode_double() 92 num[len++] = '0'; in php_json_encode_double() 93 num[len] = '\0'; in php_json_encode_double() 326 if (len == 0) { in php_json_escape_string() 363 len--; in php_json_escape_string() 364 if (len == 0) { in php_json_escape_string() 432 len -= pos; in php_json_escape_string() 520 len--; in php_json_escape_string() [all …]
|
/php-src/ext/mysqlnd/ |
H A D | mysqlnd_alloc.h | 74 static inline void mysqlnd_set_string(MYSQLND_STRING *buf, const char *string, size_t len) { in mysqlnd_set_string() argument 81 buf->s = mnd_pestrndup(string, len, 0); in mysqlnd_set_string() 82 buf->l = len; in mysqlnd_set_string() 86 …sqlnd_set_persistent_string(MYSQLND_STRING *buf, const char *string, size_t len, bool persistent) { in mysqlnd_set_persistent_string() argument 93 buf->s = mnd_pestrndup(string, len, persistent); in mysqlnd_set_persistent_string() 94 buf->l = len; in mysqlnd_set_persistent_string()
|
/php-src/ext/pgsql/tests/ |
H A D | pg_meta_data_001.phpt | 47 ["len"]=> 64 ["len"]=> 83 ["len"]=> 100 ["len"]=> 119 ["len"]=> 144 ["len"]=>
|