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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
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";
    dbmclose($dbm);
?>
% ./php -q x.php3
original = \a\b
result = ab

Patches

Pull Requests

History

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: Sat Dec 21 12:01:31 2024 UTC