PHP/Mapscript 4.8.3 crash

Bart van den Eijnden (OSGIS) bartvde at XS4ALL.NL
Fri Apr 7 09:30:31 EDT 2006


Hi Assefa,

I have attached my testcase in bug report 1745, hope you can reproduce:

http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1745

Best regards,
Bart

Yewondwossen Assefa wrote:

> Bart,
>
>  Could not get the crah using my tests data with 4.8.3 and current cvs.
>  I have a pretty simple query template ([shpxy xh="(" yf=")"], set on 
> the layer that is queried.
>  If there is a way for me to reproduce it wuth you set of data/query, 
> I can look into it.
>
> Layer,
>
> Bart van den Eijnden (OSGIS) wrote:
>
>> Hi list,
>>
>> I am getting a crash of php on Windows when trying to set the 
>> template of a class after processQueryTemplate has been called.
>>
>> If I leave out the processQueryTemplate call the line which sets the 
>> class template does not crash.
>>
>> Is anybody able to confirm this behaviour? Am I trying something 
>> "illegal"? Btw the code comes from Chameleon's MapTips widget.
>>
>> <?php
>>
>> dl('php_mapscript_48.dll');
>>
>> $oMap = ms_newmapobj(dirname(__FILE__)."/test.map");
>> $oLayer = $oMap->getLayerByName('werkzaamheden');
>>
>> @$oLayer->queryByRect( $oMap->extent );
>> $szCoords = $oMap->processQueryTemplate( array(), false );
>>
>> for ($i=0; $i<$oLayer->numclasses; $i++)
>> {
>>  $oClass = $oLayer->getClass( $i );
>>  // crashes here if processQueryTemplate is called before
>>  $oClass->set( "template", 'blank.html' );
>> }
>>
>> ?>
>>
>> Best regards,
>> Bart
>>
>
>


-- 
Bart van den Eijnden
OSGIS, Open Source GIS
http://www.osgis.nl



More information about the mapserver-dev mailing list