Bug #648: Corrupts dbase files
| From: | carlos_sousa at altavista dot net | Date: | Wed, 12 Aug 1998 21:18:09 +0000 |
| Subject: | Bug #648: Corrupts dbase files | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-132@lists.php.net to get a copy of this message | ||
From: carlos_sousa@altavista.net
Operating system: Windows 98
PHP version: 3.0.2a
PHP Bug Type: dBase related
Bug description:
After adding a few Kb of records dbase files get corrupted. Here is the script I used to detect
the bug:
<?php
echo "teste";
//dl("dbase.dll");
if(!file_exists("teste.dbf"))
{
$estrutura2=array(array("NUMERO","c",10,0),array("NUMERO2","N",10,0),array("NUMERO3","N",10,0),
array("NUMERO4","c",10,0),array("NUMERO5","N",10,0),array("NUMERO6","N",10,0));
dbase_create("teste.dbf",$estrutura2);
}
$cli_id=dbase_open("teste.dbf",2);
for($x=0;$x<1000;$x++)
{
$linha=array($x,$x+1,$x,$x,$x,$x);
dbase_add_record($cli_id,$linha);
}
dbase_close($cli_id);
?>
Hope I hear from you soon (excuse my losy english..)
Thanks,
Carlos Sousa From Portugal
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net