Home
last modified time | relevance | path

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

/PHP-8.1/ext/dba/libcdb/
H A Dcdb_make.c74 int cdb_make_addend(struct cdb_make *c, unsigned int keylen, unsigned int datalen, uint32 h) in cdb_make_addend() argument
93 if (cdb_posplus(c, keylen) == -1) in cdb_make_addend()
102 int cdb_make_addbegin(struct cdb_make *c, unsigned int keylen, unsigned int datalen) in cdb_make_addbegin() argument
106 if (keylen > 0xffffffff) { in cdb_make_addbegin()
115 uint32_pack(buf, keylen); in cdb_make_addbegin()
123 int cdb_make_add(struct cdb_make *c,char *key,unsigned int keylen,char *data,unsigned int datalen) in cdb_make_add() argument
125 if (cdb_make_addbegin(c, keylen, datalen) == -1) in cdb_make_add()
127 if (cdb_make_write(c, key, keylen) != 0) in cdb_make_add()
131 return cdb_make_addend(c, keylen, datalen, cdb_hash(key, keylen)); in cdb_make_add()
/PHP-8.1/ext/phar/
H A Ddirstream.c175 size_t keylen; in phar_make_dirstream() local
195 keylen = ZSTR_LEN(str_key); in phar_make_dirstream()
196 if (keylen <= dirlen) { in phar_make_dirstream()
197 if (keylen == 0 || keylen < dirlen || !strncmp(ZSTR_VAL(str_key), dir, dirlen)) { in phar_make_dirstream()
220 entry[keylen] = '\0'; in phar_make_dirstream()
224 entry[keylen] = '\0'; in phar_make_dirstream()
253 keylen = found - save - dirlen - 1; in phar_make_dirstream()
254 entry[keylen] = '\0'; in phar_make_dirstream()
260 entry[keylen - dirlen - 1] = '\0'; in phar_make_dirstream()
261 keylen = keylen - dirlen - 1; in phar_make_dirstream()
[all …]
/PHP-8.1/ext/dba/
H A Ddba_tcadb.c92 value = tcadbget(dba->tcadb, key, keylen, &value_size); in DBA_FETCH_FUNC()
111 if (tcadbvsiz(dba->tcadb, key, keylen) > -1) { in DBA_UPDATE_FUNC()
116 result = tcadbput(dba->tcadb, key, keylen, val, vallen); in DBA_UPDATE_FUNC()
132 value = tcadbget(dba->tcadb, key, keylen, &value_len); in DBA_EXISTS_FUNC()
145 return tcadbout(dba->tcadb, key, keylen) ? SUCCESS : FAILURE; in DBA_DELETE_FUNC()
H A Dphp_dba.h97 char *dba_fetch_##x(dba_info *info, char *key, size_t keylen, int skip, size_t *newlen)
99 int dba_update_##x(dba_info *info, char *key, size_t keylen, char *val, size_t vallen, int mode)
101 int dba_exists_##x(dba_info *info, char *key, size_t keylen)
103 int dba_delete_##x(dba_info *info, char *key, size_t keylen)
H A Ddba_qdbm.c82 value = dpget(dba->dbf, key, keylen, 0, -1, &value_size); in DBA_FETCH_FUNC()
96 if (dpput(dba->dbf, key, keylen, val, vallen, mode == 1 ? DP_DKEEP : DP_DOVER)) { in DBA_UPDATE_FUNC()
112 value = dpget(dba->dbf, key, keylen, 0, -1, NULL); in DBA_EXISTS_FUNC()
125 return dpout(dba->dbf, key, keylen) ? SUCCESS : FAILURE; in DBA_DELETE_FUNC()
H A Ddba_cdb.c155 if (php_cdb_find(&cdb->c, key, keylen) == 1) { in DBA_FETCH_FUNC()
157 if (php_cdb_findnext(&cdb->c, key, keylen) != 1) { in DBA_FETCH_FUNC()
185 if (cdb_make_add(&cdb->m, key, keylen, val, vallen) != -1) in DBA_UPDATE_FUNC()
199 if (php_cdb_find(&cdb->c, key, keylen) == 1) in DBA_EXISTS_FUNC()
H A Ddba_lmdb.c134 k.mv_size = keylen; in DBA_FETCH_FUNC()
171 k.mv_size = keylen; in DBA_UPDATE_FUNC()
210 k.mv_size = keylen; in DBA_EXISTS_FUNC()
242 k.mv_size = keylen; in DBA_DELETE_FUNC()
H A Ddba.c536 size_t keylen = 0; in php_dba_open() local
563 keylen += Z_STRLEN(args[i]); in php_dba_open()
576 key = safe_emalloc(keylen, 1, 1); in php_dba_open()
577 key[keylen] = '\0'; in php_dba_open()
578 keylen = 0; in php_dba_open()
581 memcpy(key+keylen, Z_STRVAL(args[i]), Z_STRLEN(args[i])); in php_dba_open()
582 keylen += Z_STRLEN(args[i]); in php_dba_open()
586 if ((le = zend_hash_str_find_ptr(&EG(persistent_list), key, keylen)) != NULL) { in php_dba_open()
896 if (zend_register_persistent_resource(key, keylen, info, le_pdb) == NULL) { in php_dba_open()
H A Ddba_ndbm.c31 #define NDBM_GKEY datum gkey; gkey.dptr = (char *) key; gkey.dsize = keylen
H A Ddba_flatfile.c36 #define FLATFILE_GKEY datum gkey; gkey.dptr = (char *) key; gkey.dsize = keylen
H A Ddba_db1.c35 #define DB1_GKEY DBT gkey; gkey.data = (char *) key; gkey.size = keylen
H A Ddba_dbm.c39 #define DBM_GKEY datum gkey; gkey.dptr = (char *) key; gkey.dsize = keylen
H A Ddba_db2.c36 gkey.size = keylen
H A Ddba_gdbm.c31 #define GDBM_GKEY datum gkey; gkey.dptr = (char *) key; gkey.dsize = keylen
H A Ddba_db3.c48 gkey.data = (char *) key; gkey.size = keylen
H A Ddba_db4.c62 gkey.data = (char *) key; gkey.size = keylen
/PHP-8.1/sapi/phpdbg/
H A Dphpdbg_utils.h86 typedef int (*phpdbg_parse_var_func)(char *name, size_t len, char *keyname, size_t keylen, HashTabl…
87 typedef int (*phpdbg_parse_var_with_arg_func)(char *name, size_t len, char *keyname, size_t keylen,…
H A Dphpdbg_utils.c439 static int phpdbg_parse_variable_arg_wrapper(char *name, size_t len, char *keyname, size_t keylen, … in phpdbg_parse_variable_arg_wrapper() argument
440 return callback(name, len, keyname, keylen, parent, zv); in phpdbg_parse_variable_arg_wrapper()
496 size_t namelen, keylen; in phpdbg_parse_variable_with_arg() local
501 keylen = ZSTR_LEN(strkey); in phpdbg_parse_variable_with_arg()
503 keylen = spprintf(&key, 0, ZEND_ULONG_FMT, numkey); in phpdbg_parse_variable_with_arg()
506 name = emalloc(i + keylen + 2); in phpdbg_parse_variable_with_arg()
507 …namelen = sprintf(name, "%.*s%.*s%s", (int) i, input, (int) (keylen - (propkey - key)), propkey, i… in phpdbg_parse_variable_with_arg()
H A Dphpdbg_watch.c1215 static int phpdbg_watchpoint_parse_wrapper(char *name, size_t namelen, char *key, size_t keylen, Ha… argument
1219 element->name_in_parent = zend_string_init(key, keylen, 0);
1256 static int phpdbg_watchpoint_parse_step(char *name, size_t namelen, char *key, size_t keylen, HashT… argument
1269 element->name_in_parent = zend_string_init(key, keylen, 0);
H A Dphpdbg_prompt.c927 int phpdbg_output_ev_variable(char *name, size_t len, char *keyname, size_t keylen, HashTable *pare… in phpdbg_output_ev_variable() argument
/PHP-8.1/ext/session/
H A Dmod_mm.c113 int keylen; in ps_sd_new() local
115 keylen = strlen(key); in ps_sd_new()
117 sd = mm_malloc(data->mm, sizeof(ps_sd) + keylen); in ps_sd_new()
124 hv = ps_sd_hash(key, keylen); in ps_sd_new()
132 memcpy(sd->key, key, keylen + 1); in ps_sd_new()
/PHP-8.1/ext/standard/
H A Durl_scanner_ex.re83 size_t keylen;
90 keylen = q - key;
91 str = zend_string_init(key, keylen, 1);
132 size_t keylen;
139 keylen = q - key;
140 if (keylen > 0) {
141 tmp_key = zend_string_init(key, keylen, 0);

Completed in 71 milliseconds