From 838bf54aa047949dd76c3f654110d4f4976ce13d Mon Sep 17 00:00:00 2001 From: "Meredith L. Patterson" <mlp@thesmartpolitenerd.com> Date: Sat, 21 Dec 2013 16:06:12 +0100 Subject: [PATCH] what happens if we declare tsrm_ls explicitly at global scope? --- src/bindings/php/hammer.i | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/bindings/php/hammer.i b/src/bindings/php/hammer.i index 60890209..2e19d4ea 100644 --- a/src/bindings/php/hammer.i +++ b/src/bindings/php/hammer.i @@ -11,7 +11,9 @@ %} %init %{ - TSRMLS_FETCH(); +#ifdef ZTS + void ***tsrm_ls; +#endif h_tt_php = h_allocate_token_type("com.upstandinghackers.hammer.php"); %} -- GitLab