[mapserver-users] error in php_mapscript with prepareImage

Daniel Morissette morissette at dmsolutions.ca
Thu Apr 19 08:39:32 EDT 2001


Gert-Jan van der Weijden wrote:
> 
> When I try to run my php_mapscript application
> I get the following error:
> 
> Fatal error: Call to undefined function: prepareimage() in
> /project/webmap/www/pag/drawmap.php on line 291
> 

Hummm... the function prepareImage() was implemented but was not
registered as a mapObj method.  It was also the case for
prepareQuery()... I'll fix this for v.3.5.

If you want to patch your own copy, add the following lines in the
php_map_class_functions[] array definition, around line 400 in
php_mapscript.c:

    {"prepareimage",    php3_ms_map_prepareImage,       NULL},
    {"preparequery",    php3_ms_map_prepareQuery,       NULL},

-- 
------------------------------------------------------------
 Daniel Morissette               morissette at dmsolutions.ca
 DM Solutions Group              http://www.dmsolutions.ca/
------------------------------------------------------------
  Don't put for tomorrow what you can do today, because if 
      you enjoy it today you can do it again tomorrow.



More information about the mapserver-users mailing list