]> granicus.if.org Git - php/commitdiff
Added missing initialization, which causes AP2 to crash on startup in ZTS.
authorIlia Alshanetsky <iliaa@php.net>
Tue, 25 Mar 2003 15:35:08 +0000 (15:35 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Tue, 25 Mar 2003 15:35:08 +0000 (15:35 +0000)
sapi/apache2handler/php_functions.c

index 66ff4892f5ca75305f8259b0aabae62869ea82d5..095845cd62fc9e747479b9055241d58c02dd6552 100644 (file)
@@ -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;
 }