|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-08-05 15:51 UTC] t2315 at freemail dot hu
[2002-08-05 18:31 UTC] t2315 at freemail dot hu
[2002-08-12 23:46 UTC] kalowsky@php.net
[2002-08-13 00:10 UTC] kalowsky@php.net
[2002-08-17 00:54 UTC] sfox@php.net
[2002-11-13 09:09 UTC] helly@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 18:00:01 2025 UTC |
I'm using PHP 4.2.2 for Windows with Apache 1.3.24. I have loaded php_db.dll for DBM support. When writing to a DBM database and re-reading data, I get different from that I inserted. Here is a script to reproduce the problem: [please delete "db" & "db.lck" if exists] <? $dbm=dbmopen("db","c") or die("DBM error"); dbmreplace($dbm,"7","alpha"); echo dbmfetch($dbm,"7"); dbmclose($dbm); ?> The program output is "lpha" (w/o quotes). The starting "a" seems to be cut. When analyzing the "db" file, it contains the whole string (31 0A 37 35 0A 61 6C 70 68 61 00). I'm not completely sure if it is a php bug, I'm also interested whether you can reproduce the error or not.