/PHP-8.1/ext/dba/libcdb/ |
H A D | cdb_make.c | 74 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 D | dirstream.c | 175 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 D | dba_tcadb.c | 92 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 D | php_dba.h | 97 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 D | dba_qdbm.c | 82 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 D | dba_cdb.c | 155 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 D | dba_lmdb.c | 134 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 D | dba.c | 536 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 D | dba_ndbm.c | 31 #define NDBM_GKEY datum gkey; gkey.dptr = (char *) key; gkey.dsize = keylen
|
H A D | dba_flatfile.c | 36 #define FLATFILE_GKEY datum gkey; gkey.dptr = (char *) key; gkey.dsize = keylen
|
H A D | dba_db1.c | 35 #define DB1_GKEY DBT gkey; gkey.data = (char *) key; gkey.size = keylen
|
H A D | dba_dbm.c | 39 #define DBM_GKEY datum gkey; gkey.dptr = (char *) key; gkey.dsize = keylen
|
H A D | dba_db2.c | 36 gkey.size = keylen
|
H A D | dba_gdbm.c | 31 #define GDBM_GKEY datum gkey; gkey.dptr = (char *) key; gkey.dsize = keylen
|
H A D | dba_db3.c | 48 gkey.data = (char *) key; gkey.size = keylen
|
H A D | dba_db4.c | 62 gkey.data = (char *) key; gkey.size = keylen
|
/PHP-8.1/sapi/phpdbg/ |
H A D | phpdbg_utils.h | 86 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 D | phpdbg_utils.c | 439 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 D | phpdbg_watch.c | 1215 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 D | phpdbg_prompt.c | 927 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 D | mod_mm.c | 113 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 D | url_scanner_ex.re | 83 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);
|