ID: 13659 Comment by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Closed Bug Type: dBase related Operating System: Linux 2.4.x PHP Version: 4.0.6 New Comment:
is there any way around in 4.0.6? -Hector Previous Comments: ------------------------------------------------------------------------ [2001-10-13 10:49:03] [EMAIL PROTECTED] This is already fixed in CVS. --Jani ------------------------------------------------------------------------ [2001-10-13 08:11:22] [EMAIL PROTECTED] Reading the boolean fields from a dbase database does not work. I cannot submit a dbase file example but is easy to see whenever your dbase file has a boolean field the returned field is equal with 0 regardless of the value of the dbase field. I used a simple loop to read all records from the dbase file. $dbf=dbase_open("/tmp/dbase_file", 0)); $num_rows=dbase_numrecords($dbf); $nf = dbase_numfields($dbf); while ( $j<$num_rows) { $k=0; $rec=dbase_get_record($dbf, $j); while($k < $nf) { print "$rec[$k],"; $k++; } $j++; print "<br>"; } Any boolean value read by dbase_get_record returns 0 which is wrong. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=13659&edit=1