From: Hartmut Holzgraefe Date: Wed, 28 May 2003 09:42:48 +0000 (+0000) Subject: MFH X-Git-Tag: php-4.3.2~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=28ce738ce71da9c5d8cc569bac0d52a6ef2f12f8;p=php MFH @fdf crash with ZTS builds fixed (see Bug #14877) --- diff --git a/ext/fdf/fdf.c b/ext/fdf/fdf.c index 4037c7d00a..f106fee676 100644 --- a/ext/fdf/fdf.c +++ b/ext/fdf/fdf.c @@ -125,10 +125,17 @@ static sapi_post_entry php_fdf_post_entry = { fdf_post_handler }; +static void php_fdf_init_globals(zend_fdf_globals *fdf_globals) +{ + memset(fdf_globals, 0, sizeof(*fdf_globals)); +} + /* {{{ PHP_MINIT_FUNCTION */ PHP_MINIT_FUNCTION(fdf) { + ZEND_INIT_MODULE_GLOBALS(fdf, php_fdf_init_globals, NULL); + le_fdf = zend_register_list_destructors_ex(phpi_FDFClose, NULL, "fdf", module_number); /* add handler for Acrobat FDF form post requests */