Searched defs:keylen (Results 1 - 6 of 6) sorted by relevance

/PHP_TRUNK/ext/phar/
H A Ddirstream.c186 uint keylen; local
206 keylen = str_key->len;
207 if (keylen <= (uint)dirlen) {
208 if (keylen < (uint)dirlen || !strncmp(str_key->val, dir, dirlen)) {
218 if (keylen >= sizeof(".phar")-1 && !memcmp(str_key->val, ".phar", sizeof(".phar")-1)) {
226 if (NULL != (found = (char *) memchr(str_key->val, '/', keylen))) {
230 keylen = found - str_key->val;
231 entry[keylen] = '\0';
233 entry = (char *) safe_emalloc(keylen, 1, 1);
234 memcpy(entry, str_key->val, keylen);
[all...]
/PHP_TRUNK/ext/dba/libcdb/
H A Dcdb_make.c76 int cdb_make_addend(struct cdb_make *c, unsigned int keylen, unsigned int datalen, uint32 h TSRMLS_DC) argument
95 if (cdb_posplus(c, keylen) == -1)
104 int cdb_make_addbegin(struct cdb_make *c, unsigned int keylen, unsigned int datalen TSRMLS_DC) argument
108 if (keylen > 0xffffffff) {
117 uint32_pack(buf, keylen);
125 int cdb_make_add(struct cdb_make *c,char *key,unsigned int keylen,char *data,unsigned int datalen TSRMLS_DC) argument
127 if (cdb_make_addbegin(c, keylen, datalen TSRMLS_CC) == -1)
129 if (cdb_make_write(c, key, keylen TSRMLS_CC) != 0)
133 return cdb_make_addend(c, keylen, datalen, cdb_hash(key, keylen) TSRMLS_C
[all...]
/PHP_TRUNK/ext/openssl/
H A Dopenssl.c5057 int i=0, outlen, keylen; local
5071 keylen = EVP_CIPHER_key_length(cipher_type);
5072 if (keylen > password_len) {
5073 key = emalloc(keylen);
5074 memset(key, 0, keylen);
5090 if (password_len > keylen) {
5137 int i, outlen, keylen; local
5168 keylen = EVP_CIPHER_key_length(cipher_type);
5169 if (keylen > password_len) {
5170 key = emalloc(keylen);
[all...]
/PHP_TRUNK/ext/session/
H A Dmod_mm.c119 int keylen; local
121 keylen = strlen(key);
123 sd = mm_malloc(data->mm, sizeof(ps_sd) + keylen);
131 hv = ps_sd_hash(key, keylen);
139 memcpy(sd->key, key, keylen + 1);
/PHP_TRUNK/ext/dba/
H A Ddba.c622 int keylen = 0; local
649 keylen += Z_STRLEN(args[i]);
656 key = safe_emalloc(keylen, 1, 1);
657 key[keylen] = '\0';
658 keylen = 0;
661 memcpy(key+keylen, Z_STRVAL(args[i]), Z_STRLEN(args[i]));
662 keylen += Z_STRLEN(args[i]);
666 if ((le = zend_hash_str_find_ptr(&EG(persistent_list), key, keylen)) != NULL) {
946 if (zend_hash_str_update_mem(&EG(persistent_list), key, keylen, &new_le, sizeof(zend_resource)) == NULL) {
/PHP_TRUNK/ext/standard/
H A Durl_scanner_ex.c82 int keylen; local
87 keylen = q - key;
90 zend_hash_str_add_mem(ctx->tags, key, keylen, val, strlen(val)+1);

Completed in 16 milliseconds