|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #309 Backslashes
Submitted: 1998-04-24 04:39 UTC Modified: 1998-04-28 22:18 UTC
From: sgk at happysize dot co dot jp Assigned: jim (profile)
Status: Closed Package: DBM/DBA related
PHP Version: 3.0 Latest CVS OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: sgk at happysize dot co dot jp
New email:
PHP Version: OS:


 [1998-04-24 04:39 UTC] sgk at happysize dot co dot jp
When store and retrieve a string between a DBM database file,
backslashes will be treated as escaping. Is this correct behavior?

% cat x.php3
    $key = "key";
    $value = "\\a\\b";

    $dbm = dbmopen("/tmp/php3test.db", "n");
    echo "original = $value\n";
    dbminsert($dbm, $key, $value);
    $value = dbmfetch($dbm, $key);
    echo "result = $value\n";
% ./php -q x.php3
original = \a\b
result = ab


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [1998-04-28 22:18 UTC] jim
This is fixed in the latest CVS.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 17 23:01:27 2024 UTC