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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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: Fri Oct 18 02:01:27 2024 UTC