Home
last modified time | relevance | path

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

1234

/php-src/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-src/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-src/ext/dba/
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 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_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 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_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_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.stub.php30 function dba_close(Dba\Connection $dba): void {} argument
32 function dba_exists(string|array $key, Dba\Connection $dba): bool {} argument
38 function dba_fetch(string|array $key, $dba, $skip = 0): string|false {} argument
43 function dba_firstkey(Dba\Connection $dba): string|false {} argument
45 function dba_nextkey(Dba\Connection $dba): string|false {} argument
47 function dba_delete(string|array $key, Dba\Connection $dba): bool {} argument
49 function dba_insert(string|array $key, string $value, Dba\Connection $dba): bool {} argument
51 function dba_replace(string|array $key, string $value, Dba\Connection $dba): bool {} argument
53 function dba_optimize(Dba\Connection $dba): bool {} argument
55 function dba_sync(Dba\Connection $dba): bool {} argument
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_OBJ_INFO(0, dba, Dba\\Connection, 0)
21 ZEND_ARG_OBJ_INFO(0, dba, Dba\\Connection, 0)
26 ZEND_ARG_INFO(0, dba)
35 ZEND_ARG_OBJ_INFO(0, dba, Dba\\Connection, 0)
45 ZEND_ARG_OBJ_INFO(0, dba, Dba\\Connection, 0)
51 ZEND_ARG_OBJ_INFO(0, dba, Dba\\Connection, 0)
H A Ddba.c52 PHP_MINIT_FUNCTION(dba);
54 PHP_MINFO_FUNCTION(dba);
73 PHP_MINIT(dba),
74 PHP_MSHUTDOWN(dba),
77 PHP_MINFO(dba),
79 PHP_MODULE_GLOBALS(dba),
80 PHP_GINIT(dba),
81 PHP_GSHUTDOWN(dba),
90 ZEND_GET_MODULE(dba) in ZEND_GET_MODULE() argument
402 PHP_MINIT_FUNCTION(dba) in PHP_MINIT_FUNCTION() argument
[all …]
/php-src/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', '');
H A Ddba_fetch_legacy_signature.phpt4 dba
41 Deprecated: Calling dba_fetch() with $dba at the 3rd parameter is deprecated in %s on line %d
44 Calling dba_fetch() with $dba at the 3rd parameter is deprecated
H A Dgh9155.phpt4 dba
6 dba
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
/php-src/
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-src/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 47 milliseconds

1234