From 28ce738ce71da9c5d8cc569bac0d52a6ef2f12f8 Mon Sep 17 00:00:00 2001 From: Hartmut Holzgraefe Date: Wed, 28 May 2003 09:42:48 +0000 Subject: [PATCH] MFH @fdf crash with ZTS builds fixed (see Bug #14877) --- ext/fdf/fdf.c | 7 +++++++ 1 file changed, 7 insertions(+) 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 */ -- 2.50.1