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

/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/phar/
H A Ddirstream.c98 uint keylen; local
101 if (HASH_KEY_NON_EXISTENT == zend_hash_get_current_key_ex(data, &str_key, &keylen, &unused, 0, NULL)) {
106 to_read = MIN(keylen, count);
108 if (to_read == 0 || count < keylen) {
185 uint keylen; local
201 if (HASH_KEY_NON_EXISTENT == zend_hash_get_current_key_ex(manifest, &str_key, &keylen, &unused, 0, NULL)) {
205 if (keylen <= (uint)dirlen) {
206 if (keylen < (uint)dirlen || !strncmp(str_key, dir, dirlen)) {
216 if (keylen >= sizeof(".phar")-1 && !memcmp(str_key, ".phar", sizeof(".phar")-1)) {
224 if (NULL != (found = (char *) memchr(str_key, '/', keylen))) {
306 uint keylen; local
[all...]
H A Dphar.c1958 uint keylen; local
1962 HASH_KEY_NON_EXISTENT != zend_hash_get_current_key_ex(&(PHAR_GLOBALS->phar_fname_map), &str_key, &keylen, &unused, 0, NULL);
1965 if (keylen > (uint) filename_len) {
1969 if (!memcmp(filename, str_key, keylen) && ((uint)filename_len == keylen
1970 || filename[keylen] == '/' || filename[keylen] == '\0')) {
1974 *ext_str = filename + (keylen - (*pphar)->ext_len);
1981 HASH_KEY_NON_EXISTENT != zend_hash_get_current_key_ex(&cached_phars, &str_key, &keylen, &unused, 0, NULL);
1984 if (keylen > (uin
[all...]
H A Dstream.c632 uint keylen; local
636 HASH_KEY_NON_EXISTENT != zend_hash_get_current_key_ex(&phar->mounted_dirs, &str_key, &keylen, &unused, 0, &pos);
639 if ((int)keylen >= internal_file_len || strncmp(str_key, internal_file, keylen)) {
646 if (SUCCESS != zend_hash_find(&phar->manifest, str_key, keylen, (void **) &entry)) {
652 test_len = spprintf(&test, MAXPATHLEN, "%s%s", entry->tmp, internal_file + keylen);
H A Dutil.c1304 uint keylen; local
1308 if (HASH_KEY_NON_EXISTENT == zend_hash_get_current_key_ex(&phar->mounted_dirs, &str_key, &keylen, &unused, 0, NULL)) {
1312 if ((int)keylen >= path_len || strncmp(str_key, path, keylen)) {
1319 if (SUCCESS != zend_hash_find(&phar->manifest, str_key, keylen, (void **) &entry)) {
1333 test_len = spprintf(&test, MAXPATHLEN, "%s%s", entry->tmp, path + keylen);
/PHP_TRUNK/ext/standard/
H A Durl_scanner_ex.c77 int keylen; local
82 keylen = q - key;
85 zend_hash_add(ctx->tags, key, keylen, val, strlen(val)+1, NULL);
/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
645 keylen += Z_STRLEN_PP(args[i]);
652 key = safe_emalloc(keylen, 1, 1);
653 key[keylen] = '\0';
654 keylen = 0;
657 memcpy(key+keylen, Z_STRVAL_PP(args[i]), Z_STRLEN_PP(args[i]));
658 keylen += Z_STRLEN_PP(args[i]);
662 if (zend_hash_find(&EG(persistent_list), key, keylen+1, (void **) &le) == SUCCESS) {
941 if (zend_hash_update(&EG(persistent_list), key, keylen+1, &new_le, sizeof(zend_rsrc_list_entry), NULL) == FAILURE) {
/PHP_TRUNK/ext/openssl/
H A Dopenssl.c5086 int i=0, outlen, keylen; local
5099 keylen = EVP_CIPHER_key_length(cipher_type);
5100 if (keylen > password_len) {
5101 key = emalloc(keylen);
5102 memset(key, 0, keylen);
5118 if (password_len > keylen) {
5165 int i, outlen, keylen; local
5196 keylen = EVP_CIPHER_key_length(cipher_type);
5197 if (keylen > password_len) {
5198 key = emalloc(keylen);
[all...]

Completed in 23 milliseconds