[PHP-DEV] Bug #309: Backslashes From: sgk <email protected>
Date: 04/24/98

From: sgk <email protected>
Operating system:
PHP version: 3.0 Latest CVS
PHP Bug Type: dbm related
Bug description:
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