From c7f99d0d98f316912ff419639fd62ccc08538152 Mon Sep 17 00:00:00 2001 From: Mark Baker Date: Tue, 19 Apr 2011 21:40:35 +0000 Subject: [PATCH] Bugfix: Work item 15707 - ini_set() call in Calculation class destructor git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@72060 2327b42d-5241-43d6-9e2a-de5ac946f064 --- Classes/PHPExcel/Calculation.php | 4 +++- changelog.txt | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Classes/PHPExcel/Calculation.php b/Classes/PHPExcel/Calculation.php index 71ed083e..b844b1ff 100644 --- a/Classes/PHPExcel/Calculation.php +++ b/Classes/PHPExcel/Calculation.php @@ -1698,7 +1698,9 @@ class PHPExcel_Calculation { public function __destruct() { - ini_set('precision',$this->_savedPrecision); + if ($this->_savedPrecision != ini_get('precision')) { + ini_set('precision',$this->_savedPrecision); + } } /** diff --git a/changelog.txt b/changelog.txt index a4c89c32..4e947f49 100644 --- a/changelog.txt +++ b/changelog.txt @@ -28,6 +28,7 @@ Fixed in SVN: - Bugfix: (MBaker) Work item 15518 - PCLZip library issue - Bugfix: (MBaker) Work item 15537 - Excel2007 Reader canRead function bug - Bugfix: (MBaker) Support for Excel functions whose return can be used as either a value or as a cell reference depending on its context within a formula +- Bugfix: (gilles06) Work item 15707 - ini_set() call in Calculation class destructor - General: (MBaker) Work item 15405 - Two easy to fix Issues concerning PHPExcel_Token_Stack (l10n/UC) - General: (MBaker) Work item 15461 - Locale file paths not fit for windows