don't do it too quickly: I think this "bug" shouldn't appear with the other calls that you removed for MS 6... Or most of them...
The SHP export is very particular: - create the shapeFileObj (- create the DBF) - zip files - PHP destroy the shapeFileObj But the changes are committed in shapeFileObj only when it is freed / unset. So if we free and unset the shapeFileObj before zipping files, it's OK. Last point: I've tried with only "free" call (and no "unset") and it doesn't works... Thomas Le 30/08/2011 18:17, Armin Burger a écrit : > Thomas > > in my reckless thinking I replaced all free() calls, not noticing that > in MS 6 some were still existing. Probably they kept the ones that are > really needed and had an effect (the ones I tested with long running > loops did not increase any memory). > > I will check which of the replaced free() methods are still existing in > MS 6 and chnage them back. > > Armin > > On 30/08/2011 12:54, Thomas RAFFIN wrote: >> Well, Pedro you're right: something is different in my development >> version... >> >> I've just committed the few changes. If you need a quick update, just >> change the line in plugins/export/export.shp.php : >> PMCommon::freeMsObj($shpFile); >> with this one: >> $shpFile->free();unset($shpFile); >> >> Le 30/08/2011 08:37, Thomas RAFFIN a écrit : >>> Hi, >>> >>> I've already use MS 6 and pmapper 4.2 or dev version, and it's fine for >>> me. I will try to find with the official pmapper 4.2 >>> >>> Thomas >>> >>> Le 29/08/2011 20:34, Pedro Venâncio a écrit : >>>> Hello everyone, >>>> >>>> Has anyone managed to get the plugin exporting to SHP with Mapserver 6 and >>>> pMapper 4.2.0? >>>> >>>> I see that there were some changes to the export plugin from 4.1.1 to >>>> 4.2.0, to support Mapserver 6 and PostGIS layers, however, in my tests on >>>> a Ubuntu machine it is not working properly, the shapes out are corrupted >>>> (as you can see in the example I've put on my previous post). >>>> >>>> Thank you! >>>> >>>> Best regards, >>>> Pedro Venâncio >>>> >>>> > ------------------------------------------------------------------------------ > Special Offer -- Download ArcSight Logger for FREE! > Finally, a world-class log management solution at an even better > price-free! And you'll get a free "Love Thy Logs" t-shirt when you > download Logger. Secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsisghtdev2dev > _______________________________________________ > pmapper-users mailing list > pmapper-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/pmapper-users > > ------------------------------------------------------------------------------ Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a free "Love Thy Logs" t-shirt when you download Logger. Secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsisghtdev2dev _______________________________________________ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users