[MS4W-Users] mapscript SetProcessing function missing in MS4W5?
Jeff McKenna
jmckenna at gatewaygeomatics.com
Tue Sep 26 17:20:59 UTC 2023
Hi Julian,
Thanks for testing and reporting back.
You can follow along the MS4W 5.0 Migration Guide notes (
https://ms4w.com/trac/wiki/MigrationGuide5.x ), where there it states
that your new reference for PHP MapScript is always at
https://mapserver.org/mapscript/mapscript.html which states that the
LAYER's setProcessingKey() function should be used, such as:
$oLayer->setProcessingKey("CLOSE_CONNECTION", "DEFER");
You can also see a more full example in the MS4W Migration Guide at
https://ms4w.com/trac/wiki/MigrationGuide5.x#PHP
thanks,
-jeff
--
Thank-you for using MS4W.
"MS4W: open doors as well as windows"
On 2023-09-26 2:07 p.m., Julian Winter via MS4W-Users wrote:
> Jeff,
>
> I was testing the MS4W v5 Beta2 in prep for when the official release
> comes out and it seems like the SetProcessing method on layerObj in
> mapscript is missing (it’s still listed in the PHP mapscript documentation).
>
> *Fatal error*: Uncaught Error: Call to undefined method
> layerObj::setProcessing()
>
> Was this an oversight or was it actually removed and the documentation
> is in error?
>
> I use $layerObj->setProcessing("CLOSE_CONNECTION=DEFER"); for MySQL
> connections. The map still works without this call, but I assume
> slightly less efficiently if the connection is closed/opened for each layer.
>
> Thanks,
>
> Julian
>
>
> _______________________________________________
> MS4W-Users mailing list
> MS4W-Users at lists.ms4w.com
> https://lists.ms4w.com/mailman/listinfo/ms4w-users
--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/
More information about the MS4W-Users
mailing list