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

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


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


More information about the fusion-dev mailing list