Searched defs:dba (Results 1 - 5 of 5) sorted by relevance

/PHP_5_3/ext/spl/examples/
H A Ddba_array.php14 * Note: configure with --enable-dba
33 $dba = new DbaArray($argv[1], $argv[2]); variable
34 if ($dba && $argc > 3) {
36 $dba[$argv[3]] = $argv[4];
38 var_dump(array('Index' => $argv[3], 'Value' => $dba[$argv[3]]));
40 unset($dba);
/PHP_5_3/ext/dba/
H A Ddba.c152 PHP_MINIT_FUNCTION(dba); variable
153 PHP_MSHUTDOWN_FUNCTION(dba); variable
154 PHP_MINFO_FUNCTION(dba); variable
156 ZEND_BEGIN_MODULE_GLOBALS(dba)
159 ZEND_END_MODULE_GLOBALS(dba)
161 ZEND_DECLARE_MODULE_GLOBALS(dba)
169 static PHP_GINIT_FUNCTION(dba);
173 "dba",
175 PHP_MINIT(dba),
176 PHP_MSHUTDOWN(dba),
[all...]
H A Ddba_db1.c38 #define DB1_DATA dba_db1_data *dba = info->dbf
47 dba_db1_data *dba; local
82 dba = pemalloc(sizeof(*dba), info->flags&DBA_PERSISTENT);
83 dba->dbp = db;
85 info->dbf = dba;
93 dba->dbp->close(dba->dbp);
104 if (dba->dbp->get(dba
[all...]
/PHP_5_3/ext/dba/libflatfile/
H A Dflatfile.c51 int flatfile_store(flatfile *dba, datum key_datum, datum value_datum, int mode TSRMLS_DC) { argument
53 if (flatfile_findkey(dba, key_datum TSRMLS_CC)) {
56 php_stream_seek(dba->fp, 0L, SEEK_END);
57 php_stream_printf(dba->fp TSRMLS_CC, "%zu\n", key_datum.dsize);
58 php_stream_flush(dba->fp);
59 if (php_stream_write(dba->fp, key_datum.dptr, key_datum.dsize) < key_datum.dsize) {
62 php_stream_printf(dba->fp TSRMLS_CC, "%zu\n", value_datum.dsize);
63 php_stream_flush(dba->fp);
64 if (php_stream_write(dba->fp, value_datum.dptr, value_datum.dsize) < value_datum.dsize) {
68 flatfile_delete(dba, key_datu
87 flatfile_fetch(flatfile *dba, datum key_datum TSRMLS_DC) argument
107 flatfile_delete(flatfile *dba, datum key_datum TSRMLS_DC) argument
165 flatfile_findkey(flatfile *dba, datum key_datum TSRMLS_DC) argument
[all...]
/PHP_5_3/ext/dba/libinifile/
H A Dinifile.c85 inifile *dba; local
94 dba = pemalloc(sizeof(inifile), persistent);
95 memset(dba, 0, sizeof(inifile));
96 dba->fp = fp;
97 dba->readonly = readonly;
98 return dba;
103 void inifile_free(inifile *dba, int persistent) argument
105 if (dba) {
106 inifile_line_free(&dba->curr);
107 inifile_line_free(&dba
168 inifile_read(inifile *dba, line_type *ln TSRMLS_DC) argument
246 inifile_fetch(inifile *dba, const key_type *key, int skip TSRMLS_DC) argument
313 inifile_truncate(inifile *dba, size_t size TSRMLS_DC) argument
329 inifile_find_group(inifile *dba, const key_type *key, size_t *pos_grp_start TSRMLS_DC) argument
366 inifile_next_group(inifile *dba, const key_type *key, size_t *pos_grp_start TSRMLS_DC) argument
387 inifile_copy_to(inifile *dba, size_t pos_start, size_t pos_end, inifile **ini_copy TSRMLS_DC) argument
417 inifile_filter(inifile *dba, inifile *from, const key_type *key TSRMLS_DC) argument
462 inifile_delete_replace_append(inifile *dba, const key_type *key, const val_type *value, int append TSRMLS_DC) argument
565 inifile_delete(inifile *dba, const key_type *key TSRMLS_DC) argument
573 inifile_replace(inifile *dba, const key_type *key, const val_type *value TSRMLS_DC) argument
581 inifile_append(inifile *dba, const key_type *key, const val_type *value TSRMLS_DC) argument
[all...]

Completed in 5 milliseconds