cvs: php4(PHP_4_3) /ext/fdf fdf.c
| From: | Hartmut Holzgraefe | Date: | Wed, 28 May 2003 09:42:48 +0000 |
| Subject: | cvs: php4(PHP_4_3) /ext/fdf fdf.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-21291@lists.php.net to get a copy of this message | ||
hholzgra Wed May 28 05:42:48 2003 EDT
Modified files: (Branch: PHP_4_3)
/php4/ext/fdf fdf.c
Log:
MFH
@fdf crash with ZTS builds fixed (see Bug #14877)
Index: php4/ext/fdf/fdf.c
diff -u php4/ext/fdf/fdf.c:1.66.2.8 php4/ext/fdf/fdf.c:1.66.2.9
--- php4/ext/fdf/fdf.c:1.66.2.8 Wed May 21 13:04:19 2003
+++ php4/ext/fdf/fdf.c Wed May 28 05:42:48 2003
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: fdf.c,v 1.66.2.8 2003/05/21 17:04:19 iliaa Exp $ */
+/* $Id: fdf.c,v 1.66.2.9 2003/05/28 09:42:48 hholzgra Exp $ */
/* FdfTk lib 2.0 is a Complete C/C++ FDF Toolkit available from
http://beta1.adobe.com/ada/acrosdk/forms.html.
*/
@@ -125,10 +125,17 @@
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 */