php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7896 flatfile dbmfetch loses first char if datum length *less than* 9 chars!
Submitted: 2000-11-21 01:54 UTC Modified: 2000-12-04 12:16 UTC
From: andy at mindgate dot net Assigned:
Status: Closed Package: DBM/DBA related
PHP Version: 4.0.3pl1 OS: Win2K/IIS5
Private report: No CVE-ID: None
 [2000-11-21 01:54 UTC] andy at mindgate dot net
I'm having the OPPOSITE problem as the other bug!
Weird...

<?php
echo dblist()."<br><br>";
$dbm_id = dbmopen ("lastseen", "n");
dbmreplace($dbm_id,"a","123456789");
dbmreplace($dbm_id,"b","123456789");
dbmreplace($dbm_id,"c","123456789");

echo "[".dbmfetch($dbm_id,"a")."]<br>";
echo "[".dbmfetch($dbm_id,"b")."]<br>";
echo "[".dbmfetch($dbm_id,"c")."]<br>";

dbmreplace($dbm_id,"a","1234567890");
dbmreplace($dbm_id,"b","1234567890");
dbmreplace($dbm_id,"c","1234567890");

echo "[".dbmfetch($dbm_id,"a")."]<br>";
echo "[".dbmfetch($dbm_id,"b")."]<br>";
echo "[".dbmfetch($dbm_id,"c")."]<br>";

dbmclose ($dbm_id);

?>

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-12-04 12:16 UTC] sniper@php.net
The db extension is deprecated.
Use dba extension instead.

--Jani
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 01:01:28 2024 UTC