← All changes
|
vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/ExceptionHandler.php
+26
-22
3.1.0
→
3.0.10
View file →
| @@ -1,10 +1,9 @@ | ||
| 1 | 1 | <?php |
| 2 | - | |
| 3 | 2 | /** |
| 4 | - * PHPExcel_Calculation_ExceptionHandler | |
| 3 | + * PHPExcel | |
| 5 | 4 | * |
| 6 | - * Copyright (c) 2006 - 2015 PHPExcel | |
| 5 | + * Copyright (c) 2006 - 2014 PHPExcel | |
| 7 | 6 | * |
| 8 | 7 | * This library is free software; you can redistribute it and/or |
| 9 | 8 | * modify it under the terms of the GNU Lesser General Public |
| 10 | 9 | * License as published by the Free Software Foundation; either |
| @@ -20,26 +19,31 @@ | ||
| 20 | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 21 | 20 | * |
| 22 | 21 | * @category PHPExcel |
| 23 | 22 | * @package PHPExcel_Calculation |
| 24 | - * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) | |
| 25 | - * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL | |
| 26 | - * @version ##VERSION##, ##DATE## | |
| 23 | + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) | |
| 24 | + * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL | |
| 25 | + * @version ##VERSION##, ##DATE## | |
| 27 | 26 | */ |
| 28 | -class PHPExcel_Calculation_ExceptionHandler | |
| 29 | -{ | |
| 30 | - /** | |
| 31 | - * Register errorhandler | |
| 32 | - */ | |
| 33 | - public function __construct() | |
| 34 | - { | |
| 35 | - set_error_handler(array('PHPExcel_Calculation_Exception', 'errorHandlerCallback'), E_ALL); | |
| 36 | - } | |
| 37 | 27 | |
| 38 | - /** | |
| 39 | - * Unregister errorhandler | |
| 40 | - */ | |
| 41 | - public function __destruct() | |
| 42 | - { | |
| 43 | - restore_error_handler(); | |
| 44 | - } | |
| 28 | +/** | |
| 29 | + * PHPExcel_Calculation_ExceptionHandler | |
| 30 | + * | |
| 31 | + * @category PHPExcel | |
| 32 | + * @package PHPExcel_Calculation | |
| 33 | + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) | |
| 34 | + */ | |
| 35 | +class PHPExcel_Calculation_ExceptionHandler { | |
| 36 | + /** | |
| 37 | + * Register errorhandler | |
| 38 | + */ | |
| 39 | + public function __construct() { | |
| 40 | + set_error_handler(array('PHPExcel_Calculation_Exception', 'errorHandlerCallback'), E_ALL); | |
| 41 | + } | |
| 42 | + | |
| 43 | + /** | |
| 44 | + * Unregister errorhandler | |
| 45 | + */ | |
| 46 | + public function __destruct() { | |
| 47 | + restore_error_handler(); | |
| 48 | + } | |
| 45 | 49 | } |