Bug #12020 Updated: dbm insert and replace functions inserting incorrect values.
| From: | derick@php.net | Date: | Sat, 25 May 2002 13:01:53 +0000 |
| Subject: | Bug #12020 Updated: dbm insert and replace functions inserting incorrect values. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-8510@lists.php.net to get a copy of this message | ||
ID: 12020
Updated by: derick@php.net
Reported By: taxman10m@mediaone.net
-Status: Open
+Status: Bogus
Bug Type: DBM/DBA related
Operating System: NT 4.0
PHP Version: 4.0.6
New Comment:
Thank you for taking the time to report a problem with PHP.
Unfortunately your version of PHP is too old -- the problem
might already be fixed. Please download a new PHP
version from http://www.php.net/downloads.php
If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.
Previous Comments:
------------------------------------------------------------------------
[2001-07-10 12:25:47] taxman10m@mediaone.net
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 this bug report at http://bugs.php.net/?id=12020&edit=1