yourilima / php-excel-reader

Automatically exported from code.google.com/p/php-excel-reader
0 stars 0 forks source link

Patch for truncated texts #99

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Change
   $newstr = $retstr[$j].chr(0);
into
   $newstr .= $retstr[$j].chr(0);
around line 547 in reader.php.

When the excel's SST record exceeds the BIFF record size (which may happen if 
you have more than 8kbyte of unique texts in cells), and a CONTINUE is inserted 
in the middle of a string, then only the end of the string is returned for that 
cell, the first portion is truncated.

Original issue reported on code.google.com by gergely....@gmail.com on 30 Nov 2010 at 2:54

GoogleCodeExporter commented 9 years ago
Thank you, gergoe, you are the saver!

Original comment by BEZ...@gmail.com on 30 Nov 2010 at 6:08