PHP Classes

Find bug, Class not detect file with 1 row

Recommend this page to a friend!

      SimpleXLSX  >  All threads  >  Find bug, Class not detect file with...  >  (Un) Subscribe thread alerts  
Subject:Find bug, Class not detect file with...
Summary:Find bug, Class not detect file with 1 row
Messages:3
Author:beba
Date:2013-05-30 07:40:26
Update:2013-05-30 09:53:33
 

 


  1. Find bug, Class not detect file with...   Reply   Report abuse  
Picture of beba beba - 2013-05-30 07:40:26
Hi.
Sorry for my English, i'm from Belarus.

I have a file xlsx format with 1 row. After command:
$_data = $xlsx->rows($_sheet_value);

Count element of $_data is 0. :(


  2. Re: Find bug, Class not detect file with...   Reply   Report abuse  
Picture of beba beba - 2013-05-30 08:08:34 - In reply to message 1 from beba
this bug exist if this row have a one col and this col is number (not text format).

how i fixed it:

function getEntryXML( $name ) {
if ( ($entry_xml = $this->getEntryData( $name ))
&& ($entry_xmlobj = simplexml_load_string( $entry_xml ))
)
return $entry_xmlobj;
++++ if ($name != 'xl/sharedStrings.xml') // BUG FIXED ROW
$this->error('Entry not found: '.$name );
return false;
}

  3. Re: Find bug, Class not detect file with...   Reply   Report abuse  
Picture of Sergey Shuchkin Sergey Shuchkin - 2013-05-30 09:53:33 - In reply to message 2 from beba
ааа, точно, у нас уже всплывал этот баг несколько раз,
файла sharedStrings может и не быть, вот как
исправлю в следующем релизе