summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHartmut Holzgraefe <hholzgra@php.net>2003-05-28 09:42:48 +0000
committerHartmut Holzgraefe <hholzgra@php.net>2003-05-28 09:42:48 +0000
commit28ce738ce71da9c5d8cc569bac0d52a6ef2f12f8 (patch)
tree369d744b48b3cdf79f63aa3c3af131390fb310b8
parentc49dfb10072f67d7df7bae962094da79e327cad5 (diff)
downloadphp-git-28ce738ce71da9c5d8cc569bac0d52a6ef2f12f8.tar.gz
MFH
@fdf crash with ZTS builds fixed (see Bug #14877)
-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 */