Home
last modified time | relevance | path

Searched refs:dba (Results 1 – 25 of 89) sorted by relevance

1234

/PHP-8.2/ext/dba/libflatfile/
H A Dflatfile.c54 php_stream_flush(dba->fp); in flatfile_store()
59 php_stream_flush(dba->fp); in flatfile_store()
66 php_stream_flush(dba->fp); in flatfile_store()
76 php_stream_flush(dba->fp); in flatfile_store()
109 php_stream_rewind(dba->fp); in flatfile_delete()
128 php_stream_flush(dba->fp); in flatfile_delete()
160 php_stream_rewind(dba->fp); in flatfile_findkey()
200 php_stream_rewind(dba->fp); in flatfile_firstkey()
213 dba->CurrentFlatFilePos = php_stream_tell(dba->fp); in flatfile_firstkey()
242 php_stream_seek(dba->fp, dba->CurrentFlatFilePos, SEEK_SET); in flatfile_nextkey()
[all …]
H A Dflatfile.h36 int flatfile_store(flatfile *dba, datum key_datum, datum value_datum, int mode);
37 datum flatfile_fetch(flatfile *dba, datum key_datum);
38 int flatfile_delete(flatfile *dba, datum key_datum);
39 int flatfile_findkey(flatfile *dba, datum key_datum);
40 datum flatfile_firstkey(flatfile *dba);
41 datum flatfile_nextkey(flatfile *dba);
/PHP-8.2/ext/dba/
H A Ddba.stub.php21 /** @param resource $dba */
22 function dba_close($dba): void {} argument
24 /** @param resource $dba */
36 /** @param resource $dba */
39 /** @param resource $dba */
42 /** @param resource $dba */
45 /** @param resource $dba */
48 /** @param resource $dba */
51 /** @param resource $dba */
54 /** @param resource $dba */
[all …]
H A Ddba_flatfile.c47 flatfile *dba = info->dbf; in DBA_CLOSE_FUNC() local
49 if (dba->nextkey.dptr) { in DBA_CLOSE_FUNC()
50 efree(dba->nextkey.dptr); in DBA_CLOSE_FUNC()
57 flatfile *dba = info->dbf; in DBA_FETCH_FUNC() local
75 flatfile *dba = info->dbf; in DBA_UPDATE_FUNC() local
130 if (dba->nextkey.dptr) { in DBA_FIRSTKEY_FUNC()
133 dba->nextkey = flatfile_firstkey(dba); in DBA_FIRSTKEY_FUNC()
134 if (dba->nextkey.dptr) { in DBA_FIRSTKEY_FUNC()
148 if (dba->nextkey.dptr) { in DBA_NEXTKEY_FUNC()
151 dba->nextkey = flatfile_nextkey(dba); in DBA_NEXTKEY_FUNC()
[all …]
H A Ddba_db2.c78 if (dba->cursor) in DBA_CLOSE_FUNC()
79 dba->cursor->c_close(dba->cursor); in DBA_CLOSE_FUNC()
80 dba->dbp->close(dba->dbp, 0); in DBA_CLOSE_FUNC()
93 if (dba->dbp->get(dba->dbp, NULL, &gkey, &gval, 0)) { in DBA_FETCH_FUNC()
112 if (dba->dbp->put(dba->dbp, NULL, &gkey, &gval, in DBA_UPDATE_FUNC()
128 if (dba->dbp->get(dba->dbp, NULL, &gkey, &gval, 0)) { in DBA_EXISTS_FUNC()
150 dba->cursor->c_close(dba->cursor);
155 if (dba->dbp->cursor(dba->dbp, NULL, &dba->cursor, 0)) {
157 if (dba->dbp->cursor(dba->dbp, NULL, &dba->cursor)) {
170 if (dba->cursor->c_get(dba->cursor, &gkey, &gval, DB_NEXT)
[all …]
H A Ddba_gdbm.c65 if(dba->nextkey.dptr) free(dba->nextkey.dptr); in DBA_CLOSE_FUNC()
66 gdbm_close(dba->dbf); in DBA_CLOSE_FUNC()
143 if (dba->nextkey.dptr) { in DBA_FIRSTKEY_FUNC()
144 free(dba->nextkey.dptr); in DBA_FIRSTKEY_FUNC()
150 dba->nextkey = gkey; in DBA_FIRSTKEY_FUNC()
152 dba->nextkey.dptr = NULL; in DBA_FIRSTKEY_FUNC()
165 gkey = gdbm_nextkey(dba->dbf, dba->nextkey); in DBA_NEXTKEY_FUNC()
166 free(dba->nextkey.dptr); in DBA_NEXTKEY_FUNC()
169 dba->nextkey = gkey; in DBA_NEXTKEY_FUNC()
171 dba->nextkey.dptr = NULL; in DBA_NEXTKEY_FUNC()
[all …]
H A Ddba_db1.c40 dba_db1_data *dba; in DBA_OPEN_FUNC() local
70 dba = pemalloc(sizeof(*dba), info->flags&DBA_PERSISTENT); in DBA_OPEN_FUNC()
71 dba->dbp = db; in DBA_OPEN_FUNC()
73 info->dbf = dba; in DBA_OPEN_FUNC()
80 dba_db1_data *dba = info->dbf; in DBA_CLOSE_FUNC() local
81 dba->dbp->close(dba->dbp); in DBA_CLOSE_FUNC()
95 if (dba->dbp->get(dba->dbp, &gkey, &gval, 0) == RET_SUCCESS) { in DBA_FETCH_FUNC()
125 return dba->dbp->get(dba->dbp, &gkey, &gval, 0) != RET_SUCCESS ? FAILURE : SUCCESS; in DBA_EXISTS_FUNC()
136 return dba->dbp->del(dba->dbp, &gkey, 0) != RET_SUCCESS ? FAILURE : SUCCESS; in DBA_DELETE_FUNC()
148 if (dba->dbp->seq(dba->dbp, &gkey, &gval, R_FIRST) == RET_SUCCESS) { in DBA_FIRSTKEY_FUNC()
[all …]
H A Ddba_db3.c111 if (dba->cursor) dba->cursor->c_close(dba->cursor);
112 dba->dbp->close(dba->dbp, 0);
127 if (!dba->dbp->get(dba->dbp, NULL, &gkey, &gval, 0)) {
147 if (!dba->dbp->put(dba->dbp, NULL, &gkey, &gval,
165 if (!dba->dbp->get(dba->dbp, NULL, &gkey, &gval, 0)) {
180 return dba->dbp->del(dba->dbp, NULL, &gkey, 0) ? FAILURE : SUCCESS;
187 if (dba->cursor) {
188 dba->cursor->c_close(dba->cursor);
192 if (dba->dbp->cursor(dba->dbp, NULL, &dba->cursor, 0) != 0) {
207 if (dba->cursor->c_get(dba->cursor, &gkey, &gval, DB_NEXT) == 0) {
[all …]
H A Ddba_tcadb.c77 dba_tcadb_data *dba = info->dbf; in DBA_CLOSE_FUNC() local
79 tcadbclose(dba->tcadb); in DBA_CLOSE_FUNC()
80 tcadbdel(dba->tcadb); in DBA_CLOSE_FUNC()
86 dba_tcadb_data *dba = info->dbf; in DBA_FETCH_FUNC() local
102 dba_tcadb_data *dba = info->dbf; in DBA_UPDATE_FUNC() local
124 dba_tcadb_data *dba = info->dbf; in DBA_EXISTS_FUNC() local
139 dba_tcadb_data *dba = info->dbf; in DBA_DELETE_FUNC() local
146 dba_tcadb_data *dba = info->dbf; in DBA_FIRSTKEY_FUNC() local
151 tcadbiterinit(dba->tcadb); in DBA_FIRSTKEY_FUNC()
164 dba_tcadb_data *dba = info->dbf; in DBA_NEXTKEY_FUNC() local
[all …]
H A Dconfig.w323 ARG_WITH("dba", "DBA support", "no");
9 …EXTENSION("dba", "dba.c dba_cdb.c dba_db1.c dba_db2.c dba_db3.c dba_dbm.c dba_flatfile.c dba_gdbm.…
10 ADD_SOURCES("ext/dba/libcdb", "cdb.c cdb_make.c uint32.c", "dba");
11 ADD_SOURCES("ext/dba/libflatfile", "flatfile.c", "dba");
12 ADD_SOURCES("ext/dba/libinifile", "inifile.c", "dba");
17 if (CHECK_LIB("libdb31s.lib;libdb61.lib", "dba", PHP_DBA) &&
26 if (CHECK_LIB("qdbm_a.lib;qdbm.lib", "dba", PHP_DBA) &&
28 ADD_SOURCES("ext/dba", "dba_qdbm.c", "dba");
37 if (CHECK_LIB("liblmdb_a.lib", "dba", PHP_DBA) &&
39 CHECK_LIB("ntdll.lib", "dba", PHP_DBA)) {
[all …]
H A Ddba_qdbm.c68 dba_qdbm_data *dba = info->dbf; in DBA_CLOSE_FUNC() local
70 dpclose(dba->dbf); in DBA_CLOSE_FUNC()
76 dba_qdbm_data *dba = info->dbf; in DBA_FETCH_FUNC() local
92 dba_qdbm_data *dba = info->dbf; in DBA_UPDATE_FUNC() local
107 dba_qdbm_data *dba = info->dbf; in DBA_EXISTS_FUNC() local
121 dba_qdbm_data *dba = info->dbf; in DBA_DELETE_FUNC() local
128 dba_qdbm_data *dba = info->dbf; in DBA_FIRSTKEY_FUNC() local
133 dpiterinit(dba->dbf); in DBA_FIRSTKEY_FUNC()
146 dba_qdbm_data *dba = info->dbf; in DBA_NEXTKEY_FUNC() local
164 dpoptimize(dba->dbf, 0); in DBA_OPTIMIZE_FUNC()
[all …]
H A Ddba_db4.c140 if (dba->cursor) dba->cursor->c_close(dba->cursor);
141 dba->dbp->close(dba->dbp, 0);
160 if (!dba->dbp->get(dba->dbp, NULL, &gkey, &gval, 0)) {
183 if (!dba->dbp->put(dba->dbp, NULL, &gkey, &gval,
206 if (!dba->dbp->get(dba->dbp, NULL, &gkey, &gval, 0)) {
224 return dba->dbp->del(dba->dbp, NULL, &gkey, 0) ? FAILURE : SUCCESS;
231 if (dba->cursor) {
232 dba->cursor->c_close(dba->cursor);
236 if (dba->dbp->cursor(dba->dbp, NULL, &dba->cursor, 0) != 0) {
256 if (dba->cursor && dba->cursor->c_get(dba->cursor, &gkey, &gval, DB_NEXT) == 0) {
[all …]
H A Ddba_inifile.c44 inifile *dba = info->dbf; in DBA_CLOSE_FUNC() local
51 inifile *dba = info->dbf; in DBA_FETCH_FUNC() local
73 inifile *dba = info->dbf; in DBA_UPDATE_FUNC() local
107 inifile *dba = info->dbf; in DBA_EXISTS_FUNC() local
117 ini_val = inifile_fetch(dba, &ini_key, 0); in DBA_EXISTS_FUNC()
128 inifile *dba = info->dbf; in DBA_DELETE_FUNC() local
147 inifile *dba = info->dbf; in DBA_FIRSTKEY_FUNC() local
149 if (inifile_firstkey(dba)) { in DBA_FIRSTKEY_FUNC()
161 inifile *dba = info->dbf; in DBA_NEXTKEY_FUNC() local
163 if (!dba->curr.key.group && !dba->curr.key.name) { in DBA_NEXTKEY_FUNC()
[all …]
H A Ddba_dbm.c146 dba_dbm_data *dba = info->dbf; in DBA_FIRSTKEY_FUNC() local
153 dba->nextkey = gkey; in DBA_FIRSTKEY_FUNC()
155 dba->nextkey.dptr = NULL; in DBA_FIRSTKEY_FUNC()
162 dba_dbm_data *dba = info->dbf; in DBA_NEXTKEY_FUNC() local
166 if (!dba->nextkey.dptr) { return NULL; } in DBA_NEXTKEY_FUNC()
168 gkey = nextkey(dba->nextkey); in DBA_NEXTKEY_FUNC()
171 dba->nextkey = gkey; in DBA_NEXTKEY_FUNC()
173 dba->nextkey.dptr = NULL; in DBA_NEXTKEY_FUNC()
H A Ddba_arginfo.h16 ZEND_ARG_INFO(0, dba)
21 ZEND_ARG_INFO(0, dba)
26 ZEND_ARG_INFO(0, dba)
35 ZEND_ARG_INFO(0, dba)
45 ZEND_ARG_INFO(0, dba)
51 ZEND_ARG_INFO(0, dba)
/PHP-8.2/ext/dba/libinifile/
H A Dinifile.c82 inifile *dba; in inifile_alloc() local
93 dba->fp = fp; in inifile_alloc()
95 return dba; in inifile_alloc()
102 if (dba) { in inifile_free()
246 …if (skip == -1 && dba->next.key.group && dba->next.key.name && !inifile_key_cmp(&dba->next.key, ke… in inifile_fetch()
248 php_stream_seek(dba->fp, dba->next.pos, SEEK_SET); in inifile_fetch()
265 dba->next = ln; in inifile_fetch()
266 dba->next.pos = php_stream_tell(dba->fp); in inifile_fetch()
278 dba->next.pos = php_stream_tell(dba->fp); in inifile_fetch()
296 php_stream_seek(dba->fp, dba->curr.pos, SEEK_SET); in inifile_nextkey()
[all …]
H A Dinifile.h44 val_type inifile_fetch(inifile *dba, const key_type *key, int skip);
45 int inifile_firstkey(inifile *dba);
46 int inifile_nextkey(inifile *dba);
47 int inifile_delete(inifile *dba, const key_type *key);
48 int inifile_delete_ex(inifile *dba, const key_type *key, bool *found);
49 int inifile_replace(inifile *dba, const key_type *key, const val_type *val);
50 int inifile_replace_ex(inifile *dba, const key_type *key, const val_type *val, bool *found);
51 int inifile_append(inifile *dba, const key_type *key, const val_type *val);
62 void inifile_free(inifile *dba, int persistent);
/PHP-8.2/ext/dba/tests/
H A Ddefault_handler_ini.phpt2 DBA dba.default_handler tests
4 dba
11 dba.default_handler=flatfile
20 ini_set('dba.default_handler', 'does_not_exist');
26 ini_set('dba.default_handler', '');
42 resource(%d) of type (dba)
H A Dgh9155.phpt4 dba
6 dba
25 resource(%d) of type (dba)
H A Dbug36436.phpt4 dba
32 resource(%d) of type (dba persistent)
H A Dbug65708.phpt2 Bug #65708 (dba functions cast $key param to string in-place, bypassing copy on write)
4 dba
H A Ddba_db4_handlers.phpt4 dba
6 dba
H A Ddba_db4_optimize.phpt4 dba
6 dba
/PHP-8.2/
H A D.gitattributes4 /ext/dba/libinifile/inifile.c ident
5 /ext/dba/libflatfile/flatfile.c ident
6 /ext/dba/libcdb/cdb_make.c ident
7 /ext/dba/libcdb/cdb.c ident
/PHP-8.2/ext/pgsql/tests/
H A D80_bug14383.phpt4 dba
8 require_once dirname(__DIR__, 2) . '/dba/tests/setup/setup_dba_tests.inc';
22 require_once dirname(__DIR__, 2) . '/dba/tests/setup/setup_dba_tests.inc';
30 require_once dirname(__DIR__, 2) . '/dba/tests/setup/setup_dba_tests.inc';

Completed in 38 milliseconds

1234