From ea8382efcd92acf52f4f42992873d64330e54598 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Tue, 5 Jan 2016 09:09:57 +0100 Subject: [PATCH] Do not use case insensitive char for symbols lookup MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit These only add performance penatly at no benefit. Signed-off-by: Michal Čihař --- libraries/gis/GISGeometrycollection.php | 12 ++++++------ libraries/gis/GISVisualization.php | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/libraries/gis/GISGeometrycollection.php b/libraries/gis/GISGeometrycollection.php index ab2c627f91..932f0ff208 100644 --- a/libraries/gis/GISGeometrycollection.php +++ b/libraries/gis/GISGeometrycollection.php @@ -69,7 +69,7 @@ class GISGeometrycollection extends GISGeometry $sub_parts = $this->_explodeGeomCol($goem_col); foreach ($sub_parts as $sub_part) { - $type_pos = mb_stripos($sub_part, '('); + $type_pos = mb_strpos($sub_part, '('); if ($type_pos === false) { continue; } @@ -131,7 +131,7 @@ class GISGeometrycollection extends GISGeometry $sub_parts = $this->_explodeGeomCol($goem_col); foreach ($sub_parts as $sub_part) { - $type_pos = mb_stripos($sub_part, '('); + $type_pos = mb_strpos($sub_part, '('); if ($type_pos === false) { continue; } @@ -178,7 +178,7 @@ class GISGeometrycollection extends GISGeometry $sub_parts = $this->_explodeGeomCol($goem_col); foreach ($sub_parts as $sub_part) { - $type_pos = mb_stripos($sub_part, '('); + $type_pos = mb_strpos($sub_part, '('); if ($type_pos === false) { continue; } @@ -226,7 +226,7 @@ class GISGeometrycollection extends GISGeometry $sub_parts = $this->_explodeGeomCol($goem_col); foreach ($sub_parts as $sub_part) { - $type_pos = mb_stripos($sub_part, '('); + $type_pos = mb_strpos($sub_part, '('); if ($type_pos === false) { continue; } @@ -275,7 +275,7 @@ class GISGeometrycollection extends GISGeometry $sub_parts = $this->_explodeGeomCol($goem_col); foreach ($sub_parts as $sub_part) { - $type_pos = mb_stripos($sub_part, '('); + $type_pos = mb_strpos($sub_part, '('); if ($type_pos === false) { continue; } @@ -398,7 +398,7 @@ class GISGeometrycollection extends GISGeometry $i = 0; foreach ($sub_parts as $sub_part) { - $type_pos = mb_stripos($sub_part, '('); + $type_pos = mb_strpos($sub_part, '('); if ($type_pos === false) { continue; } diff --git a/libraries/gis/GISVisualization.php b/libraries/gis/GISVisualization.php index e35dfe06b9..9b41c15612 100644 --- a/libraries/gis/GISVisualization.php +++ b/libraries/gis/GISVisualization.php @@ -546,7 +546,7 @@ class GISVisualization // Figure out the data type $ref_data = $row[$this->_settings['spatialColumn']]; - $type_pos = mb_stripos($ref_data, '('); + $type_pos = mb_strpos($ref_data, '('); if ($type_pos === false) { continue; } @@ -635,7 +635,7 @@ class GISVisualization // Figure out the data type $ref_data = $row[$this->_settings['spatialColumn']]; - $type_pos = mb_stripos($ref_data, '('); + $type_pos = mb_strpos($ref_data, '('); if ($type_pos === false) { continue; }