Home
last modified time | relevance | path

Searched refs:len (Results 101 – 125 of 477) sorted by relevance

12345678910>>...20

/PHP-7.4/sapi/cgi/
H A Dcgi_main.c384 int len; in sapi_cgi_send_headers() local
602 size_t len; in _sapi_cgi_putenv() local
631 len = slprintf(buf, len - 1, "%s=%s", name, value); in _sapi_cgi_putenv()
637 len = slprintf(buf, len - 1, "%s=", name); in _sapi_cgi_putenv()
1689 while (len != 0 && (h->header[len-1] == ' ' || h->header[len-1] == '\t')) {
1690 len--;
1692 if (len) {
1695 s[len] = 0;
1749 size_t len; local
2460 len = 0;
[all …]
/PHP-7.4/ext/standard/
H A Dbase64.h76 static inline zend_string *php_base64_decode(const unsigned char *str, size_t len) { in php_base64_decode() argument
77 return php_base64_decode_ex(str, len, 0); in php_base64_decode()
H A Dcrypt_sha512.c125 size_t nwords = len / sizeof(uint64_t); in sha512_process_block()
138 ctx->total[0] += len; in sha512_process_block()
139 if (ctx->total[0] < len) { in sha512_process_block()
279 size_t add = (size_t)(256 - left_over > len ? len : 256 - left_over); in sha512_process_bytes()
294 len -= add; in sha512_process_bytes()
298 if (len >= 128) { in sha512_process_bytes()
308 while (len > 128) { in sha512_process_bytes()
311 len -= 128; in sha512_process_bytes()
318 len &= 127; in sha512_process_bytes()
323 if (len > 0) { in sha512_process_bytes()
[all …]
H A Dhrtime.c143 # define HRTIME_U64A(i, s, len) _ui64toa_s(i, s, len, 10) argument
145 # define HRTIME_U64A(i, s, len) \ argument
147 int st = snprintf(s, len, "%llu", i); \
H A Durl.c62 unsigned char *e = (unsigned char *)str + len; in php_replace_controlchars_ex()
476 end = (unsigned char *)s + len; in php_url_encode()
477 start = zend_string_safe_alloc(3, len, 0, 0); in php_url_encode()
547 PHPAPI size_t php_url_decode(char *str, size_t len) in php_url_decode() argument
552 while (len--) { in php_url_decode()
564 len -= 2; in php_url_decode()
584 str = zend_string_safe_alloc(3, len, 0, 0);
586 for (x = 0, y = 0; len--; x++, y++) {
646 PHPAPI size_t php_raw_url_decode(char *str, size_t len) argument
651 while (len--) {
[all …]
/PHP-7.4/tests/lang/
H A Dbug26696.phpt7 $len = strlen($str);
8 for ($i = 0; $i < $len; $i++) {
/PHP-7.4/ext/mysqlnd/
H A Dmysqlnd_connection.h47 #define SET_NEW_MESSAGE(buf, buf_len, message, len) \ argument
53 (buf) = mnd_pestrndup((message), (len), 0); \
57 (buf_len) = (len); \
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 …]
/PHP-7.4/Zend/
H A Dzend_stream.h32 typedef ssize_t (*zend_stream_reader_t)(void* handle, char *buf, size_t len);
63 size_t len; member
70 ZEND_API int zend_stream_fixup(zend_file_handle *file_handle, char **buf, size_t *len);
H A Dzend_constants.h56 …REGISTER_STRINGL_CONSTANT(name, str, len, flags) zend_register_stringl_constant((name), sizeof(na… argument
63 …TANT(ns, name, str, len, flags) zend_register_stringl_constant(ZEND_NS_NAME(ns, name), sizeof(ZEN… argument
70 …TER_MAIN_STRINGL_CONSTANT(name, str, len, flags) zend_register_stringl_constant((name), sizeof(na… argument
H A Dzend_language_scanner.l131 --(*len); in BEGIN_EXTERN_C()
895 if (len <= 1) { in zend_scan_escape_string()
896 if (len < 1) { in zend_scan_escape_string()
1003 len++; in zend_scan_escape_string()
1010 len++; in zend_scan_escape_string()
1016 len++; in zend_scan_escape_string()
1190 str += len; in strip_multiline_string_indentation()
1191 copy += len; in strip_multiline_string_indentation()
1786 --len;
1845 len = i;
[all …]
H A Dzend_string.c52 ZEND_API zend_ulong ZEND_FASTCALL zend_hash_func(const char *str, size_t len) in zend_hash_func() argument
54 return zend_inline_hash_func(str, len); in zend_hash_func()
332 size_t len = ZSTR_LEN(s1); in zend_string_equal_val() local
358 "+c"(len), in zend_string_equal_val()
368 size_t len = ZSTR_LEN(s1); in I_WRAP_SONAME_FNNAME_ZU() local
386 "+c"(len), in I_WRAP_SONAME_FNNAME_ZU()
400 size_t len = ZSTR_LEN(s1); in zend_string_equal_val() local
426 "+c"(len), in zend_string_equal_val()
436 size_t len = ZSTR_LEN(s1); in I_WRAP_SONAME_FNNAME_ZU() local
454 "+c"(len), in I_WRAP_SONAME_FNNAME_ZU()
/PHP-7.4/sapi/phpdbg/
H A Dphpdbg_parser.y127 $$.len = $1.len;
133 $$.len = $2.len;
153 $$.len = $3.len;
158 $$.len = $3.len;
162 $$.len = 0;
167 $$.len = $3.len;
/PHP-7.4/ext/fileinfo/libmagic/
H A Dfuncs.c143 len); in file_oomem()
417 size_t psize, len; in file_getbuffer() local
429 len = strlen(ms->o.buf); in file_getbuffer()
431 file_oomem(ms, len); in file_getbuffer()
434 psize = len * 4 + 1; in file_getbuffer()
452 eop = op + len; in file_getbuffer()
494 size_t len; in file_check_mem() local
496 if (level >= ms->c.len) { in file_check_mem()
497 len = (ms->c.len = 20 + level) * sizeof(*ms->c.li); in file_check_mem()
499 emalloc(len) : in file_check_mem()
[all …]
H A Dapprentice.c117 size_t len; member
168 size_t len; member
503 len = (ms->c.len = 10) * sizeof(*ms->c.li); in file_ms_alloc()
1096 size_t len; in load_1() local
1132 if (CAST(size_t, len - 2) > bang[i].len && in load_1()
2240 len = nt ? strlen(buf) : len; in parse_extra()
2366 len = len * 10 + (*ptr - '0'); \ in check_format_type()
2964 map->len = len;
3188 size_t len; in apprentice_compile() local
3404 len = *s;
[all …]
/PHP-7.4/ext/iconv/tests/
H A Deucjp2iso2022jp.phpt12 $len = strlen($str);
13 for ($i = 0; $i < $len; ++$i) {
/PHP-7.4/ext/zlib/tests/
H A Dbug75273.phpt9 function non_repeating_str($len = 8192) {
12 $iterations = (int) ($len / 256) + 1;
25 return substr($ret, 0, $len);
/PHP-7.4/main/
H A Dphp_syslog.c81 syslog(priority, "%.*s", (int)fbuf.len, fbuf.c); in php_syslog()
89 syslog(priority, "%.*s", (int)sbuf.len, sbuf.c); in php_syslog()
99 syslog(priority, "%.*s", (int)sbuf.len, sbuf.c); in php_syslog()
H A DSAPI.c323 content_type = (char*)emalloc(*len + 1); in get_default_content_type()
331 *len = prefix_len + mimetype_len; in get_default_content_type()
332 content_type = (char*)emalloc(*len + 1); in get_default_content_type()
341 uint32_t len; in sapi_get_default_content_type() local
343 return get_default_content_type(0, &len); in sapi_get_default_content_type()
349 uint32_t len; in sapi_get_default_content_type_header() local
352 default_header->header_len = len; in sapi_get_default_content_type_header()
595 if (header->header_len > len && header->header[len] == ':' in sapi_remove_header()
770 len--; in sapi_header_op()
852 uint32_t len = 0; in sapi_send_headers() local
[all …]
/PHP-7.4/ext/intl/idn/
H A Didn.c128 int32_t len; in php_intl_idn_to_46() local
140 len = uidna_nameToASCII_UTF8(uts46, ZSTR_VAL(domain), ZSTR_LEN(domain), in php_intl_idn_to_46()
142 …if (len >= buffer_capac || php_intl_idn_check_status(status, "failed to convert name") == FAILURE)… in php_intl_idn_to_46()
150 len = uidna_nameToUnicodeUTF8(uts46, ZSTR_VAL(domain), ZSTR_LEN(domain), in php_intl_idn_to_46()
152 …if (len >= buffer_capac || php_intl_idn_check_status(status, "failed to convert name") == FAILURE)… in php_intl_idn_to_46()
159 ZSTR_VAL(buffer)[len] = '\0'; in php_intl_idn_to_46()
160 ZSTR_LEN(buffer) = len; in php_intl_idn_to_46()
/PHP-7.4/ext/pdo/
H A Dpdo_sql_parser.re74 size_t len;
113 ptrdiff_t len = s.cur - s.tok;
114 if ((inquery < (s.cur - len)) && isalnum(*(s.cur - len - 1))) {
126 plc->len = s.cur - s.tok;
221 param = zend_hash_str_find_ptr(params, plc->pos, plc->len);
349 memcpy(newbuffer, plc->pos, plc->len);
350 newbuffer += plc->len;
352 ptr = plc->pos + plc->len;
389 name = estrndup(plc->pos, plc->len);
429 name = estrndup(plc->pos, plc->len);
[all …]
/PHP-7.4/ext/hash/
H A Dhash_fnv.c153 fnv_32_buf(void *buf, size_t len, uint32_t hval, int alternate) in fnv_32_buf() argument
156 unsigned char *be = bp + len; /* beyond end of buffer */ in fnv_32_buf()
196 fnv_64_buf(void *buf, size_t len, uint64_t hval, int alternate) in fnv_64_buf() argument
199 unsigned char *be = bp + len; /* beyond end of buffer */ in fnv_64_buf()
/PHP-7.4/ext/dom/tests/
H A DDOMNode_removeChild_basic.phpt41 $len = $children->length;
42 echo "original has $len nodes\n";
52 $len = $children->length;
53 echo "after text removed it now has $len nodes\n";
/PHP-7.4/ext/standard/tests/strings/
H A Dstrcspn_variation6.phpt2 …spn() function : usage variations - with heredoc strings, varying mask & default start and len args
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 mask and default start and len arguments
84 var_dump( strcspn($str,$mask) ); // with default start and len value
/PHP-7.4/ext/xmlrpc/libxmlrpc/
H A Dxmlrpc.c805 xml_elem_parse_buf (in_buf, len, in XMLRPC_REQUEST_FromXML()
898 (len > 0) ? simplestring_addn(&value->id, id, len) : in XMLRPC_SetValueID_Case()
904 for(i = 0; i < value->id.len; i++) { in XMLRPC_SetValueID_Case()
951 (len > 0) ? simplestring_addn(&value->str, val, len) : in XMLRPC_SetValueString()
1336 XMLRPC_SetValueString(value, val, len); in XMLRPC_CreateValueString()
1623 if (xSource->id.len) { in XMLRPC_DupValueNew()
1796 (len > 0) ? simplestring_addn(&value->str, s, len) : in XMLRPC_SetValueBase64()
1829 XMLRPC_SetValueBase64(val, s, len); in XMLRPC_CreateValueBase64()
1938 return ((value) ? value->str.len : 0); in XMLRPC_GetValueStringLen()
2802 if(description.len) { in XMLRPC_UtilityCreateFault()
[all …]

Completed in 96 milliseconds

12345678910>>...20