Skip to content

String being truncated while reading a big file #142

Open
@GoogleCodeExporter

Description

@GoogleCodeExporter
Hello

I'm sorry, I can't attach a file that causes a bug because of some company 
policies forbid it.
I found that the bug might be near the the line 1108.

$newstr = '';
for ($j = 0; $j < strlen($retstr); $j++) {
     $newstr = $retstr[$j].chr(0);
}
$retstr = $newstr;

I really not an expert in excel's inner file format, but I think that this code 
will truncate the string inside the $retstr variable.
I replaced the 
$newstr =  $retstr[$j].chr(0);
with
$newstr .=  $retstr[$j].chr(0);

and now everything works as it should be (at least it looks like that).

Thank you.

Dmitry.

Original issue reported on code.google.com by [email protected] on 21 Feb 2012 at 3:27

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions