class db {
private $db;
- function __construct($file = "ndbm001.db", $o = 0102, $m = 0640) {
+ function __construct($file = "ndbm001.db", $o = psi\O_CREAT|psi\O_RDWR, $m = 0640) {
if (!$this->db = psi\dbm_open($file, $o, $m)) {
throw new Exception(psi\strerror(psi\errno()));
}