[fusion-commits] r2941 - trunk/widgets/SelectWithin

svn_fusion at osgeo.org svn_fusion at osgeo.org
Wed May 4 10:06:05 PDT 2016


Author: jng
Date: 2016-05-04 10:06:05 -0700 (Wed, 04 May 2016)
New Revision: 2941

Modified:
   trunk/widgets/SelectWithin/SelectWithin.php
Log:
#638: Fix "headers already sent" PHP error on large selections. Patch by morkl, reviewed and verified by me.

Modified: trunk/widgets/SelectWithin/SelectWithin.php
===================================================================
--- trunk/widgets/SelectWithin/SelectWithin.php	2016-05-04 16:54:12 UTC (rev 2940)
+++ trunk/widgets/SelectWithin/SelectWithin.php	2016-05-04 17:06:05 UTC (rev 2941)
@@ -42,6 +42,7 @@
   GetRequestParameters();
 
   try {
+    ob_start();
     $featureSrvc = $siteConnection->CreateService(MgServiceType::FeatureService);
     $renderingSrvc = $siteConnection->CreateService(MgServiceType::RenderingService);
 
@@ -132,10 +133,13 @@
 
     //return XML
     header("Content-type: text/xml");
+    ob_end_flush();
   } catch(MgException $e) {
+    ob_end_clean();
     echo "\nException: " . $e->GetDetails();
     return;
   } catch(Exception $ne) {
+    ob_end_clean();
     return;
   }
 



More information about the fusion-commits mailing list