#19669 [Fbk->Opn]: Incomplete documentation for dba_replace
| From: | jelte dot werkhoven at itfy dot com | Date: | Mon, 30 Sep 2002 10:51:49 +0000 |
| Subject: | #19669 [Fbk->Opn]: Incomplete documentation for dba_replace | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969348914@lists.php.net to get a copy of this message | ||
ID: 19669
User updated by: jelte.werkhoven@itfy.com
Reported By: jelte.werkhoven@itfy.com
-Status: Feedback
+Status: Open
Bug Type: Documentation problem
Operating System: linux
PHP Version: 4.2.1
New Comment:
I'm using three gdbm databases which are read and written to by both a
C daemon and a php-script.
Previous Comments:
------------------------------------------------------------------------
[2002-09-30 05:45:05] hholzgra@php.net
which ext/dba backend are you refering to? gdbm, db2, db3?
------------------------------------------------------------------------
[2002-09-30 03:34:16] jelte.werkhoven@itfy.com
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