[mapguide-commits] r4672 - in sandbox/adsk/2.2gp: Oem/SWIGEx/Lib/php5 Oem/SWIGEx/Source/Modules Oem/SWIGEx/Win32 Web/src/MapGuideApi

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Wed Mar 17 16:00:50 EDT 2010


Author: brucedechant
Date: 2010-03-17 16:00:50 -0400 (Wed, 17 Mar 2010)
New Revision: 4672

Modified:
   sandbox/adsk/2.2gp/Oem/SWIGEx/Lib/php5/php5run.swg
   sandbox/adsk/2.2gp/Oem/SWIGEx/Source/Modules/php5.cxx
   sandbox/adsk/2.2gp/Oem/SWIGEx/Win32/Swig.exe
   sandbox/adsk/2.2gp/Web/src/MapGuideApi/MapGuideApiGen.xml
Log:
Update to support PHP 5.3

Notes:
- Fixed exceptions not being thrown in PHP by updating SWIG to generate PHP 5.3 code
- Added missing exception classes


Modified: sandbox/adsk/2.2gp/Oem/SWIGEx/Lib/php5/php5run.swg
===================================================================
--- sandbox/adsk/2.2gp/Oem/SWIGEx/Lib/php5/php5run.swg	2010-03-17 08:21:58 UTC (rev 4671)
+++ sandbox/adsk/2.2gp/Oem/SWIGEx/Lib/php5/php5run.swg	2010-03-17 20:00:50 UTC (rev 4672)
@@ -11,6 +11,7 @@
 #include "zend.h"
 #include "zend_API.h"
 #include "php.h"
+#include "zend_exceptions.h"
 
 #ifdef _WIN32
 #include <typeinfo.h>

Modified: sandbox/adsk/2.2gp/Oem/SWIGEx/Source/Modules/php5.cxx
===================================================================
--- sandbox/adsk/2.2gp/Oem/SWIGEx/Source/Modules/php5.cxx	2010-03-17 08:21:58 UTC (rev 4671)
+++ sandbox/adsk/2.2gp/Oem/SWIGEx/Source/Modules/php5.cxx	2010-03-17 20:00:50 UTC (rev 4672)
@@ -329,6 +329,7 @@
       Printf(s_wrappers, "\t\tobject_init_ex(obj,ptr_ce_swig_%s);\n", e->name.c_str());
       Printf(s_wrappers, "\t\tadd_property_zval(obj,\"_cPtr\",_cPtr);\n");
       Printf(s_wrappers, "\t\tEG(exception) = obj;\n");
+      Printf(s_wrappers, "\t\tzend_throw_exception_object(EG(exception) TSRMLS_CC);\n");
 
 	  Printf(s_wrappers, "\t}\n");
   }
@@ -2055,7 +2056,7 @@
         Printf(s_oinit,"if (! (ptr_ce_swig_%s=zend_register_internal_class_ex(&ce_swig_%s,ptr_ce_swig_%s,NULL TSRMLS_CC))) zend_error(E_ERROR,\"Error registering wrapper for class %s\");\n",
           shadow_classname,shadow_classname,GetChar(base.item, "sym:name"), shadow_classname);
       } else {
-        Printf(s_oinit,"if (! (ptr_ce_swig_%s=zend_register_internal_class_ex(&ce_swig_%s,NULL,NULL TSRMLS_CC))) zend_error(E_ERROR,\"Error registering wrapper for class %s\");\n",
+        Printf(s_oinit,"if (! (ptr_ce_swig_%s=zend_register_internal_class_ex(&ce_swig_%s,zend_exception_get_default(TSRMLS_C),NULL TSRMLS_CC))) zend_error(E_ERROR,\"Error registering wrapper for class %s\");\n",
           shadow_classname,shadow_classname, shadow_classname);
       }
 	  if(enableRuntimeTypeChecking)

Modified: sandbox/adsk/2.2gp/Oem/SWIGEx/Win32/Swig.exe
===================================================================
(Binary files differ)

Modified: sandbox/adsk/2.2gp/Web/src/MapGuideApi/MapGuideApiGen.xml
===================================================================
--- sandbox/adsk/2.2gp/Web/src/MapGuideApi/MapGuideApiGen.xml	2010-03-17 08:21:58 UTC (rev 4671)
+++ sandbox/adsk/2.2gp/Web/src/MapGuideApi/MapGuideApiGen.xml	2010-03-17 20:00:50 UTC (rev 4672)
@@ -241,6 +241,8 @@
 
     <Header path="../../../Common/Geometry/Exception/CoordinateSystemComputationFailedException.h" />
     <Header path="../../../Common/Geometry/Exception/CoordinateSystemConversionFailedException.h" />
+    <Header path="../../../Common/Geometry/Exception/CoordinateSystemInitializationFailedException.h" />
+    <Header path="../../../Common/Geometry/Exception/CoordinateSystemLoadFailedException.h" />
     <Header path="../../../Common/Geometry/Exception/CoordinateSystemMeasureFailedException.h" />
     <Header path="../../../Common/Geometry/Exception/CoordinateSystemTransformFailedException.h" />
     <Header path="../../../Common/Geometry/Exception/GeometryException.h" />



More information about the mapguide-commits mailing list