Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No support for FoxPro's .DBF #8

Open
siran opened this issue Jan 15, 2017 · 3 comments
Open

No support for FoxPro's .DBF #8

siran opened this issue Jan 15, 2017 · 3 comments

Comments

@siran
Copy link

siran commented Jan 15, 2017

When trying to read a FoxPro DBF file, I got: "Format dBASE III PLUS does not support field T"

This is not an issue, it just doesn't support it and I thought you might explicitely say so in documentation to avoid confusion.

@majkel89
Copy link
Owner

Please send me example file.

I would be glad if you write the customization on your own and then send me pull request

  1. Add new Field in src/fields
  2. Register new field in Field::create and Field::getTypes. Do not forget to add Field::TYPE_ constant
  3. Add FoxitPro DBase II format in src/formats. Do not forget to add new field as supported fields in the format. In Format::createHeader you can check if the field was actually FoxPro format - throw exception if not
  4. Register new format in FormatFactory::initializeFormats. Add new registerFormat call similar to Format::DBASE3

If possible write unit tests for new code

During the time your PR is not yet merged you can use your own fork in your project

  1. Add you fork as repository to your compose.json https://getcomposer.org/doc/05-repositories.md#vcs

  2. Change package version to dev-master ("org.majkel/dbase": "dev-master")

@aauerswald
Copy link

Hello, I have the same error-message:

Format dBASE III PLUS does not support field T

But I don't know how to handle this. I had read your instructions but I'm not sure how to do.

Please help.

Thanks and best regards!

@neoteknic
Copy link

https://github.com/luads/php-xbase

Use this one support much more types ! (date/timestamp/integer , ....)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants