]> granicus.if.org Git - php/commitdiff
MFH
authorHartmut Holzgraefe <hholzgra@php.net>
Wed, 28 May 2003 09:42:48 +0000 (09:42 +0000)
committerHartmut Holzgraefe <hholzgra@php.net>
Wed, 28 May 2003 09:42:48 +0000 (09:42 +0000)
@fdf crash with ZTS builds fixed (see Bug #14877)

ext/fdf/fdf.c

index 4037c7d00a60b2802e132021d55249d3d21d26bf..f106fee67617044cc19a20b2f5a93fca98cb1caf 100644 (file)
@@ -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 */