[PHP-DEV] Bug #489: bad dbf format From: chlebec <email protected>
Date: 06/29/98

From: chlebec <email protected>
Operating system: Windows 95
PHP version: 3.0 Final Release
PHP Bug Type: dBase related
Bug description:
<?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).