Home
last modified time | relevance | path

Searched refs:len (Results 76 – 100 of 519) sorted by relevance

12345678910>>...21

/PHP-7.0/ext/sockets/tests/
H A Dsocket_sentto_recvfrom_unix.phpt28 $len = strlen($msg);
29 $bytes_sent = socket_sendto($socket, $msg, $len, 0); // cause warning
30 $bytes_sent = socket_sendto($socket, $msg, $len, 0, $address);
34 } else if ($bytes_sent != $len) {
36 die($bytes_sent . ' bytes have been sent instead of the ' . $len . ' bytes expected');
45 } else if ($bytes_received != $len) {
47 … die($bytes_received . ' bytes have been received instead of the ' . $len . ' bytes expected');
/PHP-7.0/ext/dba/libcdb/
H A Dcdb_make.c46 static int cdb_posplus(struct cdb_make *c, uint32 len) in cdb_posplus() argument
48 uint32 newpos = c->pos + len; in cdb_posplus()
49 if (newpos < len) { in cdb_posplus()
142 uint32 len; in cdb_make_finish() local
195 len = count + count; /* no overflow possible */ in cdb_make_finish()
197 uint32_pack(c->final + 8 * i + 4,len); in cdb_make_finish()
199 for (u = 0;u < len;++u) in cdb_make_finish()
204 where = (hp->h >> 8) % len; in cdb_make_finish()
206 if (++where == len) in cdb_make_finish()
211 for (u = 0;u < len;++u) { in cdb_make_finish()
/PHP-7.0/ext/standard/
H A Dcrypt_sha256.c44 if (n > len) { in __php_stpncpy()
45 n = len; in __php_stpncpy()
52 return (((char *)memcpy(dst, src, len)) + len); in __php_mempcpy()
261 size_t add = 128 - left_over > len ? len : 128 - left_over; in sha256_process_bytes()
274 len -= add; in sha256_process_bytes()
278 if (len >= 64) { in sha256_process_bytes()
287 while (len > 64) { in sha256_process_bytes()
290 len -= 64; in sha256_process_bytes()
294 len &= 63; in sha256_process_bytes()
299 if (len > 0) { in sha256_process_bytes()
[all …]
/PHP-7.0/main/
H A Dfastcgi.c1000 int pad = ((len + 7) & ~7) - len; in fcgi_make_header()
1091 if (safe_read(req, buf, len+padding) != len+padding) { in fcgi_read_request()
1135 if (safe_read(req, buf, len+padding) != len+padding) { in fcgi_read_request()
1159 if (safe_read(req, buf, len+padding) != len+padding) { in fcgi_read_request()
1222 rest = len; in fcgi_read()
1512 int len; local
1530 if (safe_write(req, req->out_buf, len) != len) {
1553 rest = len;
1569 return len;
1629 pad = (((len - pos) + 7) & ~7) - (len - pos);
[all …]
H A Dsnprintf.h81 PHPAPI int ap_php_slprintf(char *buf, size_t len, const char *format,...);
82 PHPAPI int ap_php_vslprintf(char *buf, size_t len, const char *format, va_list ap);
90 boolean_e add_dp, int precision, char dec_point, bool_int * is_negative, char *buf, size_t *len);
157 register bool_int * is_negative, char *buf_end, register size_t *len);
160 char format, char *buf_end, register size_t *len);
H A Dsnprintf.c359 *len = buf_end - p; in ap_php_conv_10()
398 *len = strlen(p); in php_conv_fp()
399 memcpy(buf, p, *len + 1); in php_conv_fp()
466 *len = s - buf; in php_conv_fp()
496 *len = buf_end - p; in ap_php_conv_p2()
574 while ( width > len )
1237 if (len == 0) { in strx_printv()
1266 if (cc >= len) { in ap_php_slprintf()
1267 cc = (int)len -1; in ap_php_slprintf()
1279 if (cc >= len) { in ap_php_vslprintf()
[all …]
/PHP-7.0/ext/mbstring/oniguruma/
H A Dregposerr.c77 size_t len; in regerror() local
91 len = strlen(s) + 1; /* use strlen() because s is ascii encoding. */ in regerror()
97 return len; in regerror()
/PHP-7.0/ext/xmlrpc/libxmlrpc/
H A Dxmlrpc.h325 XMLRPC_VALUE XMLRPC_CreateValueBase64(const char* id, const char* s, int len);
330 XMLRPC_VALUE XMLRPC_CreateValueString(const char* id, const char* s, int len);
351 const char *XMLRPC_SetValueString(XMLRPC_VALUE value, const char* s, int len);
352 void XMLRPC_SetValueBase64(XMLRPC_VALUE value, const char* s, int len);
353 const char *XMLRPC_SetValueID_Case(XMLRPC_VALUE value, const char* id, int len, XMLRPC_CASE id_case…
354 #define XMLRPC_SetValueID(value, id, len) XMLRPC_SetValueID_Case(value, id, len, XMLRPC_DEFAULT_ID_… argument
373 XMLRPC_REQUEST XMLRPC_REQUEST_FromXML(const char* in_buf, int len, XMLRPC_REQUEST_INPUT_OPTIONS in_…
374 XMLRPC_VALUE XMLRPC_VALUE_FromXML(const char* in_buf, int len, XMLRPC_REQUEST_INPUT_OPTIONS in_opti…
427 …MLRPC_VectorAppendString(vector, id, s, len) XMLRPC_AddValueToVector(vector, XMLRPC_CreateValueStr… argument
428 …MLRPC_VectorAppendBase64(vector, id, s, len) XMLRPC_AddValueToVector(vector, XMLRPC_CreateValueBas… argument
H A Dencodings.c117 char* utf8_encode(const char *s, int len, int *newlen, const char* encoding) in utf8_encode() argument
119 return convert(s, len, newlen, encoding, "UTF-8"); in utf8_encode()
123 char* utf8_decode(const char *s, int len, int *newlen, const char* encoding) in utf8_decode() argument
125 return convert(s, len, newlen, "UTF-8", encoding); in utf8_decode()
/PHP-7.0/sapi/phpdbg/
H A Dphpdbg_cmd.c144 dest->str = estrndup(src->str, src->len); in phpdbg_copy_param()
145 dest->len = src->len; in phpdbg_copy_param()
149 dest->str = estrndup(src->str, src->len); in phpdbg_copy_param()
150 dest->len = src->len; in phpdbg_copy_param()
175 dest->str = estrndup(src->str, src->len); in phpdbg_copy_param()
177 dest->len = src->len; in phpdbg_copy_param()
266 return (l->len == r->len) && in phpdbg_match_param()
455 stack->len++; in phpdbg_stack_push()
579 if (name->len == 1 || command->name_len >= name->len) { in phpdbg_stack_resolve()
591 if ((name->len != command->name_len && command->alias) || name->len == command->name_len) { in phpdbg_stack_resolve()
[all …]
H A Dphpdbg_utils.h70 PHPDBG_API int phpdbg_get_element(const char *name, size_t len); /* }}} */
88 typedef int (*phpdbg_parse_var_func)(char *name, size_t len, char *keyname, size_t keylen, HashTabl…
89 typedef int (*phpdbg_parse_var_with_arg_func)(char *name, size_t len, char *keyname, size_t keylen,…
91 PHPDBG_API int phpdbg_parse_variable(char *input, size_t len, HashTable *parent, size_t i, phpdbg_p…
92 PHPDBG_API int phpdbg_parse_variable_with_arg(char *input, size_t len, HashTable *parent, size_t i,…
94 int phpdbg_is_auto_global(char *name, int len);
H A Dphpdbg_out.c920 return len; in phpdbg_encode_xml()
926 int len; in phpdbg_encode_ctrl_chars() local
1101 int len; in phpdbg_vprint() local
1146 return len; in phpdbg_vprint()
1168 int len; in phpdbg_output_err_buf() local
1185 return len; in phpdbg_output_err_buf()
1190 int len; in phpdbg_print() local
1200 return len; in phpdbg_print()
1230 return len; in phpdbg_xml_internal()
1246 return len; in phpdbg_log_internal()
[all …]
/PHP-7.0/ext/zip/lib/
H A Dzip_source_window.c54 zip_source_window(zip_t *za, zip_source_t *src, zip_uint64_t start, zip_uint64_t len) in zip_source_window() argument
56 return _zip_source_window_new(src, start, len, NULL, &za->error); in zip_source_window()
114 window_read(zip_source_t *src, void *_ctx, void *data, zip_uint64_t len, zip_source_cmd_t cmd) in window_read() argument
128 return zip_error_to_data(&ctx->error, data, len); in window_read()
153 if (len > ctx->end - ctx->offset) in window_read()
154 len = ctx->end - ctx->offset; in window_read()
156 if (len == 0) in window_read()
166 if ((ret=zip_source_read(src, data, len)) < 0) { in window_read()
183 …ource_seek_compute_offset(ctx->offset - ctx->start, ctx->end - ctx->start, data, len, &ctx->error); in window_read()
H A Dzip_source_filep.c91 zip_source_filep(zip_t *za, FILE *file, zip_uint64_t start, zip_int64_t len) in zip_source_filep() argument
96 return zip_source_filep_create(file, start, len, &za->error); in zip_source_filep()
138 ctx->end = (len < 0 ? 0 : start+(zip_uint64_t)len); in _zip_source_file_or_p()
222 read_file(void *state, void *data, zip_uint64_t len, zip_source_cmd_t cmd) in read_file() argument
269 return zip_error_to_data(&ctx->error, data, len); in read_file()
298 if (n > len) { in read_file()
299 n = len; in read_file()
303 n = len; in read_file()
405 if (len < sizeof(ctx->st)) in read_file()
464 ret = fwrite(data, 1, len, ctx->fout); in read_file()
[all …]
/PHP-7.0/ext/mbstring/libmbfl/mbfl/
H A Dmbfl_string.c52 string->len = 0; in mbfl_string_init()
63 string->len = 0; in mbfl_string_init_set()
75 string->len = 0; in mbfl_string_clear()
/PHP-7.0/Zend/
H A Dzend_ini_scanner.l141 #define zend_ini_copy_value(retval, str, len) \ argument
145 #define RETURN_TOKEN(type, str, len) { \ argument
147 zend_ini_copy_typed_value(ini_lval, type, str, len); \
149 zend_ini_copy_value(ini_lval, str, len); \
187 if (convert_to_number(retval, str, len) == SUCCESS) { in zend_ini_copy_typed_value()
192 zend_ini_copy_value(retval, str, len); in zend_ini_copy_typed_value()
211 static void yy_scan_buffer(char *str, unsigned int len) in yy_scan_buffer() argument
215 YYLIMIT = YYCURSOR + len; in yy_scan_buffer()
300 int len = (int)strlen(str); in zend_ini_prepare_string_for_scanning() local
306 yy_scan_buffer(str, len); in zend_ini_prepare_string_for_scanning()
[all …]
/PHP-7.0/ext/fileinfo/libmagic/
H A Dstrcasestr.c72 size_t len; in strcasestr() local
76 len = strlen(find); in strcasestr()
82 } while (_strncasecmp(s, find, len) != 0); in strcasestr()
/PHP-7.0/ext/mbstring/oniguruma/enc/
H A Dutf8.c96 int c, len; in mbc_to_code() local
99 len = mbc_enc_len(p); in mbc_to_code()
100 if (len > end - p) len = end - p; in mbc_to_code()
103 if (len > 1) { in mbc_to_code()
104 len--; in mbc_to_code()
105 n = c & ((1 << (6 - len)) - 1); in mbc_to_code()
106 while (len--) { in mbc_to_code()
H A Deuc_tw.c92 int len; in euctw_left_adjust_char_head() local
98 len = enclen(ONIG_ENCODING_EUC_TW, p); in euctw_left_adjust_char_head()
99 if (p + len > s) return (UChar* )p; in euctw_left_adjust_char_head()
100 p += len; in euctw_left_adjust_char_head()
/PHP-7.0/ext/interbase/
H A Dibase_service.c342 int len; in _php_ibase_service_query() local
355 len = isc_vax_integer(result,2); in _php_ibase_service_query()
357 result += len+2; in _php_ibase_service_query()
369 int len; in _php_ibase_service_query() local
376 len = isc_vax_integer(result,2); in _php_ibase_service_query()
378 result += len+2; in _php_ibase_service_query()
382 len = isc_vax_integer(result,2); in _php_ibase_service_query()
384 result += len+2; in _php_ibase_service_query()
388 len = isc_vax_integer(result,2); in _php_ibase_service_query()
390 result += len+2; in _php_ibase_service_query()
[all …]
/PHP-7.0/ext/pdo_pgsql/tests/
H A Dbug62498.phpt61 ["len"]=>
80 ["len"]=>
99 ["len"]=>
118 ["len"]=>
137 ["len"]=>
156 ["len"]=>
175 ["len"]=>
194 ["len"]=>
213 ["len"]=>
H A Dbug62498-32bit.phpt61 ["len"]=>
80 ["len"]=>
99 ["len"]=>
118 ["len"]=>
137 ["len"]=>
156 ["len"]=>
175 ["len"]=>
194 ["len"]=>
213 ["len"]=>
/PHP-7.0/ext/mbstring/
H A Dmbstring.c2893 len = str_len; in PHP_FUNCTION()
2915 if (len < 0) { in PHP_FUNCTION()
2916 len = (mblen - from) + len; in PHP_FUNCTION()
2918 len = 0; in PHP_FUNCTION()
2979 len = string.len; in PHP_FUNCTION()
2995 if (len < 0) { in PHP_FUNCTION()
2996 len = (string.len - from) + len; in PHP_FUNCTION()
2998 len = 0; in PHP_FUNCTION()
4749 …if (illegalchars == 0 && string.len == result.len && memcmp(string.val, result.val, string.len) ==… in PHP_FUNCTION()
4883 haystack.len = len; in php_mb_stripos()
[all …]
/PHP-7.0/ext/phar/
H A Dphar_path_check.re23 phar_path_check_result phar_path_check(char **s, int *len, const char **error)
28 if (*len == 1 && *p == '.') {
31 } else if (*len == 2 && p[0] == '.' && p[1] == '.') {
38 #define YYLIMIT p+*len
84 *len = (p - (const unsigned char*)*s) -1;
94 (*len)--;
96 if ((p - (const unsigned char*)*s) - 1 != *len)
/PHP-7.0/ext/filter/
H A Dlogical_filters.c194 size_t len; in php_filter_int() local
204 len = Z_STRLEN_P(value); in php_filter_int()
206 if (len == 0) { in php_filter_int()
225 p++; len--; in php_filter_int()
227 p++; len--; in php_filter_int()
235 } else if (len != 0) { in php_filter_int()
265 switch (len) { in php_filter_boolean()
325 size_t len; in php_filter_float() local
340 len = Z_STRLEN_P(value); in php_filter_float()
344 end = str + len; in php_filter_float()
[all …]

Completed in 107 milliseconds

12345678910>>...21