diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2003-03-25 15:35:08 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2003-03-25 15:35:08 +0000 |
commit | 2e0651f37868b9f0f2ff48a051609f2c3c49afab (patch) | |
tree | 55cb6e0cb6556a0dcbf90a27cfca4c54ef5313e5 /sapi/apache2handler/php_functions.c | |
parent | 16bf9ed5fc454746d42da879ff75db5c87ad1f72 (diff) | |
download | php-git-2e0651f37868b9f0f2ff48a051609f2c3c49afab.tar.gz |
Added missing initialization, which causes AP2 to crash on startup in ZTS.
Diffstat (limited to 'sapi/apache2handler/php_functions.c')
-rw-r--r-- | sapi/apache2handler/php_functions.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; } |