[fusion-commits] r1877 - trunk/layers/MapGuide/php
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Wed Jul 22 12:56:28 EDT 2009
Author: pagameba
Date: 2009-07-22 12:56:27 -0400 (Wed, 22 Jul 2009)
New Revision: 1877
Modified:
trunk/layers/MapGuide/php/Query.php
Log:
re #229, close more feature readers.
Modified: trunk/layers/MapGuide/php/Query.php
===================================================================
--- trunk/layers/MapGuide/php/Query.php 2009-07-22 15:57:42 UTC (rev 1876)
+++ trunk/layers/MapGuide/php/Query.php 2009-07-22 16:56:27 UTC (rev 1877)
@@ -257,6 +257,7 @@
$properties = BuildSelectionArray($featureReader, $layerName, $properties,
$bComputedProperties,
$srsLayer, $bNeedsTransform, $layerObj);
+ $featureReader->Close();
}
} catch (MgObjectNotFoundException $onfe) {
//skip layers not in the map?
@@ -264,11 +265,17 @@
echo "ERROR: " . $onfe->GetMessage() . "\n";
echo $onfe->GetDetails() . "\n";
echo $onfe->GetStackTrace() . "\n";
+ if ($featureReader) {
+ $featureReader->Close();
+ }
} catch (MgException $e) {
//what should we do with general exceptions?
echo "/*general exception:";
echo "ERROR: " . $e->GetMessage();
echo $e->GetDetails() . "*/";
+ if ($featureReader) {
+ $featureReader->Close();
+ }
}
}
More information about the fusion-commits
mailing list