Home
last modified time | relevance | path

Searched refs:len (Results 251 – 275 of 477) sorted by relevance

1...<<11121314151617181920

/PHP-7.4/ext/fileinfo/libmagic/
H A Dsoftmagic.c502 if (l >= len) in varexpand()
506 len -= l; in varexpand()
531 if (l >= len) in varexpand()
535 len -= l; in varexpand()
540 if (l >= len) in varexpand()
1171 if (len >= sz) { in mconvert()
1180 len = sz; in mconvert()
1182 while (len--) in mconvert()
1284 file_showstr(stderr, str, len); in mdebug()
1847 while (len-- > 0) in file_strncmp()
[all …]
/PHP-7.4/ext/hash/
H A Dhash_md.c68 static void Encode(unsigned char *output, uint32_t *input, unsigned int len) in Encode() argument
72 for (i = 0, j = 0; j < len; i++, j += 4) { in Encode()
85 static void Decode(uint32_t *output, const unsigned char *input, unsigned int len) in Decode() argument
89 for (i = 0, j = 0; j < len; i++, j += 4) in Decode()
655 PHP_HASH_API void PHP_MD2Update(PHP_MD2_CTX *context, const unsigned char *buf, size_t len) in PHP_MD2Update() argument
657 const unsigned char *p = buf, *e = buf + len; in PHP_MD2Update()
660 if (context->in_buffer + len < 16) { in PHP_MD2Update()
662 memcpy(context->buffer + context->in_buffer, p, len); in PHP_MD2Update()
663 context->in_buffer += (char) len; in PHP_MD2Update()
/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 Dfopen_wrappers.c551 size_t len = strlen(ptr); local
553 …if (filename_length > (MAXPATHLEN - 2) || len > MAXPATHLEN || len + 1 + filename_length + 1 >= MAX…
556 memcpy(trypath, ptr, len);
557 trypath[len] = '/';
558 memcpy(trypath+len+1, filename, filename_length+1);
H A Doutput.c54 static inline void php_output_op(int op, const char *str, size_t len);
240 PHPAPI size_t php_output_write_unbuffered(const char *str, size_t len) in php_output_write_unbuffered() argument
243 return sapi_module.ub_write(str, len); in php_output_write_unbuffered()
245 return php_output_direct(str, len); in php_output_write_unbuffered()
251 PHPAPI size_t php_output_write(const char *str, size_t len) in php_output_write() argument
254 php_output_op(PHP_OUTPUT_HANDLER_WRITE, str, len); in php_output_write()
255 return len; in php_output_write()
260 return php_output_direct(str, len); in php_output_write()
1035 static inline void php_output_op(int op, const char *str, size_t len) in php_output_op() argument
1054 context.in.used = len; in php_output_op()
[all …]
/PHP-7.4/ext/soap/
H A Dphp_sdl.c90 nscat[len] = '\0'; in get_element()
118 nscat = emalloc(len + 1); in get_encoder()
124 nscat[len] = '\0'; in get_encoder()
1143 len = strlen(tmp); in load_wsdl()
1207 int len; in sdl_deserialize_string() local
1213 s = emalloc(len+1); in sdl_deserialize_string()
1215 s[len] = '\0'; in sdl_deserialize_string()
1222 int len; in sdl_deserialize_key() local
1229 WSDL_CACHE_SKIP(len, in); in sdl_deserialize_key()
3223 len += user_len-1; in get_sdl()
[all …]
/PHP-7.4/ext/intl/tests/
H A Dregression_sortwsk_eq.phpt2 Regression: sort_wsk() eq but different len.
H A Dregression_sort_eq.phpt2 Regression: sort() eq but different len.
/PHP-7.4/sapi/phpdbg/
H A Dphpdbg_cmd.h67 size_t len; member
81 (v)->len = 0; \
H A Dphpdbg_wait.c125 void phpdbg_webdata_decompress(char *msg, int len) { in phpdbg_webdata_decompress() argument
132 …if (!php_var_unserialize(&zv, (const unsigned char **) &msg, (unsigned char *) msg + len, &var_has… in phpdbg_webdata_decompress()
349 int len; in PHPDBG_COMMAND() local
361 len = strlen(local.sun_path) + sizeof(local.sun_family); in PHPDBG_COMMAND()
362 if (bind(sl, (struct sockaddr *)&local, len) == -1) { in PHPDBG_COMMAND()
/PHP-7.4/ext/standard/tests/strings/
H A Dstrcspn_variation7.phpt2 Test strcspn() function : usage variations - with heredoc strings, varying start and default len ar…
5 /* Prototype : proto int strcspn(string str, string mask [, int start [,int len]])
7 … If start or/and length is provided works like strcspn(substr($s,$start,$len),$bad_chars)
13 * Testing strcspn() : with heredoc string, varying start and default len arguments
98 var_dump( strcspn($str,$mask,$start) ); // with default len value
H A Dstrspn_variation7.phpt2 Test strspn() function : usage variations - with heredoc strings, varying start and default len args
5 /* Prototype : proto int strspn(string str, string mask [, int start [, int len]])
7 … If start or/and length is provided works like strspn(substr($s,$start,$len),$good_chars)
13 * Testing strspn() : with heredoc string, varying start and default len arguments
98 var_dump( strspn($str,$mask,$start) ); // with default len value
/PHP-7.4/ext/standard/
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()
H A Dsha1.c366 static void SHA1Encode(output, input, len) in SHA1Encode() argument
369 unsigned int len;
373 for (i = 0, j = 0; j < len; i++, j += 4) {
386 static void SHA1Decode(output, input, len) in SHA1Decode() argument
389 unsigned int len;
393 for (i = 0, j = 0; j < len; i++, j += 4)
/PHP-7.4/ext/xml/
H A Dcompat.c343 _build_entity(const xmlChar *name, int len, xmlChar **entity, int *entity_len) in _build_entity() argument
345 *entity_len = len + 2; in _build_entity()
348 memcpy(*entity+1, name, len); in _build_entity()
349 (*entity)[len+1] = ';'; in _build_entity()
384 int len; in _get_entity() local
386 _build_entity(name, xmlStrlen(name), &entity, &len); in _get_entity()
387 parser->h_default(parser->user, (const xmlChar *) entity, len); in _get_entity()
/PHP-7.4/ext/intl/grapheme/
H A Dgrapheme_util.h26 zend_long grapheme_ascii_check(const unsigned char *day, size_t len);
H A Dgrapheme_util.c234 zend_long grapheme_ascii_check(const unsigned char *day, size_t len) in grapheme_ascii_check() argument
236 int ret_len = len; in grapheme_ascii_check()
237 while ( len-- ) { in grapheme_ascii_check()
/PHP-7.4/ext/mbstring/libmbfl/mbfl/
H A Dmbfl_memory_device.h67 mbfl_memory_device *device, const char *psrc, size_t len);
H A Dmbfl_convert.c239 mbfl_convert_filter_feed_string(mbfl_convert_filter *filter, const unsigned char *p, size_t len) { in mbfl_convert_filter_feed_string() argument
240 while (len > 0) { in mbfl_convert_filter_feed_string()
244 len--; in mbfl_convert_filter_feed_string()
/PHP-7.4/ext/sockets/
H A Dsockets.c194 ZEND_ARG_INFO(0, len)
201 ZEND_ARG_INFO(0, len)
208 ZEND_ARG_INFO(0, len)
217 ZEND_ARG_INFO(0, len)
1708 zend_long len, flags; local
1719 if ((len + 1) < 2) {
1750 zend_long len, flags; local
1757 if (len < 0) {
1766 retval = send(php_sock->bsd_socket, buf, (buf_len < (size_t)len ? buf_len : (size_t)len), flags);
1907 zend_long len, flags, port = 0; local
[all …]
/PHP-7.4/ext/opcache/Optimizer/
H A Dssa_integrity.c323 if (i != 0 && block->start < (block-1)->start + (block-1)->len) { in ssa_verify_integrity()
325 i, block->start, (block-1)->start + (block-1)->len); in ssa_verify_integrity()
327 if (i != cfg->blocks_count-1 && block->start + block->len > (block+1)->start) { in ssa_verify_integrity()
329 i, block->start + block->len, (block+1)->start); in ssa_verify_integrity()
332 for (j = block->start; j < block->start + block->len; j++) { in ssa_verify_integrity()
/PHP-7.4/ext/pdo_firebird/
H A Dfirebird_driver.c214 short len = (short)isc_vax_integer(&result[i+1],2); in firebird_handle_doer() local
216 if (len != 1 && len != 2 && len != 4) { in firebird_handle_doer()
221 ret += isc_vax_integer(&result[i+3],len); in firebird_handle_doer()
223 i += len+3; in firebird_handle_doer()
/PHP-7.4/ext/phar/
H A Dpharzip.h55 char len[4]; /* extra field length 4 bytes */ member
/PHP-7.4/ext/ffi/
H A Dffi.g396 {zend_ffi_val len = {.kind = ZEND_FFI_VAL_EMPTY};}
402 assignment_expression(&len)
404 ( "static" assignment_expression(&len)
409 | assignment_expression(&len)
415 | assignment_expression(&len)
421 {zend_ffi_make_array_type(dcl, &len);}
885 int zend_ffi_parse_decl(const char *str, size_t len) {
890 yy_end = yy_buf + len;
898 int zend_ffi_parse_type(const char *str, size_t len, zend_ffi_dcl *dcl) {
905 yy_end = yy_buf + len;
/PHP-7.4/ext/intl/formatter/
H A Dformatter_attr.c212 size_t len; in PHP_FUNCTION() local
217 &object, NumberFormatter_ce_ptr, &attribute, &value, &len ) == FAILURE) in PHP_FUNCTION()
229 intl_convert_utf8_to_utf16(&svalue, &slength, value, len, &INTL_DATA_ERROR_CODE(nfo)); in PHP_FUNCTION()

Completed in 93 milliseconds

1...<<11121314151617181920