Bug #12020: dbm insert and replace functions inserting incorrect values.

From: Date: Tue, 10 Jul 2001 16:25:47 +0000
Subject: Bug #12020: dbm insert and replace functions inserting incorrect values.
Groups: php.dev 
Request: Send a blank email to php-dev+get-59569@lists.php.net to get a copy of this message
From: taxman10m@mediaone.net Operating system: NT 4.0 PHP version: 4.0.6 PHP Bug Type: DBM/DBA related Bug description: dbm insert and replace functions inserting incorrect values. The dbminsert and dbmreplace functions insert erroneous values into the database. Here is a short script that should identify the problem: <?php $dbm = dbmopen("test.db", "n"); for ($c=0; $c < 100; $c++) { dbminsert($dbm, $c, $c); } for ($c=0; $c < 100; $c++) { echo(dbmfetch($dbm, $c) . "<br>"); } dbmclose ($dbm); ?> This is what I get for the first 11 lines of output: 1 1 1 1 1 1 1 1 1 2 10 The remaining output is correct. I am using the precompiled win32 binary with iPlanet on NT. If you could send any replies to this email address as well as the other one listed I would appreciate it: Patrick.Johnson@usdoj.gov -- Edit bug report at: http://bugs.php.net/?id=12020&edit=1

« previous php.dev (#59569) next »