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

/PHP_5_5/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_5/ext/dba/
H A Ddba.c153 PHP_MINIT_FUNCTION(dba); variable
154 PHP_MSHUTDOWN_FUNCTION(dba); variable
155 PHP_MINFO_FUNCTION(dba); variable
157 ZEND_BEGIN_MODULE_GLOBALS(dba)
160 ZEND_END_MODULE_GLOBALS(dba)
162 ZEND_DECLARE_MODULE_GLOBALS(dba)
170 static PHP_GINIT_FUNCTION(dba);
174 "dba",
176 PHP_MINIT(dba),
177 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_5/ext/dba/libflatfile/
H A Dflatfile.c50 int flatfile_store(flatfile *dba, datum key_datum, datum value_datum, int mode TSRMLS_DC) { argument
52 if (flatfile_findkey(dba, key_datum TSRMLS_CC)) {
55 php_stream_seek(dba->fp, 0L, SEEK_END);
56 php_stream_printf(dba->fp TSRMLS_CC, "%zu\n", key_datum.dsize);
57 php_stream_flush(dba->fp);
58 if (php_stream_write(dba->fp, key_datum.dptr, key_datum.dsize) < key_datum.dsize) {
61 php_stream_printf(dba->fp TSRMLS_CC, "%zu\n", value_datum.dsize);
62 php_stream_flush(dba->fp);
63 if (php_stream_write(dba->fp, value_datum.dptr, value_datum.dsize) < value_datum.dsize) {
67 flatfile_delete(dba, key_datu
86 flatfile_fetch(flatfile *dba, datum key_datum TSRMLS_DC) argument
106 flatfile_delete(flatfile *dba, datum key_datum TSRMLS_DC) argument
164 flatfile_findkey(flatfile *dba, datum key_datum TSRMLS_DC) argument
[all...]
/PHP_5_5/ext/dba/libinifile/
H A Dinifile.c84 inifile *dba; local
93 dba = pemalloc(sizeof(inifile), persistent);
94 memset(dba, 0, sizeof(inifile));
95 dba->fp = fp;
96 dba->readonly = readonly;
97 return dba;
102 void inifile_free(inifile *dba, int persistent) argument
104 if (dba) {
105 inifile_line_free(&dba->curr);
106 inifile_line_free(&dba
167 inifile_read(inifile *dba, line_type *ln TSRMLS_DC) argument
245 inifile_fetch(inifile *dba, const key_type *key, int skip TSRMLS_DC) argument
312 inifile_truncate(inifile *dba, size_t size TSRMLS_DC) argument
328 inifile_find_group(inifile *dba, const key_type *key, size_t *pos_grp_start TSRMLS_DC) argument
365 inifile_next_group(inifile *dba, const key_type *key, size_t *pos_grp_start TSRMLS_DC) argument
386 inifile_copy_to(inifile *dba, size_t pos_start, size_t pos_end, inifile **ini_copy TSRMLS_DC) argument
416 inifile_filter(inifile *dba, inifile *from, const key_type *key TSRMLS_DC) argument
461 inifile_delete_replace_append(inifile *dba, const key_type *key, const val_type *value, int append TSRMLS_DC) argument
564 inifile_delete(inifile *dba, const key_type *key TSRMLS_DC) argument
572 inifile_replace(inifile *dba, const key_type *key, const val_type *value TSRMLS_DC) argument
580 inifile_append(inifile *dba, const key_type *key, const val_type *value TSRMLS_DC) argument
[all...]

Completed in 20 milliseconds