|  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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
37 - 36 = ?
Subscribe to this entry?

 [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-2022 The PHP Group
All rights reserved.
Last updated: Wed Aug 10 13:05:46 2022 UTC