php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #43265 wrong header interpretation
Submitted: 2007-11-12 17:29 UTC Modified: 2007-11-14 23:39 UTC
From: roberto at spadim dot com dot br Assigned:
Status: Not a bug Package: dBase related
PHP Version: 5.2.5 OS: any
Private report: No CVE-ID: None
 [2007-11-12 17:29 UTC] roberto at spadim dot com dot br
Description:
------------
continuing bug 42261...


[28 Sep 7:18pm UTC] roberto at spadim dot com dot br

hello, the same error occur now for logic data (boolean)

    [0] => Array
        (
            [name] => SUSPENSO
            [type] => boolean
            [length] => 34817  <========= should be 1
            [precision] => 0
            [format] => %34817s
            [offset] => 1
        )

    [1] => Array
        (
            [name] => COD_CAD
            [type] => number
            [length] => 9
            [precision] => 0
:
....

[17 Oct 6:45am UTC] roberto at spadim dot com dot br

=>            case 'L':
=>                dbf->db_flen = 1;
=>                break;

should work for logic values (boolean)



the patch was not included in php 5.2.5!

Reproduce code:
---------------
a file with some wrong header information

Expected result:
----------------
boolean must be 1 byte length

Actual result:
--------------
an arbitrary length

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-11-14 23:39 UTC] jani@php.net
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. 

Thank you for your interest in PHP.

Just one report per bug, okay?
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 16:01:28 2024 UTC