Home
last modified time | relevance | path

Searched refs:len (Results 251 – 275 of 496) sorted by path

1...<<11121314151617181920

/PHP-5.5/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)
H A Dpharzip.h57 char len[4]; /* extra field length 4 bytes */ member
H A Dshortarc.php226 $len = unpack('V', substr($m, $start, 4));
229 $savepath = substr($m, $start, $len[1]);
230 $start += $len[1];
H A Dstub.h21 static inline void phar_get_stub(const char *index_php, const char *web, size_t *len, char **stub, … in phar_get_stub() argument
33 …*len = spprintf(stub, name_len + web_len + newstub_len, "%s%s%s%s%s%s%d%s%s%s", newstub0, web, new… in phar_get_stub()
H A Dtar.c27 while (i < len && buf[i] == ' ') { in phar_tar_number()
68 int s = len; in phar_tar_octal()
80 while (len-- > 0) in phar_tar_octal()
90 char *end = buf + len; in phar_tar_checksum()
856 entry->metadata_str.len = 0; in phar_tar_setmetadata()
1004 if (len < 0) { in phar_tar_flush()
1012 if (len == -1) { in phar_tar_flush()
1015 len = -len; in phar_tar_flush()
1019 if (!(len = php_stream_copy_to_mem(stubfile, &user_stub, len, 0)) || !user_stub) { in phar_tar_flush()
1044 len = pos - user_stub + 18; in phar_tar_flush()
[all …]
H A Dutil.c1400 size_t len = 0; in phar_hex_str() local
1404 for (; len < digest_len; ++len) { in phar_hex_str()
1529 int read_size, len; local
1631 read_len -= (off_t)len;
1671 read_len -= (off_t)len;
1704 read_len -= (off_t)len;
1744 PHP_SHA1Update(&context, buf, len);
1745 read_len -= (off_t)len;
1777 PHP_MD5Update(&context, buf, len);
1778 read_len -= (off_t)len;
[all …]
H A Dzip.c64 len -= read + 4; in phar_zip_process_extra()
84 } while (len); in phar_zip_process_extra()
951 entry->metadata_str.len = 0; in phar_zip_changed_apply()
1230 if (len < 0) { in phar_zip_flush()
1239 if (len == -1) { in phar_zip_flush()
1240 len = PHP_STREAM_COPY_ALL; in phar_zip_flush()
1242 len = -len; in phar_zip_flush()
1247 if (!(len = php_stream_copy_to_mem(stubfile, &user_stub, len, 0)) || !user_stub) { in phar_zip_flush()
1258 tmp = estrndup(user_stub, len); in phar_zip_flush()
1272 len = pos - user_stub + 18; in phar_zip_flush()
[all …]
/PHP-5.5/ext/phar/tests/cache_list/files/
H A Dnophar.phar224 $len = unpack('V', substr($m, $start, 4));
226 $savepath = substr($m, $start, $len[1]);
227 $start += $len[1];
H A Dopenssl.phar224 $len = unpack('V', substr($m, $start, 4));
226 $savepath = substr($m, $start, $len[1]);
227 $start += $len[1];
/PHP-5.5/ext/phar/tests/files/
H A Dinclude_path2.phar224 $len = unpack('V', substr($m, $start, 4));
226 $savepath = substr($m, $start, $len[1]);
227 $start += $len[1];
H A Dnophar.phar224 $len = unpack('V', substr($m, $start, 4));
226 $savepath = substr($m, $start, $len[1]);
227 $start += $len[1];
H A Dopenssl.phar224 $len = unpack('V', substr($m, $start, 4));
226 $savepath = substr($m, $start, $len[1]);
227 $start += $len[1];
/PHP-5.5/ext/phar/tests/
H A Dphar_createdefaultstub.phpt260 $len = unpack('V', substr($m, $start, 4));
262 $savepath = substr($m, $start, $len[1]);
263 $start += $len[1];
554 $len = unpack('V', substr($m, $start, 4));
556 $savepath = substr($m, $start, $len[1]);
557 $start += $len[1];
856 $len = unpack('V', substr($m, $start, 4));
858 $savepath = substr($m, $start, $len[1]);
859 $start += $len[1];
H A Dphar_setdefaultstub.phpt280 $len = unpack('V', substr($m, $start, 4));
282 $savepath = substr($m, $start, $len[1]);
283 $start += $len[1];
575 $len = unpack('V', substr($m, $start, 4));
577 $savepath = substr($m, $start, $len[1]);
578 $start += $len[1];
870 $len = unpack('V', substr($m, $start, 4));
872 $savepath = substr($m, $start, $len[1]);
873 $start += $len[1];
/PHP-5.5/ext/readline/
H A Dreadline.c467 int len; in _readline_string_zval() local
472 len = strlen(str); in _readline_string_zval()
473 ZVAL_STRINGL(ret, (char*)str, len, 1); in _readline_string_zval()
H A Dreadline_cli.c217 for (i = 0; i < len; ++i) { in cli_is_valid_code()
289 if (i + 2 < len && code[i+1] == '<' && code[i+2] == '<') { in cli_is_valid_code()
568 int len = class_name_len + 2 + strlen(retval) + 1; in cli_completion_generator() local
569 char *tmp = malloc(len); in cli_completion_generator()
571 snprintf(tmp, len, "%s::%s", (*pce)->name, retval); in cli_completion_generator()
589 size_t size = 4096, pos = 0, len; in readline_shell_run() local
625 len = strlen(line); in readline_shell_run()
647 if (pos + len + 2 > size) { in readline_shell_run()
648 size = pos + len + 2; in readline_shell_run()
651 memcpy(&code[pos], line, len); in readline_shell_run()
[all …]
/PHP-5.5/ext/reflection/
H A Dphp_reflection.c117 int len; member
124 str->len = 1; in string_init()
131 int len; in string_printf() local
137 if (len) { in string_printf()
143 memcpy(str->string + str->len - 1, s_tmp, len + 1); in string_printf()
144 str->len += len; in string_printf()
153 register int nlen = (str->len + len + (1024 - 1)) & ~(1024 - 1); in string_write()
158 memcpy(str->string + str->len - 1, buf, len); in string_write()
159 str->len += len; in string_write()
175 str->len = 0; in string_free()
[all …]
/PHP-5.5/ext/session/
H A Dmod_mm.c73 static inline php_uint32 ps_sd_hash(const char *data, int len) in ps_sd_hash() argument
76 const char *e = data + len; in ps_sd_hash()
H A Dsession.c442 size_t len; in php_session_valid_key() local
459 len = p - key; in php_session_valid_key()
463 if (len == 0 || len > 128) { in php_session_valid_key()
850 *newlen = buf.len; in PHP_INI_END()
907 *newlen = buf.len;
999 *newlen = buf.len;
1305 int session_cookie_len, len = sizeof("Set-Cookie")-1;
1316 if (header->header_len > len && header->header[len] == ':'
2029 int len;
2036 enc = php_session_encode(&len TSRMLS_CC);
[all …]
/PHP-5.5/ext/skeleton/
H A Dskeleton.c140 int arg_len, len; in PHP_FUNCTION() local
147len = spprintf(&strg, 0, "Congratulations! You have successfully modified ext/%.78s/config.m4. Mod… in PHP_FUNCTION()
148 RETURN_STRINGL(strg, len, 0); in PHP_FUNCTION()
/PHP-5.5/ext/soap/
H A Dphp_encoding.c431 if (zend_hash_find(SOAP_GLOBAL(typemap), nscat.c, nscat.len + 1, (void**)&new_enc) == SUCCESS) { in master_to_xml_int()
522 if (zend_hash_find(SOAP_GLOBAL(typemap), nscat.c, nscat.len + 1, (void**)&new_enc) == SUCCESS) { in master_to_xml_int()
557 if (zend_hash_find(SOAP_GLOBAL(typemap), nscat.c, nscat.len + 1, (void**)&new_enc) == SUCCESS) { in master_to_zval_int()
2533 while (i < array_size.len) { in to_xml_array()
2817 xmlNodeSetContentLen(key, BAD_CAST(tmp.c), tmp.len); in to_xml_map()
3122 if (list.len != 0) { in to_xml_list()
3134 xmlNodeSetContentLen(ret, BAD_CAST(list.c), list.len); in to_xml_list()
3161 if (list.len != 0) { in to_xml_list()
3174 xmlNodeSetContentLen(ret, BAD_CAST(list.c), list.len); in to_xml_list()
3543 prefix.len = 0; in encode_add_ns()
[all …]
H A Dphp_http.c42 int len; in proxy_authentication() local
52 buf = php_base64_encode((unsigned char*)auth.c, auth.len, &len); in proxy_authentication()
54 smart_str_appendl(soap_headers, (char*)buf, len); in proxy_authentication()
72 int len; in basic_authentication() local
82 buf = php_base64_encode((unsigned char*)auth.c, auth.len, &len); in basic_authentication()
84 smart_str_appendl(soap_headers, (char*)buf, len); in basic_authentication()
262 if (php_stream_write(stream, soap_headers.c, soap_headers.len) != soap_headers.len) { in http_connect()
787 int len; in make_http_soap_request() local
797 buf = php_base64_encode((unsigned char*)auth.c, auth.len, &len); in make_http_soap_request()
866 if (err != soap_headers.len) { in make_http_soap_request()
[all …]
H A Dphp_packet_soap.c412 if (zend_hash_find(hdrs, key.c, key.len+1, (void**)&hdr) == SUCCESS) { in parse_packet_soap()
H A Dphp_schema.c62 if (zend_hash_find(sdl->encoders, nscat.c, nscat.len + 1, (void**)&enc_ptr) == SUCCESS) { in create_encoder()
83 zend_hash_update(sdl->encoders, nscat.c, nscat.len + 1, &enc, sizeof(encodePtr), NULL); in create_encoder()
1125 …if (zend_hash_add(sdl->groups, key.c, key.len+1, (void**)&newType, sizeof(sdlTypePtr), NULL) != SU… in schema_group()
1563 if (zend_hash_add(addHash, key.c, key.len + 1, &newType, sizeof(sdlTypePtr), NULL) != SUCCESS) { in schema_element()
1795 …if (zend_hash_add(addHash, key.c, key.len + 1, &newAttr, sizeof(sdlAttributePtr), NULL) != SUCCESS… in schema_attribute()
1884 …zend_hash_add(newAttr->extraAttributes, key2.c, key2.len + 1, &ext, sizeof(sdlExtraAttributePtr), … in schema_attribute()
1975 …if (zend_hash_add(ctx->attributeGroups, key.c, key.len + 1, &newType, sizeof(sdlTypePtr), NULL) !=… in schema_attributeGroup()
H A Dphp_sdl.c90 nscat[len] = '\0'; in get_element()
118 nscat = emalloc(len + 1); in get_encoder()
122 nscat[len] = '\0'; in get_encoder()
1201 int len; in sdl_deserialize_string() local
1207 s = emalloc(len+1); in sdl_deserialize_string()
1209 s[len] = '\0'; in sdl_deserialize_string()
1216 int len; in sdl_deserialize_key() local
1219 if (len == 0) { in sdl_deserialize_key()
3246 len += user_len-1; in get_sdl()
3247 key[len++] = '-'; in get_sdl()
[all …]

Completed in 152 milliseconds

1...<<11121314151617181920