[mapserver-users] MapScript and PHP 4.0.6
Daniel Morissette
morissette at dmsolutions.ca
Fri Jul 20 07:29:39 PDT 2001
Hi,
A fix for this MapScript vs PHP4.0.6 problem has been committed to the
MapServer CVS for MapServer 3.5.
Things seem to be working fine for us now with PHP 4.0.6 and MapScript,
so please let us know if you notice any more problems with this
combination.
BTW, this fix in the latest MapServer 3.5 may result in (minor) memory
leaks with versions older than PHP4.0.6 since our problem was a
side-effect of a memory leak fix in PHP4.0.6. So it is recommended that
if you compile/install the latest MapScript 3.5 from CVS then you also
upgrade to PHP 4.0.6 Note that the PHP3 version (does anyone still use
it anyway?) was not affected at all by these problems.
And BTW, No we won't publish a new 3.4 release with this fixed, but if
you want to upgrade to PHP4.0.6 with MapScript 3.4 then you can add a
call to zend_list_addref() after the add_property_resource() call in
phpms_object_init() around line 594 in php_mapscript_util.c:
add_property_resource(return_value, "_handle_", handle_id);
zend_list_addref(handle_id);
Best Regards,
--
------------------------------------------------------------
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.
Rob Martinson wrote:
>
> Daniel,
>
> Thank you thank you! Consider this a confirmation to problems with PHP
> 4.0.6. I backtracked and rebuilt with source from 4.0.5 and I have zero
> problems! The issues with losing the handle of the map when dynamically
> generating a map from database contents are gone. I can now reliably (it
> seems) create a map on a blank .map file using mapscript only to set
> map/layer/class properties and add additional layers.
>
> This works now with the CVS version of Mapserver, Gdal and PHP 4.0.5 on
> my end.
>
> Rob Martinson
> Nichebox - http://www.nichebox.com
> Development - http://dev.nichebox.com
>
> > -----Original Message-----
> > From: owner-mapserver-users at lists.gis.umn.edu
> > [mailto:owner-mapserver-users at lists.gis.umn.edu] On Behalf Of
> > Daniel Morissette
> > Sent: Tuesday, July 17, 2001 7:27 PM
> > To: mapserver-users
> > Subject: [mapserver-users] MapScript and PHP 4.0.6
> >
> >
> > Hi Everyone,
> >
> > There seems to be an incompatibility between the
> > PHP/MapScript module and PHP 4.0.6 which causes crashes or
> > odd error situations, most of the time with the
> > map->getLayer() call. This happens on both Windows and Unix.
> >
> > We are going to look into this, but in the meantime, you
> > should avoid using the PHP/MapScript module with PHP 4.0.6
> > ... you can use PHP 4.0.4pl1 or 4.0.5 which were both working fine.
> >
> > Note that backtracking to older versions of MapServers such
> > as 3.4 or 3.3.011 with PHP 4.0.6 is not likely to resolve the problem.
> >
> > --
> > ------------------------------------------------------------
> > 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