PHP 4.0 Bug #7896 Updated: flatfile dbmfetch loses first char if datum length *less than* 9 chars!
| From: | sniper@php.net | Date: | Mon, 04 Dec 2000 17:16:58 +0000 |
| Subject: | PHP 4.0 Bug #7896 Updated: flatfile dbmfetch loses first char if datum length *less than* 9 chars! | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-40002@lists.php.net to get a copy of this message | ||
ID: 7896
Updated by: sniper
Reported By: andy@mindgate.net
Status: Closed
Bug Type: DBM/DBA related
Assigned To:
Comments:
The db extension is deprecated.
Use dba extension instead.
--Jani
Previous Comments:
---------------------------------------------------------------------------
[2000-11-21 01:54:28] andy@mindgate.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);
?>
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=7896