summaryrefslogtreecommitdiff
path: root/sapi/apache2handler/php_functions.c
diff options
context:
space:
mode:
Diffstat (limited to 'sapi/apache2handler/php_functions.c')
-rw-r--r--sapi/apache2handler/php_functions.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sapi/apache2handler/php_functions.c b/sapi/apache2handler/php_functions.c
index 6dfba7cd0d..8fcac82bd2 100644
--- a/sapi/apache2handler/php_functions.c
+++ b/sapi/apache2handler/php_functions.c
@@ -478,6 +478,9 @@ PHP_INI_END()
static PHP_MINIT_FUNCTION(apache)
{
+#ifdef ZTS
+ ts_allocate_id(&php_apache2_info_id, sizeof(php_apache2_info_struct), (ts_allocate_ctor) NULL, NULL);
+#endif
REGISTER_INI_ENTRIES();
return SUCCESS;
}