Lines Matching refs:key

137 # define php_cdb_findnext(cdb, key, len) cdb_findnext(cdb, key, len)  argument
138 # define php_cdb_find(cdb, key, len) cdb_find(cdb, key, len) argument
141 # define php_cdb_findnext(cdb, key, len) cdb_findnext(cdb, key, len) argument
142 # define php_cdb_find(cdb, key, len) cdb_find(cdb, key, len) argument
155 if (php_cdb_find(&cdb->c, ZSTR_VAL(key), ZSTR_LEN(key)) == 1) { in DBA_FETCH_FUNC()
157 if (php_cdb_findnext(&cdb->c, ZSTR_VAL(key), ZSTR_LEN(key)) != 1) { in DBA_FETCH_FUNC()
183 if (cdb_make_add(&cdb->m, ZSTR_VAL(key), ZSTR_LEN(key), ZSTR_VAL(val), ZSTR_LEN(val)) != -1) in DBA_UPDATE_FUNC()
197 if (php_cdb_find(&cdb->c, ZSTR_VAL(key), ZSTR_LEN(key)) == 1) in DBA_EXISTS_FUNC()
244 zend_string *key; in DBA_FIRSTKEY_FUNC() local
265 key = zend_string_alloc(klen, /* persistent */ false); in DBA_FIRSTKEY_FUNC()
266 if (cdb_file_read(cdb->file, ZSTR_VAL(key), klen) < klen) { in DBA_FIRSTKEY_FUNC()
267 zend_string_release_ex(key, /* persistent */ false); in DBA_FIRSTKEY_FUNC()
268 key = NULL; in DBA_FIRSTKEY_FUNC()
270 ZSTR_VAL(key)[klen] = 0; in DBA_FIRSTKEY_FUNC() local
276 return key; in DBA_FIRSTKEY_FUNC()
284 zend_string *key; in DBA_NEXTKEY_FUNC() local
296 key = zend_string_alloc(klen, /* persistent */ false); in DBA_NEXTKEY_FUNC()
297 if (cdb_file_read(cdb->file, ZSTR_VAL(key), klen) < klen) { in DBA_NEXTKEY_FUNC()
298 zend_string_release_ex(key, /* persistent */ false); in DBA_NEXTKEY_FUNC()
299 key = NULL; in DBA_NEXTKEY_FUNC()
301 ZSTR_VAL(key)[klen] = 0; in DBA_NEXTKEY_FUNC() local
306 return key; in DBA_NEXTKEY_FUNC()