#19279 [NEW]: DB3 Files not created
| From: | sky4lace at hotmail dot com | Date: | Sat, 07 Sep 2002 14:06:03 +0000 |
| Subject: | #19279 [NEW]: DB3 Files not created | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-18616@lists.php.net to get a copy of this message | ||
From: sky4lace@hotmail.com
Operating system: Windows 2000 5.0
PHP version: 4.2.2
PHP Bug Type: DBM/DBA related
Bug description: DB3 Files not created
Environment:
Windows 2000 5.0
Apache 1.2.3
I run the following script expecting the DBM file: test.db to be created
in the current directory with rows:
"Key" "This is an example!\\n"
"Joe" My name is Joe!"
"lunga" "My name is Bloggs!"
but no file is created although the file is created in teh memory buffer
as the records can be read and displayed from the buffer.
The PHP script is as follows:
<?php
$id = dba_popen("test.db", "n", "db3");
if(!$id)
{
echo "dba_popen failed\n";
exit;
}
dba_insert("key", "This is an example!\\n", $id);
echo "dba_popen succeeded\n";
dba_insert("adrian", "My name is Joe!", $id);
dba_insert("lunga", "My name is Bloggs!", $id);
if(dba_exists("key", $id))
{
echo "Record found\n";
echo dba_fetch("key", $id);
echo dba_fetch("Joe", $id);
echo dba_fetch("Bloggs", $id);
# dba_delete("key", $id);
}
dba_close($id);
?>
--
Edit bug report at http://bugs.php.net/?id=19279&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=19279&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=19279&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=19279&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=19279&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=19279&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=19279&r=support
Expected behavior: http://bugs.php.net/fix.php?id=19279&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=19279&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=19279&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=19279&r=globals