mapserver svn issues

Yewondwossen Assefa assefa at DMSOLUTIONS.CA
Thu May 31 10:32:20 EDT 2007


Thanks. I have commited the fix. Same type of errors were also corrected 
when creating new class and styles

Later,

> 
> 2.) The php mapscript ms_newLayerObj() function shows an error "Fatal 
> error: [MapServer Error]: initLayer(): Layer is null in /script.php"
> 
> The patch will fix the problem.
> 
> Index: mapserver-4.99/mapscript/php3/mapscript_i.c
> ===================================================================
> --- mapserver-4.99/mapscript/php3/mapscript_i.c    (revision 6159)
> +++ mapserver-4.99/mapscript/php3/mapscript_i.c    (working copy)
> @@ -462,6 +462,10 @@
>      if(map->numlayers == MS_MAXLAYERS) // no room
>        return(NULL);
> 
> +    map->layers[map->numlayers] = (layerObj*)malloc(sizeof(layerObj));
> +    if(map->layers[map->numlayers] == NULL)
> +      return(NULL);
> +
>      if(initLayer((map->layers[map->numlayers]), map) == -1)
>        return(NULL);
> 
> 
> 
> regards, Matt
> 


-- 
----------------------------------------------------------------
Assefa Yewondwossen
Software Analyst

Email: assefa at dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925
----------------------------------------------------------------



More information about the mapserver-dev mailing list