#23188 [NEW]: CDB databases created with "c" mode do not work.

From: Date: Sun, 13 Apr 2003 20:09:39 +0000
Subject: #23188 [NEW]: CDB databases created with "c" mode do not work.
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-37614@lists.php.net to get a copy of this message
From: rhondle at hotmail dot com Operating system: FreeBSD, Windows PHP version: 4.3.0 PHP Bug Type: DBM/DBA related Bug description: CDB databases created with "c" mode do not work. The docs indicate that either the 'c' or 'n' modes can be used to create a dba database. When creating a CDB database, the 'n' mode produces a functional database, while the 'c' mode does not. No errors are reported; the database just does not work. The database created using 'c' doesn't work: <?php $id = dba_open ("test.db", "c", "cdb_make"); dba_insert("test","12345",$id); dba_close ($id); ?> This will create a working database: <?php $id = dba_open ("test.db", "n", "cdb_make"); if (!$id) exit("dba_open failed\n"); dba_insert("test","12345",$id); dba_close ($id); ?> tested with: <?php $id = dba_open ("test.db", "r", "cdb"); if (!$id) exit("dba_open failed\n"); if (dba_exists("test", $id)) print dba_fetch("test", $id); else print "Key not found!!\n"; dba_close ($id); ?> -- Edit bug report at http://bugs.php.net/?id=23188&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=23188&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=23188&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=23188&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=23188&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=23188&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=23188&r=support Expected behavior: http://bugs.php.net/fix.php?id=23188&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=23188&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=23188&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=23188&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23188&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=23188&r=dst IIS Stability: http://bugs.php.net/fix.php?id=23188&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=23188&r=gnused

« previous php.bugs (#37614) next »