Could http://trac.osgeo.org/mapserver/attachment/ticket/2903/mapserver.ticket_2903.patch ba applied to branch-5-6 ? BTW: the problem seems to be fixed in 6.0, so the ticket can be closed. Peter Hopfgartner R3 GIS Srl - GmbH http://www.r3-gis.com