[mapserver-users] Problem with Mapserver 6.0.1 and PHP Mapscript

Alan Boudreault aboudreault at mapgears.com
Thu Feb 16 09:03:03 PST 2012


Hi Nick,

It is normal that the var_dump and/or print_r returns nothing. IIRC, 
those functions haven't been implemented in the extension (yet?). 
However, you should not be able to set/get a properties that is not a 
member of the mapObj. I guess you map is really an empty object. Enable 
error log and debug in your mapfile to see if something is wrong.. 
though an error is normally thrown when the mapfile cannot be loaded.

Alan

On 12-02-16 11:25 AM, Nick Friedrich wrote:
> Hello,
>
> I have a problem with Mapserver 6.0.1 and PHP Mapscript.
> Until now I am working with Mapserver 5.2.
>
> For testing purposes I created a minimal mapfile, just with name and
> symbolset. The symbolset file contains just one simple filled circle.
> When I create a mapObj (tried old an new constructors) I get an empty
> Object (var_dump or print_r). Non-object members like name or status are
> still there, when accessing them directly.
> Set methods are also working for non-object members. Members, that are
> objects themselves, like projection, are not accessible.
>
> I have no clue what could be the problem. The system configuration is
> the same as when using Mapserver 5.2.
> PHP version is 5.2.17 (CGI). Version of other libraries (libpng, libgd,
> ...) meet the requirements.
>
> Thanks for your help,
> Nick
>
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users


-- 
Alan Boudreault
http://www.mapgears.com/


More information about the mapserver-users mailing list