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
 [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-2021 The PHP Group
All rights reserved.
Last updated: Sun Nov 28 04:03:17 2021 UTC