luads / php-xbase

A simple parser for *.dbf files using PHP
MIT License
184 stars 84 forks source link

writeRecord and variable type #87

Closed DierteK closed 4 years ago

DierteK commented 4 years ago

Hello,

I want to edit a DBF file and have created the following test script for this purpose:

[...]
$table = new \Xbase\WritableTable($filename, null, 'CP1252');
$table->openWrite();
[...]

$record->foobar = 111.11;
$table->writeRecord();

The problem now is that a string was written in the field "foobar". But I would like to write something there as float.

Thanks

gam6itko commented 4 years ago

@DierteK give me the file or $table->version value to reproduce this bug. Which version of php-xbase are you using?

gam6itko commented 4 years ago

I guess it fixed in #92