/PHP-7.0/ext/dba/libcdb/ |
H A D | cdb_make.c | 76 int cdb_make_addend(struct cdb_make *c, unsigned int keylen, unsigned int datalen, uint32 h) in cdb_make_addend() argument 95 if (cdb_posplus(c, keylen) == -1) in cdb_make_addend() 104 int cdb_make_addbegin(struct cdb_make *c, unsigned int keylen, unsigned int datalen) in cdb_make_addbegin() argument 108 if (keylen > 0xffffffff) { in cdb_make_addbegin() 117 uint32_pack(buf, keylen); in cdb_make_addbegin() 125 int cdb_make_add(struct cdb_make *c,char *key,unsigned int keylen,char *data,unsigned int datalen) in cdb_make_add() argument 127 if (cdb_make_addbegin(c, keylen, datalen) == -1) in cdb_make_add() 129 if (cdb_make_write(c, key, keylen) != 0) in cdb_make_add() 133 return cdb_make_addend(c, keylen, datalen, cdb_hash(key, keylen)); in cdb_make_add()
|
/PHP-7.0/ext/phar/ |
H A D | dirstream.c | 186 uint keylen; in phar_make_dirstream() local 202 keylen = 0; in phar_make_dirstream() 207 keylen = ZSTR_LEN(str_key); in phar_make_dirstream() 208 if (keylen <= (uint)dirlen) { in phar_make_dirstream() 209 if (keylen == 0 || keylen < (uint)dirlen || !strncmp(ZSTR_VAL(str_key), dir, dirlen)) { in phar_make_dirstream() 232 entry[keylen] = '\0'; in phar_make_dirstream() 236 entry[keylen] = '\0'; in phar_make_dirstream() 266 entry[keylen] = '\0'; in phar_make_dirstream() 272 entry[keylen - dirlen - 1] = '\0'; in phar_make_dirstream() 273 keylen = keylen - dirlen - 1; in phar_make_dirstream() [all …]
|
/PHP-7.0/ext/dba/ |
H A D | dba_tcadb.c | 95 value = tcadbget(dba->tcadb, key, keylen, &value_size); in DBA_FETCH_FUNC() 114 if (tcadbvsiz(dba->tcadb, key, keylen) > -1) { in DBA_UPDATE_FUNC() 119 result = tcadbput(dba->tcadb, key, keylen, val, vallen); in DBA_UPDATE_FUNC() 135 value = tcadbget(dba->tcadb, key, keylen, &value_len); in DBA_EXISTS_FUNC() 148 return tcadbout(dba->tcadb, key, keylen) ? SUCCESS : FAILURE; in DBA_DELETE_FUNC()
|
H A D | dba_qdbm.c | 86 value = dpget(dba->dbf, key, keylen, 0, -1, &value_size); in DBA_FETCH_FUNC() 100 if (dpput(dba->dbf, key, keylen, val, vallen, mode == 1 ? DP_DKEEP : DP_DOVER)) { in DBA_UPDATE_FUNC() 116 value = dpget(dba->dbf, key, keylen, 0, -1, NULL); in DBA_EXISTS_FUNC() 129 return dpout(dba->dbf, key, keylen) ? SUCCESS : FAILURE; in DBA_DELETE_FUNC()
|
H A D | php_dba.h | 101 char *dba_fetch_##x(dba_info *info, char *key, int keylen, int skip, int *newlen) 103 int dba_update_##x(dba_info *info, char *key, int keylen, char *val, int vallen, int mode) 105 int dba_exists_##x(dba_info *info, char *key, int keylen) 107 int dba_delete_##x(dba_info *info, char *key, int keylen)
|
H A D | dba_cdb.c | 159 if (php_cdb_find(&cdb->c, key, keylen) == 1) { in DBA_FETCH_FUNC() 161 if (php_cdb_findnext(&cdb->c, key, keylen) != 1) { in DBA_FETCH_FUNC() 189 if (cdb_make_add(&cdb->m, key, keylen, val, vallen) != -1) in DBA_UPDATE_FUNC() 203 if (php_cdb_find(&cdb->c, key, keylen) == 1) in DBA_EXISTS_FUNC()
|
H A D | dba.c | 639 int keylen = 0; in php_dba_open() local 662 keylen += Z_STRLEN(args[i]); in php_dba_open() 669 key = safe_emalloc(keylen, 1, 1); in php_dba_open() 670 key[keylen] = '\0'; in php_dba_open() 671 keylen = 0; in php_dba_open() 674 memcpy(key+keylen, Z_STRVAL(args[i]), Z_STRLEN(args[i])); in php_dba_open() 675 keylen += Z_STRLEN(args[i]); in php_dba_open() 679 if ((le = zend_hash_str_find_ptr(&EG(persistent_list), key, keylen)) != NULL) { in php_dba_open() 950 if (zend_hash_str_update(&EG(persistent_list), key, keylen, &new_le) == NULL) { in php_dba_open()
|
H A D | dba_ndbm.c | 35 #define NDBM_GKEY datum gkey; gkey.dptr = (char *) key; gkey.dsize = keylen
|
H A D | dba_flatfile.c | 40 #define FLATFILE_GKEY datum gkey; gkey.dptr = (char *) key; gkey.dsize = keylen
|
H A D | dba_dbm.c | 43 #define DBM_GKEY datum gkey; gkey.dptr = (char *) key; gkey.dsize = keylen
|
H A D | dba_db1.c | 39 #define DB1_GKEY DBT gkey; gkey.data = (char *) key; gkey.size = keylen
|
H A D | dba_db2.c | 40 gkey.size = keylen
|
H A D | dba_gdbm.c | 35 #define GDBM_GKEY datum gkey; gkey.dptr = (char *) key; gkey.dsize = keylen
|
H A D | dba_db3.c | 52 gkey.data = (char *) key; gkey.size = keylen
|
H A D | dba_db4.c | 66 gkey.data = (char *) key; gkey.size = keylen
|
/PHP-7.0/sapi/phpdbg/ |
H A D | phpdbg_utils.h | 88 typedef int (*phpdbg_parse_var_func)(char *name, size_t len, char *keyname, size_t keylen, HashTabl… 89 typedef int (*phpdbg_parse_var_with_arg_func)(char *name, size_t len, char *keyname, size_t keylen,…
|
H A D | phpdbg_utils.c | 422 static int phpdbg_parse_variable_arg_wrapper(char *name, size_t len, char *keyname, size_t keylen, … in phpdbg_parse_variable_arg_wrapper() argument 423 return callback(name, len, keyname, keylen, parent, zv); in phpdbg_parse_variable_arg_wrapper() 480 size_t namelen, keylen; in phpdbg_parse_variable_with_arg() local 485 keylen = ZSTR_LEN(strkey); in phpdbg_parse_variable_with_arg() 487 keylen = spprintf(&key, 0, ZEND_ULONG_FMT, numkey); in phpdbg_parse_variable_with_arg() 490 name = emalloc(i + keylen + 2); in phpdbg_parse_variable_with_arg() 491 …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 | 629 static int phpdbg_watchpoint_parse_wrapper(char *name, size_t namelen, char *key, size_t keylen, Ha… in phpdbg_watchpoint_parse_wrapper() argument 633 watch->name_in_parent = zend_string_init(key, keylen, 0); in phpdbg_watchpoint_parse_wrapper() 656 static int phpdbg_watchpoint_parse_step(char *name, size_t namelen, char *key, size_t keylen, HashT… in phpdbg_watchpoint_parse_step() argument 668 watch->name_in_parent = zend_string_init(key, keylen, 0); in phpdbg_watchpoint_parse_step()
|
H A D | phpdbg_prompt.c | 987 int phpdbg_output_ev_variable(char *name, size_t len, char *keyname, size_t keylen, HashTable *pare… in phpdbg_output_ev_variable() argument
|
/PHP-7.0/ext/session/ |
H A D | mod_mm.c | 119 int keylen; in ps_sd_new() local 121 keylen = strlen(key); in ps_sd_new() 123 sd = mm_malloc(data->mm, sizeof(ps_sd) + keylen); in ps_sd_new() 130 hv = ps_sd_hash(key, keylen); in ps_sd_new() 138 memcpy(sd->key, key, keylen + 1); in ps_sd_new()
|
/PHP-7.0/ext/standard/ |
H A D | url_scanner_ex.c | 83 size_t keylen; in PHP_INI_MH() local 88 keylen = q - key; in PHP_INI_MH() 91 zend_hash_str_add_mem(ctx->tags, key, keylen, val, strlen(val)+1); in PHP_INI_MH()
|
H A D | url_scanner_ex.re | 81 size_t keylen; 86 keylen = q - key; 89 zend_hash_str_add_mem(ctx->tags, key, keylen, val, strlen(val)+1);
|
/PHP-7.0/ext/openssl/ |
H A D | openssl.c | 5691 int i=0, keylen; in PHP_FUNCTION() local 5715 keylen = EVP_CIPHER_key_length(cipher_type); in PHP_FUNCTION() 5716 if (keylen > password_len) { in PHP_FUNCTION() 5717 key = emalloc(keylen); in PHP_FUNCTION() 5718 memset(key, 0, keylen); in PHP_FUNCTION() 5734 if (password_len > keylen) { in PHP_FUNCTION() 5781 int i, keylen; in PHP_FUNCTION() local 5824 if (keylen > password_len) { in PHP_FUNCTION() 5825 key = emalloc(keylen); in PHP_FUNCTION() 5826 memset(key, 0, keylen); in PHP_FUNCTION() [all …]
|