php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #489 bad dbf format
Submitted: 1998-06-29 05:09 UTC Modified: 1998-11-23 01:26 UTC
From: chlebec at pefstud dot uniag dot sk Assigned:
Status: Closed Package: dBase related
PHP Version: 3.0 Final Release OS: Windows 95
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:
35 + 20 = ?
Subscribe to this entry?

 
 [1998-06-29 05:09 UTC] chlebec at pefstud dot uniag dot sk
<?php

/**
 * Creating new databaze ...
 */


  dl("lib/dbase.dll");
  $dbf_fields=array(
              array("short","c",10,0),
              array("long","c",200,0)
              );

  dbase_create("test.dbf",$dbf_fields);

/**
 * If you try open test.dbf
 * from any dbase viewer you get
 * error, because dbase file is
 * created corrupted ...
 * Try change lenght 'short' field
 * to 9 or 11 and try view it from
 * any dbase viewer ... This is ok.
 */ 

  $dbase_id=dbase_open("test.dbf",2);
  dbase_add_record($dbase_id,array("short","looooooooooonnnnnnngggg"));
  dbase_close($dbase_id);

?>

I have binary Win32 distribution (latest), and use it with dbase.dll module. I use XITAMI web server, configured with PHP (filter for *.php3 files is php.exe).

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-11-23 01:26 UTC] jim
Fixed in latest CVS.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 11:01:28 2024 UTC