#47002 [Com]: Fields truncated
| From: | typoon at gmail dot com | Date: | Mon, 12 Jan 2009 14:09:26 +0000 |
| Subject: | #47002 [Com]: Fields truncated | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-132803@lists.php.net to get a copy of this message | ||
ID: 47002
Comment by: typoon at gmail dot com
Reported By: victorjavierss at live dot com dot mx
Status: Open
Bug Type: dBase related
Operating System: Windows
PHP Version: 5.2CVS-2009-01-04 (snap)
New Comment:
Victor,
Are you sure this file has 1625 fields? I opened the file with DBF
Viewer and I only see 1100 fields. Also I changed the logic a little bit
to calculate the number of fields based on the header length and I also
obtain 1100 fields.
Can you please confirm the number of fields in the file? Also, what is
the version of dbase you are using?
Thanks!
Previous Comments:
------------------------------------------------------------------------
[2009-01-12 12:49:06] typoon at gmail dot com
My bad, the url was truncated and i did notice. Downloaded the file,
checking the issue right now.
Thanks!
------------------------------------------------------------------------
[2009-01-12 12:40:54] typoon at gmail dot com
I tried to access that URL and got this error:
That item seems to be missing
Someone may have deleted or moved the item, or you may not have
permission to view it. If you have questions about this item, contact
the person who created it.
------------------------------------------------------------------------
[2009-01-11 18:59:51] victorjavierss at live dot com dot mx
Here is one of the DBF's that i'm using:
http://cid-d95738776c6cf0d0.skydrive.live.com/self.aspx/.Public/USAERF07.DBF
as I said it retrieves me 1024 fild instead of 1625
------------------------------------------------------------------------
[2009-01-11 18:50:14] typoon at gmail dot com
I was unable to find a free version of dBase so I can't really create
the file here to simulate the issue.
Could you please post a link to a .dbf file with more than 1024 fields
for me please? Put like 3 or 4 records as examples on it, just so I can
do all tests.
Thanks!
Henrique
------------------------------------------------------------------------
[2009-01-04 22:17:20] victorjavierss at live dot com dot mx
Description:
------------
I'm executing the code belong, and it supose to retrieve me 1625
fields, but it doesn't, it give me 1024 fields, also i tried with other
dbf's bigger than 1024 and the problem stills there
Reproduce code:
---------------
<?php
if ($db = dbase_open('C:\SIDEC\SIDEC-I\ARCHIVOS\USAERI07.dbf', 0)) {
$rn = dbase_numfields($db);
echo($rn);
dbase_close($db);
}
?>
Expected result:
----------------
1625
Actual result:
--------------
1024
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=47002&edit=1