<div>Hi all,</div><div><br></div><div>I get a segmentation fault with php mapscript (mapserver 6.0.0 &amp; 6.0.2) when I try to set the rgb color in a styleObj.</div><div>My code looks like this:</div>
<div><br></div><div>$gpoMap = @ms_newmapObj(&quot;foo.map&quot;);</div><div>...</div><div>$style = ms_newStyleObj($class);</div><div>...</div><div>$style-&gt;outlinecolor-&gt;setRGB($rs,$gs,$bs); //seg fault here</div>
<div>....</div><div>$gpoMap-&gt;save(&quot;/store/cartografia/2008/bar.map&quot;);</div><div><br></div><div>Is this a know mapserver mapscript 6.x bug or my mapscript could have some library issues?</div>
<div>Another strange issue: print_r on new 6.x objects prints always an &quot;empty&quot; object. Why?</div><br><div>Mapserver compiled on Linux Debian Ubuntu with php:</div><div>PHP 5.2.10-2ubuntu6.10 with Suhosin-Patch 0.9.7 (cgi-fcgi) (built: May  2 2011 23:18:54)</div>


<div><br></div><div>Thanks in advance.</div><div><br></div>Stefano