nuovo / spreadsheet-reader

A PHP spreadsheet reader (Excel XLS and XLSX, OpenOffice ODS, and variously separated text files) with a singular goal of getting the data out, efficiently
http://www.nuovo.lv/
Other
674 stars 498 forks source link

Loopping in while not end #124

Open sms-assistent opened 7 years ago

sms-assistent commented 7 years ago

Hi.

Sorry for my English.

Today see that apache error log very big and log disk space is full. At logs loop rows: "Row 238. File excel_reader2.php. Undefined index ... "

                        while ($block != -2) {
                                  $pos = $block * SMALL_BLOCK_SIZE;
                                  $streamData .= substr($rootdata, $pos, SMALL_BLOCK_SIZE);
                                  $block = $this->smallBlockChain[$block];
                        }

I fixed error replace row to : $block = (isset($this->smallBlockChain[$block]))?$this->smallBlockChain[$block]:null;

It fixed only not send debug message to appache error log, but it not fixed problem.

Excel file, what start this problem I do not have.

Can you help me fixed bugs ?