cvs: php4 /ext/crack crack.c

From: Date: Mon, 04 Feb 2002 14:28:02 +0000
Subject: cvs: php4 /ext/crack crack.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-9260@lists.php.net to get a copy of this message
yohgaki Mon Feb 4 09:28:02 2002 EDT Modified files: /php4/ext/crack crack.c Log: Fix ZTS startup crash Index: php4/ext/crack/crack.c diff -u php4/ext/crack/crack.c:1.16 php4/ext/crack/crack.c:1.17 --- php4/ext/crack/crack.c:1.16 Tue Dec 11 10:28:56 2001 +++ php4/ext/crack/crack.c Mon Feb 4 09:28:02 2002 @@ -15,7 +15,7 @@ | Authors: | +----------------------------------------------------------------------+ */ -/* $Id: crack.c,v 1.16 2001/12/11 15:28:56 sebastian Exp $ */ +/* $Id: crack.c,v 1.17 2002/02/04 14:28:02 yohgaki Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" #endif @@ -95,6 +95,13 @@ ZEND_MODULE_STARTUP_D(crack) { +#ifdef ZTS + zend_crack_globals *crack_globals; + + ts_allocate_id(&crack_globals_id, sizeof(zend_crack_globals), NULL, NULL); + crack_globals = ts_resource(crack_globals_id); +#endif + REGISTER_INI_ENTRIES(); le_crack = register_list_destructors(_close_crack_dict, NULL);

« previous php.cvs (#9260) next »