#39170 [Opn->Bgs]: dbase_open no longer functions
| From: | tony2001@php.net | Date: | Tue, 17 Oct 2006 09:08:58 +0000 |
| Subject: | #39170 [Opn->Bgs]: dbase_open no longer functions | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-103619@lists.php.net to get a copy of this message | ||
ID: 39170
Updated by: tony2001@php.net
Reported By: cory dot nemelka at nemelkaitgroup dot com
-Status: Open
+Status: Bogus
Bug Type: dBase related
Operating System: RHEL 3.0
PHP Version: 5.1.6
New Comment:
The file is currupted, even dbview is unable to open it.
Previous Comments:
------------------------------------------------------------------------
[2006-10-17 04:48:07] cory dot nemelka at nemelkaitgroup dot com
previous version that could read these files was PHP v5.0.4, not
v5.0.3.
------------------------------------------------------------------------
[2006-10-17 04:15:12] cory dot nemelka at nemelkaitgroup dot com
Also, to clarify, the dbase_open function works fine with non-Visual
Foxpro .dbf files.
If you'd like, I'll dig into this further by downloading the C code for
the dbase functions.
lmk,
--cnemelka
------------------------------------------------------------------------
[2006-10-17 04:11:29] cory dot nemelka at nemelkaitgroup dot com
You can download a small .dbf file at the following url that should not
open:
http://tinyurl.com/yce3bn
NOTE:
The .dbf files that won't open will also not open in Excel or Access
(they should). However, PHP v5.0.3? was able to open these files ok.
------------------------------------------------------------------------
[2006-10-17 04:08:54] cory dot nemelka at nemelkaitgroup dot com
<?php
$dbh=dbase_open("o1.dbf", 0);
$ci = dbase_get_header_info($dbh);
print_r($ci);
?>
------------------------------------------------------------------------
[2006-10-16 20:24:06] tony2001@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves.
A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external
resources such as databases, etc. If the script requires a
database to demonstrate the issue, please make sure it creates
all necessary tables, stored procedures etc.
Please avoid embedding huge scripts into the report.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/39170
--
Edit this bug report at http://bugs.php.net/?id=39170&edit=1