I try to scan the xls file (90Kb) for the ability to read (as it turned out that the file is corrupted) with code:
$reader = PHPExcel_IOFactory::createReader('Excel5');
if ($reader->canRead( $filename )) {
}
but I get:
Fatal error: String size overflow in /PHPExcel/Shared/OLERead.php on line 227
in function:
private function _readData($bl)
{
$block = $bl;
$data = '';
while ($block != -2) {
$pos = ($block + 1) * self::BIG_BLOCK_SIZE;
$data .= substr($this->data, $pos, self::BIG_BLOCK_SIZE); // 227 LINE
$block = self::_GetInt4d($this->bigBlockChain, $block*4);
}
return $data;
}
Memory limit in php.ini is 4Gb
Do you have any ideas on how to avoid this fatal error?