|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #46264 Support FoxPro DBF field types
Submitted: 2008-10-09 09:17 UTC Modified: 2016-11-05 17:03 UTC
Avg. Score:4.6 ± 0.7
Reproduced:15 of 15 (100.0%)
Same Version:9 (60.0%)
Same OS:10 (66.7%)
From: pierre dot beaumadier at gmail dot com Assigned: cmb (profile)
Status: Closed Package: dbase (PECL)
PHP Version: 5.2CVS-2008-10-09 OS: GNU/Linux
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:
Solve the problem:
30 - 6 = ?
Subscribe to this entry?

 [2008-10-09 09:17 UTC] pierre dot beaumadier at gmail dot com
the dbase extension seems to be unable to deal at all a foxpro dbf file.

Reproduce code:

$db = dbase_open('table.dbf', 0);


Actual result:
$ php ./testdbf.php 

Warning: dbase_open(): unable to open database table.dbf in /home/pbeaumadier/testdbf.php on line 3


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2008-10-09 09:19 UTC] pierre dot beaumadier at gmail dot com
I can send you an example dbf file if you need, as it seems impossible to attach a file to a bug report
 [2008-10-09 12:19 UTC] pierre dot beaumadier at gmail dot com
For information I tested on this version :

$ php --version
PHP 5.2.4-2ubuntu5.3 with Suhosin-Patch (cli) (built: Jul 23 2008 06:44:49) 
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies

I looked up in the bugs list but didn't see anything related to my problem.

I will try to test the latest snapshot.
 [2008-10-09 12:24 UTC]
Not all fixed bugs are evident in the NEWS. Some people are lazy to write proper descriptions.
 [2008-10-09 13:53 UTC] pierre dot beaumadier at gmail dot com
Same error with the latest snapshot.
 [2009-10-29 12:19 UTC] jmoseby at elasticfabrics dot com
I have this problem too.  It is a major problem for me.  I can provide example dbf files on request.

Running ubuntu hardy 2.6.24-19-generic.

#php --version
PHP 5.2.9-0.dotdeb.2 with Suhosin-Patch 0.9.7 (cli) (built: Apr  7 2009 20:42:41)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
 [2009-11-01 20:28 UTC]
Asked for DBF files per e-mail.
 [2009-11-03 21:16 UTC]
I've put the file Mr Moseby provided online here:
 [2010-02-11 14:26 UTC] jmoseby at elasticfabrics dot com
Bumping this bug:  Has there been any progress made?

 [2016-07-10 14:05 UTC]
-Package: dBase related +Package: dbase
 [2016-08-05 15:39 UTC]
-Summary: FoxPro DBF files can not be opened +Summary: Support FoxPro DBF field types
 [2016-08-05 15:39 UTC]
Bug #54125 might be a duplicate of this issue.

Anyhow, mach07.DBF contains timestamp ("T") and a _NullFlags ("0")
field, which are not (yet) supported by PECL/dbase.
 [2016-08-05 15:51 UTC]
-Type: Bug +Type: Feature/Change Request
 [2016-11-05 17:02 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: cmb
 [2016-11-05 17:02 UTC]
At least timestamp ("T") and nullable fields will be supported as of
dbase 7.0.0, so I'm closing this ticket.
 [2016-11-05 17:03 UTC]
Furthermore, the first unsupported field type in the DBF will be
explicitly reported.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 19 06:01:34 2024 UTC