summaryrefslogtreecommitdiff
path: root/php_suhosin7.h
diff options
context:
space:
mode:
Diffstat (limited to 'php_suhosin7.h')
-rw-r--r--php_suhosin7.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/php_suhosin7.h b/php_suhosin7.h
index 5024790..cbde402 100644
--- a/php_suhosin7.h
+++ b/php_suhosin7.h
@@ -37,6 +37,9 @@ extern zend_module_entry suhosin7_module_entry;
37# define SUHOSIN7_API 37# define SUHOSIN7_API
38#endif 38#endif
39 39
40#ifdef ZTS
41#include "TSRM.h"
42#endif
40 43
41/* -------------- */ 44/* -------------- */
42 45
@@ -323,12 +326,12 @@ ZEND_BEGIN_MODULE_GLOBALS(suhosin7)
323 326
324ZEND_END_MODULE_GLOBALS(suhosin7) 327ZEND_END_MODULE_GLOBALS(suhosin7)
325 328
326/* Always refer to the globals in your function as SUHOSIN7_G(variable).
327 You are encouraged to rename these macros something shorter, see
328 examples in any other php module directory.
329*/
330#define SUHOSIN7_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(suhosin7, v) 329#define SUHOSIN7_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(suhosin7, v)
331 330
331#if defined(ZTS) && defined(COMPILE_DL_SUHOSIN7)
332ZEND_TSRMLS_CACHE_EXTERN();
333#endif
334
332 335
333/* Error Constants */ 336/* Error Constants */
334#ifndef S_MEMORY 337#ifndef S_MEMORY
@@ -417,8 +420,6 @@ char *suhosin_strcasestr(char *haystack, char *needle)
417#define suhosin_strcasestr(a, b) strcasestr(a, b) 420#define suhosin_strcasestr(a, b) strcasestr(a, b)
418#endif 421#endif
419 422
420/* {{{ suhosin_strcasestr */
421
422 423
423/* 424/*
424 * Local variables: 425 * Local variables: