php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #648 Corrupts dbase files
Submitted: 1998-08-12 17:18 UTC Modified: 1998-11-23 01:23 UTC
From: carlos_sousa at altavista dot net Assigned:
Status: Closed Package: dBase related
PHP Version: 3.0.2a OS: Windows 98
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
2 + 43 = ?
Subscribe to this entry?

 
 [1998-08-12 17:18 UTC] carlos_sousa at altavista dot net
  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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-11-23 01:23 UTC] jim
Should be fixed in latest CVS.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 27 00:01:30 2024 UTC