summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/fdf/fdf.c7
1 files changed, 7 insertions, 0 deletions
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 */