php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19279 DB3 Files not created
Submitted: 2002-09-07 09:06 UTC Modified: 2002-09-07 09:23 UTC
From: sky4lace at hotmail dot com Assigned:
Status: Not a bug Package: DBM/DBA related
PHP Version: 4.2.2 OS: Windows 2000 5.0
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: sky4lace at hotmail dot com
New email:
PHP Version: OS:

 

 [2002-09-07 09:06 UTC] sky4lace at hotmail dot com
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);
?>


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-09-07 09:23 UTC] edink@php.net
Sorry, but the bug system is not the appropriate forum for asking
support questions. Your problem does not imply a bug in PHP itself.
For a list of more appropriate places to ask for help using PHP,
please visit http://www.php.net/support.php

Thank you for your interest in PHP.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 11:01:31 2024 UTC