Date: 10/28/99
- Next message: kk: "[PHPLIB-DEV] cvs commit"
- Previous message: Boris Erdmann: "[PHPLIB-DEV] Re: [PHPLIB] phplib - changes proposal"
- Next in thread: kk: "[PHPLIB-DEV] cvs commit"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: carmelo
Date: Thu Oct 28 13:15:24 1999
Modified files:
php-lib/CHANGES
php-lib/php/ct_dba.inc
Log message:
Index: php-lib/CHANGES
diff -u php-lib/CHANGES:1.118 php-lib/CHANGES:1.119
--- php-lib/CHANGES:1.118 Wed Oct 27 15:05:49 1999
+++ php-lib/CHANGES Thu Oct 28 13:14:53 1999
@@ -1,5 +1,8 @@
-$Id: CHANGES,v 1.118 1999/10/27 13:05:49 kk Exp $
+$Id: CHANGES,v 1.119 1999/10/28 11:14:53 carmelo Exp $
+28-Oct-1999 cg
+ - Bug correction on ct_dba
+
27-Oct-1999 kk
- Killed all references to shonline.de, I hope.
- Andrzej Piasecki <robin <email protected>> requested a default
Index: php-lib/php/ct_dba.inc
diff -u php-lib/php/ct_dba.inc:1.1 php-lib/php/ct_dba.inc:1.2
--- php-lib/php/ct_dba.inc:1.1 Tue Oct 26 20:31:24 1999
+++ php-lib/php/ct_dba.inc Thu Oct 28 13:14:53 1999
@@ -3,7 +3,7 @@
##
## Copyright (c) 1999 Guarneri Carmelo <carmelo <email protected>>
##
-## $Id: ct_dba.inc,v 1.1 1999/10/26 18:31:24 carmelo Exp $
+## $Id: ct_dba.inc,v 1.2 1999/10/28 11:14:53 carmelo Exp $
##
## PHPLIB Data Storage Container using DBM Files with Database abstraction layer functions
##
@@ -15,10 +15,10 @@
## deriving your own class from it (recommened)
##
- var $dba_handler = "db2"; ## either dbm, gdbm, ndbm, cdb, db2
+ var $dba_handler = "gdbm"; ## either dbm, gdbm, ndbm, cdb, db2
## the handler must be compiled in php
- var $dba_file = ""; ## PREEXISTING DBM File
+ var $dbm_file = ""; ## PREEXISTING DBM File
## writable by the web server UID
## end of configuration
@@ -27,7 +27,7 @@
function ac_start() {
# Open DBM file for write access
- $this->dbaid=dba_open($this->dba_file, "w", $this->dba_handler);
+ $this->dbaid=dba_open($this->dbm_file, "w", $this->dba_handler);
}
function ac_get_lock() {
@@ -71,9 +71,7 @@
}
function ac_get_value($id, $name) {
- $df=dba_fetch( "$id$name", $this->dbaid);
- $dat = explode(";", $df);
- $this->ac_gc();
+ $dat = explode(";", dba_fetch( "$id$name", $this->dbaid));
return urldecode($dat[0]);
}
}
-
PHPLIB Developers Mailing List. Send messages to <phplib-dev <email protected>>.
To unsubscribe, send "unsubscribe" to <phplib-dev-request <email protected>> in
the body, not the subject, of your message.
- Next message: kk: "[PHPLIB-DEV] cvs commit"
- Previous message: Boris Erdmann: "[PHPLIB-DEV] Re: [PHPLIB] phplib - changes proposal"
- Next in thread: kk: "[PHPLIB-DEV] cvs commit"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

