[fusion-dev] RE: FeatureReader not being closed in MapGuide Query.php?

Jason Birch Jason.Birch at nanaimo.ca
Mon Mar 23 16:29:55 EDT 2009


Should I be entering tickets for these?  I didn't expect to find so many that I had questions about.

Another in: 
 trunk/widgets/SelectWithin/SelectWithin.php

On line 109, it appears that an MgFeatureReader called $featureReader is opened but not closed.

Jason

-----Original Message-----
From: fusion-dev-bounces at lists.osgeo.org [mailto:fusion-dev-bounces at lists.osgeo.org] On Behalf Of Jason Birch
Sent: March-23-09 1:23 PM
To: fusion-dev at lists.osgeo.org
Subject: [fusion-dev] RE: FeatureReader not being closed in MapGuide Query.php?

Similarly...

It looks to me that in the file
  trunk/widgets/Search/Search.php

The MgFeatureReader called $features is only closed in the exception handling logic, not in the normal code stream.

Jason

-----Original Message-----
From: Jason Birch
Sent: March-23-09 1:14 PM
To: fusion-dev at lists.osgeo.org
Subject: [fusion-dev] FeatureReader not being closed in MapGuide Query.php?

Could someone check my logic on this one please?

I believe that for:
  trunk/layers/MapGuide/php/Query.php

There is an MgFeatureReader being opened on line 199 which is being closed on line 268.

However, on line 261, I believe that a second MgFeatureReader is being opened using the same variable name without closing the initial MgFeatureReader first, and that this second reader is never closed.

Thoughts?  Time for an eye exam?

Thanks,
Jason
_______________________________________________
fusion-dev mailing list
fusion-dev at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/fusion-dev


More information about the fusion-dev mailing list