From 2e0651f37868b9f0f2ff48a051609f2c3c49afab Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Tue, 25 Mar 2003 15:35:08 +0000 Subject: Added missing initialization, which causes AP2 to crash on startup in ZTS. --- sapi/apache2handler/php_functions.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sapi/apache2handler/php_functions.c') diff --git a/sapi/apache2handler/php_functions.c b/sapi/apache2handler/php_functions.c index 66ff4892f5..095845cd62 100644 --- a/sapi/apache2handler/php_functions.c +++ b/sapi/apache2handler/php_functions.c @@ -480,6 +480,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; } -- cgit v1.2.1