Searched refs:keylen (Results 1 - 23 of 23) 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/
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
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/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/sapi/phpdbg/
H A Dphpdbg_utils.c397 static int phpdbg_parse_variable_arg_wrapper(char *name, size_t len, char *keyname, size_t keylen, HashTable *parent, zval *zv, phpdbg_parse_var_func callback TSRMLS_DC) { argument
398 return callback(name, len, keyname, keylen, parent, zv TSRMLS_CC);
455 size_t namelen, keylen; local
460 keylen = strkey->len;
462 keylen = spprintf(&key, 0, "%llu", numkey);
465 name = emalloc(i + keylen + 2);
466 namelen = sprintf(name, "%.*s%.*s%s", (int) i, input, keylen - (propkey - key), propkey, input[len - 1] == ']'?"]":"");
H A Dphpdbg_watch.c382 static int phpdbg_watchpoint_parse_wrapper(char *name, size_t len, char *keyname, size_t keylen, HashTable *parent, zval *zv, int (*callback)(phpdbg_watchpoint_t * TSRMLS_DC) TSRMLS_DC) { argument
389 watch->name_in_parent_len = keylen;
H A Dphpdbg_utils.h87 typedef int (*phpdbg_parse_var_func)(char *name, size_t len, char *keyname, size_t keylen, HashTable *parent, zval *zv TSRMLS_DC);
88 typedef int (*phpdbg_parse_var_with_arg_func)(char *name, size_t len, char *keyname, size_t keylen, HashTable *parent, zval *zv, void *arg TSRMLS_DC);
H A Dphpdbg_prompt.c680 int phpdbg_output_ev_variable(char *name, size_t len, char *keyname, size_t keylen, HashTable *parent, zval *zv TSRMLS_DC) { argument
/PHP_TRUNK/ext/standard/
H A Durl_scanner_ex.c82 size_t keylen; local
87 keylen = q - key;
90 zend_hash_str_add_mem(ctx->tags, key, keylen, val, strlen(val)+1);
H A Durl_scanner_ex.re80 size_t keylen;
85 keylen = q - key;
88 zend_hash_str_add_mem(ctx->tags, key, keylen, val, strlen(val)+1);

Completed in 28 milliseconds