|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-08-06 14:00 UTC] rodrigo at fabricadeideias dot com
[2006-08-06 16:01 UTC] mike@php.net
[2006-08-06 22:02 UTC] rodrigo at fabricadeideias dot com
[2006-08-08 13:33 UTC] rodrigo at fabricadeideias dot com
[2006-08-08 14:58 UTC] mike@php.net
[2006-08-14 09:42 UTC] mike@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 03:00:01 2025 UTC |
Description: ------------ When trying to open a DBase 3 dbf file I get the following error: Unable to get header Warning: dbase_open(): unable to open database 12MU2500G.dbf in /var/www/localhost/htdocs/shape/dbase_open_bug.php on line 4 I believe this is a DBase 3 file as file returns: # file 12MU2500G.dbf 12MU2500G.dbf: DBase 3 data file (22 records) I also believe this file isn't corrupted as both DBD::XBase module for Perl and OpenOffice Base read the file without problems. Reproduce code: --------------- <?php $db = dbase_open('12MU2500G.dbf', 0); echo $db ? "Opened.\n" : "Not opened.\n"; ?> Expected result: ---------------- Opened. Actual result: -------------- Unable to get header Warning: dbase_open(): unable to open database 12MU2500G.dbf in /var/www/localhost/htdocs/shape/dbase_open_bug.php on line 2 Not opened.