PHP 4.0 Bug #7896: flatfile dbmfetch loses first char if datum length *less than* 9 chars!

From: Date: Tue, 21 Nov 2000 06:54:28 +0000
Subject: PHP 4.0 Bug #7896: flatfile dbmfetch loses first char if datum length *less than* 9 chars!
Groups: php.dev 
Request: Send a blank email to php-dev+get-38750@lists.php.net to get a copy of this message
From: andy@mindgate.net Operating system: Win2K/IIS5 PHP version: 4.0.3pl1 PHP Bug Type: DBM/DBA related Bug description: flatfile dbmfetch loses first char if datum length *less than* 9 chars! 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); ?> -- Edit Bug report at: http://bugs.php.net/?id=7896&edit=1

« previous php.dev (#38750) next »