From bb58af5738da6c2eef6159cbba90438f78c05d08 Mon Sep 17 00:00:00 2001
From: "Meredith L. Patterson" <mlp@thesmartpolitenerd.com>
Date: Sat, 21 Dec 2013 16:08:28 +0100
Subject: [PATCH] ok, outside of the init block then

---
 src/bindings/php/hammer.i | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/bindings/php/hammer.i b/src/bindings/php/hammer.i
index 2e19d4ea..318ec3a4 100644
--- a/src/bindings/php/hammer.i
+++ b/src/bindings/php/hammer.i
@@ -1,4 +1,7 @@
 %module hammer;
+#ifdef ZTS
+  void ***tsrm_ls;
+#endif
 %include "exception.i";
 %{
 #include "allocator.h"
@@ -11,9 +14,6 @@
   %}
 
 %init %{
-#ifdef ZTS
-  void ***tsrm_ls;
-#endif
   h_tt_php = h_allocate_token_type("com.upstandinghackers.hammer.php");
   %}
 
-- 
GitLab