note 25516 added to function.dba-replace
| From: | jelte dot werkhoven at itfy dot com | Date: | Thu, 26 Sep 2002 12:24:36 +0000 |
| Subject: | note 25516 added to function.dba-replace | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-37278@lists.php.net to get a copy of this message | ||
Not only will dba_replace add extra entries when trying to replace an existing smaller one, it will
always add a new entry if the size of the value differs from the existing entry. This is probably
due to the nature of the datum struct in DBM-type databases (I work with gdbm), which consist of a
void pointer and a integer containing the size of the memory pointed to. Padding the value should
solve this.
--
http://www.php.net/manual/en/function.dba-replace.php
http://master.php.net/manage/user-notes.php?action=edit+25516
http://master.php.net/manage/user-notes.php?action=delete+25516
http://master.php.net/manage/user-notes.php?action=reject+25516