luads/php-xbase

writeRecord and variable type

DierteK opened this issue · 2 comments

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

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

I guess it fixed in #92