[mapserver-commits] r10143 - trunk/mapserver/mapscript/php
svn at osgeo.org
svn at osgeo.org
Fri May 7 14:06:34 EDT 2010
Author: assefa
Date: 2010-05-07 14:06:33 -0400 (Fri, 07 May 2010)
New Revision: 10143
Modified:
trunk/mapserver/mapscript/php/mapscript_error.c
Log:
Correct windows issues with error functions (#3452)
Modified: trunk/mapserver/mapscript/php/mapscript_error.c
===================================================================
--- trunk/mapserver/mapscript/php/mapscript_error.c 2010-05-07 17:52:11 UTC (rev 10142)
+++ trunk/mapserver/mapscript/php/mapscript_error.c 2010-05-07 18:06:33 UTC (rev 10143)
@@ -43,7 +43,11 @@
{
va_list args;
char message[MAX_EXCEPTION_MSG];
+#ifdef ZTS
+ va_start(args, TSRMLS_C);
+#else
va_start(args, format);
+#endif
vsprintf(message, format, args);
va_end(args);
return zend_throw_exception(mapscript_ce_mapscriptexception, message, 0 TSRMLS_CC);
@@ -65,7 +69,11 @@
ms_error = ms_error->next;
}
+#ifdef ZTS
+ va_start(args, TSRMLS_C);
+#else
va_start(args, format);
+#endif
vsprintf(message, format, args);
va_end(args);
return mapscript_throw_exception(message TSRMLS_CC);
@@ -75,7 +83,11 @@
{
va_list args;
char message[MAX_EXCEPTION_MSG];
+#ifdef ZTS
+ va_start(args, TSRMLS_C);
+#else
va_start(args, format);
+#endif
vsprintf(message, format, args);
va_end(args);
php_error_docref(NULL TSRMLS_CC, error_type, "%s,", message);
More information about the mapserver-commits
mailing list