php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #35240 dbase module does not handle float field definitions
Submitted: 2005-11-16 14:45 UTC Modified: 2006-08-24 16:21 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: nicol dot hermann at gmx dot de Assigned:
Status: Closed Package: dBase related
PHP Version: 5CVS, 4CVS (2005-11-16) (cvs) OS: *
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: nicol dot hermann at gmx dot de
New email:
PHP Version: OS:

 

 [2005-11-16 14:45 UTC] nicol dot hermann at gmx dot de
Description:
------------
If i create a dbf file with the data type float (
http://www.clicketyclick.dk/databases/xbase/format/data_types.html) 
the record and field do not appear when you query the dbf file with dbase_get_record_with_names. As a side effect all other fields containg 0 values or nonsense

Reproduce code:
---------------
You could use the sample code of the function dbase_get_record_with_names (Example 1) and do a print_r($row) within the for loop.

Expected result:
----------------
I expect the same results like the data type number


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-11-16 21:16 UTC] nicol dot hermann at gmx dot de
I packed a small tar file which contains a dbf file and a php script which shows the bug.
The tar could be downloaded from:
http://anwender.info/dbfbug.tar.gz

The php code:

<?php
$db = dbase_open('/tmp/dbffile.dbf', 0);

if ($db) {
  $record_numbers = dbase_numrecords($db);
  for ($i = 1; $i <= $record_numbers; $i++) {
     $row = dbase_get_record_with_names($db, $i);
     print_r($row);
  }
}
?>
 [2006-08-24 16:21 UTC] tony2001@php.net
Implemented in CVS.
See bug #38357.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Mar 13 03:01:29 2025 UTC