[mapserver-commits] r8445 - in trunk/mapserver: . mapscript/php3
svn at osgeo.org
svn at osgeo.org
Wed Jan 21 11:32:09 EST 2009
Author: aboudreault
Date: 2009-01-21 11:32:09 -0500 (Wed, 21 Jan 2009)
New Revision: 8445
Modified:
trunk/mapserver/HISTORY.TXT
trunk/mapserver/mapscript/php3/php_mapscript_util.c
Log:
Fixed "internal PHP GC memory leaks" in PHP/MapScript (#2767)
Modified: trunk/mapserver/HISTORY.TXT
===================================================================
--- trunk/mapserver/HISTORY.TXT 2009-01-21 02:32:17 UTC (rev 8444)
+++ trunk/mapserver/HISTORY.TXT 2009-01-21 16:32:09 UTC (rev 8445)
@@ -12,6 +12,8 @@
Current Version (5.3-dev, SVN trunk):
------------------------------------
+- Fixed "internal PHP GC memory leaks" in PHP/MapScript (#2767)
+
- Fixed bug with wms layer group hierarchy (#2810)
- Added updateFromString() methods for several objects in PHP/Mapscript (#2298)
Modified: trunk/mapserver/mapscript/php3/php_mapscript_util.c
===================================================================
--- trunk/mapserver/mapscript/php3/php_mapscript_util.c 2009-01-21 02:32:17 UTC (rev 8444)
+++ trunk/mapserver/mapscript/php3/php_mapscript_util.c 2009-01-21 16:32:09 UTC (rev 8445)
@@ -409,7 +409,10 @@
php3_error(err_type, "Unable to add %s property", property_name);
return -1;
}
-
+#if PHP_MAJOR_VERSION >= 5
+ else
+ ZVAL_DELREF(pObjToAdd);
+#endif
return 0;
}
More information about the mapserver-commits
mailing list