Ask a Question related to PHP Development, Design and Development.
-
dsherron at nbc dot edu #1
#25558 [Opn]: Dbase Version Check added in 4.3.3 detecting bad version when using memo fields
ID: 25558
User updated by: dsherron at nbc dot edu
Reported By: dsherron at nbc dot edu
Status: Open
Bug Type: dBase related
Operating System: Win 2003
PHP Version: 4.3.3
New Comment:
I'm sure stripping out the code would work for me as well, but since
I'm on Windows I depend on the binaries that are posted. Right now I
have backed up to 4.2.3 so I can still use my tables, but we don't want
to be left in the past as far as versions go!!!
Previous Comments:
------------------------------------------------------------------------
[2003-09-22 10:25:08] martijn at hexon dot cx
We're experiencing the same problem on Linux 2.4.21.
Our Dbase files are created with the Halcyon component
for Delphi ([url]www.grifsolu.com[/url]) and don't have any memo
fields.
The error here is: "Warning: This file appears to be
dbase ver. -125. Only version 3 and above is
supported."
So that's -125 instead of -117.
I stripped out the version checking and everything
works just fine.
------------------------------------------------------------------------
[2003-09-16 10:27:47] dsherron at nbc dot edu
Description:
------------
As seen in Version 4.3.3 Changelog:
Fixed bug 23463 (added Dbase2 version check). (Vlad Krupin)
We are reading from many dbase files, all version 3, and one of them
has a memo field. Prior to version 4.3.2, all of these tables were
readable, but with the addition of the version check on 4.3.3, I now
recieve the following error when opening the v3 file with memo fields:
-----------snip-----------
Warning: This file appears to be dbase ver. -117. Only version 3 and
above is supported. in D:\inetpub\onlineroot\bin\inc_lib_online.php on
line 862
Warning: unable to open database D:\inetpub\FPDBF\evaluate.dbf in
D:\inetpub\onlineroot\bin\inc_lib_online.php on line 862
Cannot open Unable to get header
-----------snip-----------
In versions from 4.1.1 - 4.3.2 these database files worked flawlessly.
The memo fields are not important to me, since I am merely checking
other fields in the database, but the ability to open and read the
other fields has always been there. This functionality has now been
broken with 4.3.3
I would be glad to send an empty database with these properties to help
reproduce the problem.
--Dave
Reproduce code:
---------------
if ( !$fp = dbase_open("D:\\inetpub\\FPDBF\\evaluate.dbf",0) ) {
echo "Cannot open database\n";
exit;
}
Expected result:
----------------
<no warning messages, has a usable file handle ($fp)>
Actual result:
--------------
Warning: This file appears to be dbase ver. -117. Only version 3 and
above is supported. in D:\inetpub\onlineroot\testing\bug_rep.php on
line 1
Warning: unable to open database D:\inetpub\FPDBF\evaluate.dbf in
D:\inetpub\onlineroot\testing\bug_rep.php on line 1
Cannot open Unable to get header
<please note the db file handle is not usable at this point ($fp)>
------------------------------------------------------------------------
--
Edit this bug report at [url]http://bugs.php.net/?id=25558&edit=1[/url]
dsherron at nbc dot edu Guest
-
#25558 [Csd]: Dbase Version Check added in 4.3.3 detecting bad version when using memo fields
ID: 25558 Updated by: vlad@php.net Reported By: dsherron at nbc dot edu Status: Closed Bug Type: dBase... -
#25558 [Asn->Csd]: Dbase Version Check added in 4.3.3 detecting bad version when using memo fields
ID: 25558 Updated by: vlad@php.net Reported By: dsherron at nbc dot edu -Status: Assigned +Status: ... -
#25558 [Asn]: Dbase Version Check added in 4.3.3 detecting bad version when using memo fields
ID: 25558 Updated by: vlad@php.net Reported By: dsherron at nbc dot edu Status: Assigned Bug Type: ... -
#25558 [Opn->Asn]: Dbase Version Check added in 4.3.3 detecting bad version when using memo fields
ID: 25558 Updated by: sniper@php.net Reported By: dsherron at nbc dot edu -Status: Open +Status: ... -
#25558 [NEW]: Dbase Version Check added in 4.3.3 detecting bad version when using memo fields
From: dsherron at nbc dot edu Operating system: Win 2003 PHP version: 4.3.3 PHP Bug Type: dBase related Bug description: ...



Reply With Quote

