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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: andy at mindgate dot net
New email:
PHP Version: OS:

 

 [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-2020 The PHP Group
All rights reserved.
Last updated: Fri Dec 04 18:01:23 2020 UTC