Searched refs:keylen (Results 1 - 22 of 22) sorted by relevance

/PHP_TRUNK/ext/dba/
H A Ddba_cdb.c159 if (php_cdb_find(&cdb->c, key, keylen) == 1) {
161 if (php_cdb_findnext(&cdb->c, key, keylen) != 1) {
189 if (cdb_make_add(&cdb->m, key, keylen, val, vallen TSRMLS_CC) != -1)
203 if (php_cdb_find(&cdb->c, key, keylen) == 1)
H A Ddba_db1.c39 #define DB1_GKEY DBT gkey; gkey.data = (char *) key; gkey.size = keylen
H A Ddba_db2.c40 gkey.size = keylen
H A Ddba_db3.c49 gkey.data = (char *) key; gkey.size = keylen
H A Ddba_db4.c67 gkey.data = (char *) key; gkey.size = keylen
H A Ddba_dbm.c43 #define DBM_GKEY datum gkey; gkey.dptr = (char *) key; gkey.dsize = keylen
H A Ddba_flatfile.c40 #define FLATFILE_GKEY datum gkey; gkey.dptr = (char *) key; gkey.dsize = keylen
H A Ddba_gdbm.c35 #define GDBM_GKEY datum gkey; gkey.dptr = (char *) key; gkey.dsize = keylen
H A Ddba_ndbm.c35 #define NDBM_GKEY datum gkey; gkey.dptr = (char *) key; gkey.dsize = keylen
H A Ddba_qdbm.c86 value = dpget(dba->dbf, key, keylen, 0, -1, &value_size);
100 if (dpput(dba->dbf, key, keylen, val, vallen, mode == 1 ? DP_DKEEP : DP_DOVER)) {
116 value = dpget(dba->dbf, key, keylen, 0, -1, NULL);
129 return dpout(dba->dbf, key, keylen) ? SUCCESS : FAILURE;
H A Ddba_tcadb.c95 value = tcadbget(dba->tcadb, key, keylen, &value_size);
114 if (tcadbvsiz(dba->tcadb, key, keylen) > -1) {
119 result = tcadbput(dba->tcadb, key, keylen, val, vallen);
135 value = tcadbget(dba->tcadb, key, keylen, &value_len);
148 return tcadbout(dba->tcadb, key, keylen) ? SUCCESS : FAILURE;
H A Dphp_dba.h98 char *dba_fetch_##x(dba_info *info, char *key, int keylen, int skip, int *newlen TSRMLS_DC)
100 int dba_update_##x(dba_info *info, char *key, int keylen, char *val, int vallen, int mode TSRMLS_DC)
102 int dba_exists_##x(dba_info *info, char *key, int keylen TSRMLS_DC)
104 int dba_delete_##x(dba_info *info, char *key, int keylen TSRMLS_DC)
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/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);
H A Durl_scanner_ex.re75 int keylen;
80 keylen = q - key;
83 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/openssl/
H A Dopenssl.c5141 int i=0, outlen, keylen; local
5154 keylen = EVP_CIPHER_key_length(cipher_type);
5155 if (keylen > password_len) {
5156 key = emalloc(keylen);
5157 memset(key, 0, keylen);
5173 if (password_len > keylen) {
5220 int i, outlen, keylen; local
5251 keylen = EVP_CIPHER_key_length(cipher_type);
5252 if (keylen > password_len) {
5253 key = emalloc(keylen);
[all...]

Completed in 40 milliseconds