go to bug id or search bugs for
$db = dbmopen('req.db', "n");
$in = "1234567890";
dbminsert($db, "ID", $in);
$out = dbmfetch($db, "ID");
echo "in -$in-\n";
echo "out -$out-\n";
am using the distribution "Win32 Binaries packaged as zip" from
filename : php-4.0.3pl1-Win32.zip
save code as say db.php3
run in dos window to exclude interference from webserver
As you can see the first char is dropped. For anything up to 9 chars everythings OK. More than 9, first char is dropped. Tried using all alhpa strings, same behaviour.
Looked at req.db flat file database, everything looks ok there.
Add a Patch
Add a Pull Request
The db extension is deprecated.
Use dba extension instead.