cvs: php4 /ext/mailparse mailparse.c

From: Date: Mon, 04 Feb 2002 14:27:38 +0000
Subject: cvs: php4 /ext/mailparse mailparse.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-9259@lists.php.net to get a copy of this message
yohgaki Mon Feb 4 09:27:38 2002 EDT Modified files: /php4/ext/mailparse mailparse.c Log: Fix ZTS startup crash Index: php4/ext/mailparse/mailparse.c diff -u php4/ext/mailparse/mailparse.c:1.16 php4/ext/mailparse/mailparse.c:1.17 --- php4/ext/mailparse/mailparse.c:1.16 Fri Dec 21 07:57:16 2001 +++ php4/ext/mailparse/mailparse.c Mon Feb 4 09:27:37 2002 @@ -17,7 +17,7 @@ | the support routines for this extension were based upon. | +----------------------------------------------------------------------+ */ -/* $Id: mailparse.c,v 1.16 2001/12/21 12:57:16 mfischer Exp $ */ +/* $Id: mailparse.c,v 1.17 2002/02/04 14:27:37 yohgaki Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -99,6 +99,13 @@ PHP_MINIT_FUNCTION(mailparse) { +#ifdef ZTS + zend_mailparse_globals *mailparse_globals; + + ts_allocate_id(&mailparse_globals_id, sizeof(zend_mailparse_globals), NULL, NULL); + mailparse_globals = ts_resource(mailparse_globals_id); +#endif + le_rfc2045 = zend_register_list_destructors_ex(rfc2045_dtor, NULL, mailparse_msg_name, module_number); le_rfc2045_nofree = zend_register_list_destructors_ex(NULL, NULL, mailparse_msg_name, module_number);

« previous php.cvs (#9259) next »