cvs: pecl /chasen php_chasen.c php_chasen.h

From: Date: Sun, 10 Aug 2003 08:47:26 +0000
Subject: cvs: pecl /chasen php_chasen.c php_chasen.h
Groups: php.pecl.cvs 
Request: Send a blank email to pecl-cvs+get-415@lists.php.net to get a copy of this message
moriyoshi Sun Aug 10 04:47:26 2003 EDT Modified files: /pecl/chasen php_chasen.c php_chasen.h Log: Ensure MINIT / MSHUTDOWN function to be called in any cases Index: pecl/chasen/php_chasen.c diff -u pecl/chasen/php_chasen.c:1.1 pecl/chasen/php_chasen.c:1.2 --- pecl/chasen/php_chasen.c:1.1 Wed Jan 9 04:28:12 2002 +++ pecl/chasen/php_chasen.c Sun Aug 10 04:47:26 2003 @@ -14,7 +14,7 @@ 2001.12.3 Release 0.3.0 */ -/* $Id: php_chasen.c,v 1.1 2002/01/09 09:28:12 yohgaki Exp $ */ +/* $Id: php_chasen.c,v 1.2 2003/08/10 08:47:26 moriyoshi Exp $ */ #ifdef HAVE_CONFIG_H @@ -57,13 +57,8 @@ STANDARD_MODULE_HEADER, "chasen", chasen_functions, -#ifdef ZTS PHP_MINIT(chasen), PHP_MSHUTDOWN(chasen), -#else - NULL, - NULL, -#endif NULL, NULL, NULL, @@ -77,21 +72,21 @@ #endif -#ifdef ZTS PHP_MINIT_FUNCTION(chasen) { +#ifdef ZTS php_chasen_lock_init(); - +#endif return SUCCESS; } PHP_MSHUTDOWN_FUNCTION(chasen) { +#ifdef ZTS php_chasen_lock_destroy(); - +#endif return SUCCESS; } -#endif /* {{{ proto string chasen(string string, array option) chasen command */ Index: pecl/chasen/php_chasen.h diff -u pecl/chasen/php_chasen.h:1.1 pecl/chasen/php_chasen.h:1.2 --- pecl/chasen/php_chasen.h:1.1 Wed Jan 9 04:28:12 2002 +++ pecl/chasen/php_chasen.h Sun Aug 10 04:47:26 2003 @@ -2,7 +2,7 @@ php_chasen.h */ -/* $Id: php_chasen.h,v 1.1 2002/01/09 09:28:12 yohgaki Exp $ */ +/* $Id: php_chasen.h,v 1.2 2003/08/10 08:47:26 moriyoshi Exp $ */ #ifndef _PHP_CHASEN_H @@ -13,10 +13,8 @@ extern zend_module_entry chasen_module_entry; #define phpext_chasen_ptr &chasen_module_entry -#ifdef ZTS PHP_MINIT_FUNCTION(chasen); PHP_MSHUTDOWN_FUNCTION(chasen); -#endif PHP_FUNCTION(chasen); PHP_FUNCTION(chasen_split);

« previous php.pecl.cvs (#415) next »