diff options
-rw-r--r-- | CHANGES.current | 3 | ||||
-rw-r--r-- | Source/Modules/php.cxx | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/CHANGES.current b/CHANGES.current index 0b1d7ccc7..05d533c17 100644 --- a/CHANGES.current +++ b/CHANGES.current @@ -5,6 +5,9 @@ See the RELEASENOTES file for a summary of changes in each release. Version 2.0.10 (in progress) ============================ +2013-01-08: olly + [PHP] Fix to work with a ZTS build of PHP (broken in 2.0.7). + 2013-01-07: olly Fix bashism in configure, introduced in 2.0.9. diff --git a/Source/Modules/php.cxx b/Source/Modules/php.cxx index 5c3ce283e..9b68d072c 100644 --- a/Source/Modules/php.cxx +++ b/Source/Modules/php.cxx @@ -418,6 +418,7 @@ public: Append(s_header, "static void SWIG_FAIL() __attribute__ ((__noreturn__));\n"); Append(s_header, "#endif\n\n"); Append(s_header, "static void SWIG_FAIL() {\n"); + Append(s_header, " TSRMLS_FETCH();\n"); Append(s_header, " zend_error(SWIG_ErrorCode(), \"%s\", SWIG_ErrorMsg());\n"); // zend_error() should never return with the parameters we pass, but if it // does, we really don't want to let SWIG_FAIL() return. This also avoids |