From b321f33fedb7ed4edaaf1f734bf29d1712b85132 Mon Sep 17 00:00:00 2001 From: Mark Baker Date: Mon, 3 Jan 2011 22:39:51 +0000 Subject: [PATCH] Bugfix: Work item 15029 - coordinateFromString throws exception for rows greater than 99,999 git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@66366 2327b42d-5241-43d6-9e2a-de5ac946f064 --- Classes/PHPExcel/Cell.php | 2 +- changelog.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Classes/PHPExcel/Cell.php b/Classes/PHPExcel/Cell.php index af28cf34..4a588a26 100644 --- a/Classes/PHPExcel/Cell.php +++ b/Classes/PHPExcel/Cell.php @@ -498,7 +498,7 @@ class PHPExcel_Cell */ public static function coordinateFromString($pCoordinateString = 'A1') { - if (preg_match("/^([$]?[A-Z]{1,3})([$]?\d{1,5})$/", $pCoordinateString, $matches)) { + if (preg_match("/^([$]?[A-Z]{1,3})([$]?\d{1,7})$/", $pCoordinateString, $matches)) { return array($matches[1],$matches[2]); } elseif ((strpos($pCoordinateString,':') !== false) || (strpos($pCoordinateString,',') !== false)) { throw new Exception('Cell coordinate string can not be a range of cells.'); diff --git a/changelog.txt b/changelog.txt index 98e2a6f9..9b709624 100644 --- a/changelog.txt +++ b/changelog.txt @@ -33,6 +33,7 @@ Fixed in SVN: - Bugfix: (MBaker) Work item 14973 - PHPExcel_Cell::isInRange() incorrect results - offset by one column - Bugfix: (MBaker) Treat CodePage of 0 as CP1251 (for .xls files written by applications that don't set the CodePage correctly, such as Apple Numbers) - Bugfix: (MB) Work item 11583 - Need method for removing autoFilter +- Bugfix: (MBaker) Work item 15029 - coordinateFromString throws exception for rows greater than 99,999 2010-12-10 (v1.7.5):