php.net |  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
 [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";
    dbmclose($dbm);
?>
% ./php -q x.php3
original = \a\b
result = ab

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-04-28 22:18 UTC] jim
This is fixed in the latest CVS.
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Mon Nov 30 11:01:22 2020 UTC