[mapserver-dev] PHP Mapscript Segmentation fault setting rgb in
styleObj
stefano bonnin
stefano.bonnin at comai.to
Mon Jan 2 07:40:35 EST 2012
Hi all,
I get a segmentation fault with php mapscript (mapserver 6.0.0 & 6.0.2)
when I try to set the rgb color in a styleObj.
My code looks like this:
$gpoMap = @ms_newmapObj("foo.map");
...
$style = ms_newStyleObj($class);
...
$style->outlinecolor->setRGB($rs,$gs,$bs); //seg fault here
....
$gpoMap->save("/store/cartografia/2008/bar.map");
Is this a know mapserver mapscript 6.x bug or my mapscript could have some
library issues?
Another strange issue: print_r on new 6.x objects prints always an "empty"
object. Why?
Mapserver compiled on Linux Debian Ubuntu with php:
PHP 5.2.10-2ubuntu6.10 with Suhosin-Patch 0.9.7 (cgi-fcgi) (built: May 2
2011 23:18:54)
Thanks in advance.
Stefano
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20120102/e9ac2845/attachment.html
More information about the mapserver-dev
mailing list