Bug #13660: store extra data in db file on create
| From: | pierre-alain dot joye at wanadoo dot fr | Date: | Sat, 13 Oct 2001 15:49:31 +0000 |
| Subject: | Bug #13660: store extra data in db file on create | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-67888@lists.php.net to get a copy of this message | ||
From: pierre-alain.joye@wanadoo.fr
Operating system: Linux kernel 2.4.10 i686
PHP version: 4.0.6
PHP Bug Type: DBM/DBA related
Bug description: store extra data in db file on create
Show the script below the text.
When I create a new db file, extras data has been stored.
In all cases, it was the script itself (ask me if you need
the new db file directly).
I think it's a bug (or a new backup feature ;).
Config details :
gdbm 1.8.0
libc6
kernel 2.4.10
data on a reiserfs partition
Is it due to a default filesize ?
If yes do you make a zero fill of the extra memory used ?
<?
$id = dba_open("/tmp/test2.db","n","gdbm");
if(!$id){
echo "Erreur dba_open";
exit;
}
dba_replace("key","This a test!",$id);
if(dba_exists("key",$id)){
echo dba_fetch("key",$id);
}else{
echo "Not found";
}
dba_close($id);
?>
--
Edit bug report at: http://bugs.php.net/?id=13660&edit=1