Date: 09/30/02
- Next message: jelte.werkhoven <email protected>: "[PHP-DOC] #19669 [Fbk->Opn]: Incomplete documentation for dba_replace"
- Previous message: hholzgra <email protected>: "[PHP-DOC] #19657 [Opn->Fbk]: confirm that auto_pre/append causes a disk read for every script invocation"
- In reply to: jelte.werkhoven <email protected>: "[PHP-DOC] #19669 [NEW]: Incomplete documentation for dba_replace"
- Next in thread: jelte.werkhoven <email protected>: "[PHP-DOC] #19669 [Fbk->Opn]: Incomplete documentation for dba_replace"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
ID: 19669
Updated by: hholzgra <email protected>
Reported By: jelte.werkhoven <email protected>
-Status: Open
+Status: Feedback
Bug Type: Documentation problem
Operating System: linux
PHP Version: 4.2.1
New Comment:
which ext/dba backend are you refering to? gdbm, db2, db3?
Previous Comments:
------------------------------------------------------------------------
[2002-09-30 03:34:16] jelte.werkhoven <email protected>
I think it might be worth mentioning in the documentation for the
dba_replace function that to actually replace an entry in a *DBM-type
database, you need to pad the value to the exact lenght of the value to
be replaced. This seems to go for both entries shorter and longer than
the replacing value. I also added a comment to the documention to this
extent but this is, in my opinion, cardinal to the differance between
dba_replace and dba_insert so it might be worth mentioning. Also, data
corruption and infinite growth of the data file will result if the
length is not padded.
------------------------------------------------------------------------
-- Edit this bug report at http://bugs.php.net/?id=19669&edit=1-- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
- Next message: jelte.werkhoven <email protected>: "[PHP-DOC] #19669 [Fbk->Opn]: Incomplete documentation for dba_replace"
- Previous message: hholzgra <email protected>: "[PHP-DOC] #19657 [Opn->Fbk]: confirm that auto_pre/append causes a disk read for every script invocation"
- In reply to: jelte.werkhoven <email protected>: "[PHP-DOC] #19669 [NEW]: Incomplete documentation for dba_replace"
- Next in thread: jelte.werkhoven <email protected>: "[PHP-DOC] #19669 [Fbk->Opn]: Incomplete documentation for dba_replace"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

