Performance and memory improvements to Excel5 OLE Reader

Temporary fix to XML flush until I get it working correctly
Use of PHPExcel_Exception
This commit is contained in:
Mark Baker
2012-11-26 18:01:15 +00:00
parent d8debd0966
commit b98f27f4a7
7 changed files with 66 additions and 67 deletions
+3 -3
View File
@@ -53,7 +53,7 @@ class PHPExcel_HashTable
* Create a new PHPExcel_HashTable
*
* @param PHPExcel_IComparable[] $pSource Optional source array to create HashTable from
* @throws Exception
* @throws PHPExcel_Exception
*/
public function __construct($pSource = null)
{
@@ -67,14 +67,14 @@ class PHPExcel_HashTable
* Add HashTable items from source
*
* @param PHPExcel_IComparable[] $pSource Source array to create HashTable from
* @throws Exception
* @throws PHPExcel_Exception
*/
public function addFromSource($pSource = null) {
// Check if an array was passed
if ($pSource == null) {
return;
} else if (!is_array($pSource)) {
throw new Exception('Invalid array parameter passed.');
throw new PHPExcel_Exception('Invalid array parameter passed.');
}
foreach ($pSource as $item) {