#25558 [Com]: Dbase Version Check added in 4.3.3 detecting bad version when using memo fields

Ask a Question related to PHP Development, Design and Development.

  1. #1

    Default #25558 [Com]: Dbase Version Check added in 4.3.3 detecting bad version when using memo fields

    ID: 25558
    Comment by: martijn at hexon dot cx
    Reported By: dsherron at nbc dot edu
    Status: Open
    Bug Type: dBase related
    Operating System: Win 2003
    PHP Version: 4.3.3
    New Comment:

    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.


    Previous Comments:
    ------------------------------------------------------------------------

    [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]
    martijn at hexon dot cx Guest

  2. Similar Questions and Discussions

    1. #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...
    2. #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: ...
    3. #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: ...
    4. #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: ...
    5. #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: ...
  3. #2

    Default #25558 [Com]: Dbase Version Check added in 4.3.3 detecting bad version when using memo fields

    ID: 25558
    Comment by: clynx at succont dot de
    Reported By: dsherron at nbc dot edu
    Status: Open
    Bug Type: dBase related
    Operating System: Win 2003
    PHP Version: 4.3.3
    New Comment:

    Could anyone who has the possibility to compile PHP under Windows
    create a php_dbase.dll for 4.3.3 without the Version check and upload
    it to anywhere?

    It would be absolutely nice ;o)


    Previous Comments:
    ------------------------------------------------------------------------

    [2003-09-22 13:24:57] dsherron at nbc dot edu

    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!!!

    ------------------------------------------------------------------------

    [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]
    clynx at succont dot de Guest

  4. #3

    Default #25558 [Com]: Dbase Version Check added in 4.3.3 detecting bad version when using memo fields

    ID: 25558
    Comment by: clynx at succont dot de
    Reported By: dsherron at nbc dot edu
    Status: Assigned
    Bug Type: dBase related
    Operating System: Win 2003
    PHP Version: 4.3.3
    Assigned To: vlad
    New Comment:

    yes ... please ;o)


    Previous Comments:
    ------------------------------------------------------------------------

    [2003-10-01 12:39:03] [email]vlad@php.net[/email]

    I'll revert my version check, and try to make a dll for you guys, if
    you still need it.

    Vlad

    ------------------------------------------------------------------------

    [2003-10-01 10:28:21] [email]sniper@php.net[/email]

    Assigned to Vlad who's responsible for adding this check.


    ------------------------------------------------------------------------

    [2003-10-01 08:54:42] clynx at succont dot de

    Could anyone who has the possibility to compile PHP under Windows
    create a php_dbase.dll for 4.3.3 without the Version check and upload
    it to anywhere?

    It would be absolutely nice ;o)

    ------------------------------------------------------------------------

    [2003-09-22 13:24:57] dsherron at nbc dot edu

    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!!!

    ------------------------------------------------------------------------

    [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.

    ------------------------------------------------------------------------

    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
    [url]http://bugs.php.net/25558[/url]

    --
    Edit this bug report at [url]http://bugs.php.net/?id=25558&edit=1[/url]
    clynx at succont dot de Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139