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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: chlebec at pefstud dot uniag dot sk
New email:
PHP Version: OS:

 

 [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

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-11-23 01:26 UTC] jim
Fixed in latest CVS.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Feb 05 11:01:31 2025 UTC