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

/PHP_5_5/ext/phar/
H A Ddirstream.c99 uint keylen; local
106 if (HASH_KEY_NON_EXISTENT == zend_hash_get_current_key_ex(data, &key, &keylen, &unused, 0, NULL)) {
112 to_read = MIN(keylen, count);
114 if (to_read == 0 || count < keylen) {
194 uint keylen; local
210 if (HASH_KEY_NON_EXISTENT == zend_hash_get_current_key_ex(manifest, &key, &keylen, &unused, 0, NULL)) {
216 if (keylen <= (uint)dirlen) {
217 if (keylen < (uint)dirlen || !strncmp(str_key, dir, dirlen)) {
228 if (keylen >= sizeof(".phar")-1 && !memcmp(str_key, ".phar", sizeof(".phar")-1)) {
237 if (NULL != (found = (char *) memchr(str_key, '/', keylen))) {
324 uint keylen; local
[all...]
H A Dstream.c633 uint keylen; local
638 if (HASH_KEY_NON_EXISTENT == zend_hash_get_current_key_ex(&phar->mounted_dirs, &key, &keylen, &unused, 0, &pos)) {
642 if ((int)keylen >= internal_file_len || strncmp(str_key, internal_file, keylen)) {
651 if (SUCCESS != zend_hash_find(&phar->manifest, str_key, keylen, (void **) &entry)) {
659 test_len = spprintf(&test, MAXPATHLEN, "%s%s", entry->tmp, internal_file + keylen);
H A Dutil.c1305 uint keylen; local
1309 if (HASH_KEY_NON_EXISTENT == zend_hash_get_current_key_ex(&phar->mounted_dirs, &key, &keylen, &unused, 0, NULL)) {
1315 if ((int)keylen >= path_len || strncmp(str_key, path, keylen)) {
1323 if (SUCCESS != zend_hash_find(&phar->manifest, str_key, keylen, (void **) &entry)) {
1340 test_len = spprintf(&test, MAXPATHLEN, "%s%s", entry->tmp, path + keylen);
H A Dphar.c1959 uint keylen; local
1965 if (HASH_KEY_NON_EXISTENT == zend_hash_get_current_key_ex(&(PHAR_GLOBALS->phar_fname_map), &key, &keylen, &unused, 0, NULL)) {
1971 if (keylen > (uint) filename_len) {
1977 if (!memcmp(filename, str_key, keylen) && ((uint)filename_len == keylen
1978 || filename[keylen] == '/' || filename[keylen] == '\0')) {
1983 *ext_str = filename + (keylen - (*pphar)->ext_len);
1995 if (HASH_KEY_NON_EXISTENT == zend_hash_get_current_key_ex(&cached_phars, &key, &keylen, &unused, 0, NULL)) {
2001 if (keylen > (uin
[all...]
/PHP_5_5/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_5_5/ext/dba/
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) {
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)
/PHP_5_5/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_5_5/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_5_5/ext/openssl/
H A Dopenssl.c4910 int i=0, outlen, keylen; local
4923 keylen = EVP_CIPHER_key_length(cipher_type);
4924 if (keylen > password_len) {
4925 key = emalloc(keylen);
4926 memset(key, 0, keylen);
4942 if (password_len > keylen) {
4989 int i, outlen, keylen; local
5020 keylen = EVP_CIPHER_key_length(cipher_type);
5021 if (keylen > password_len) {
5022 key = emalloc(keylen);
[all...]

Completed in 72 milliseconds