CVS update: php3/functions

From: Date: Mon, 04 Jan 1999 01:53:10 +0000
Subject: CVS update: php3/functions
Groups: php.dev 
Request: Send a blank email to php-dev+get-3232@lists.php.net to get a copy of this message
Date: Sunday January 3, 1999 @ 20:53 Author: sas Update of /repository/php3/functions In directory asf:/u/temp/cvs-serv25424 Modified Files: reg.c Log Message: Why limit the scope of the regex cache to one request? Index: php3/functions/reg.c diff -c php3/functions/reg.c:1.95 php3/functions/reg.c:1.96 *** php3/functions/reg.c:1.95 Fri Jan 1 12:59:17 1999 --- php3/functions/reg.c Sun Jan 3 20:53:08 1999 *************** *** 28,34 **** | Jaakko Hyvätti <jaakko@hyvatti.iki.fi> | +----------------------------------------------------------------------+ */ ! /* $Id: reg.c,v 1.95 1999/01/01 17:59:17 zeev Exp $ */ #ifdef THREAD_SAFE #include "tls.h" #endif --- 28,34 ---- | Jaakko Hyvätti <jaakko@hyvatti.iki.fi> | +----------------------------------------------------------------------+ */ ! /* $Id: reg.c,v 1.96 1999/01/04 01:53:08 sas Exp $ */ #ifdef THREAD_SAFE #include "tls.h" #endif *************** *** 52,62 **** {NULL, NULL, NULL} }; ! static int php3_rinit_regex(INIT_FUNC_ARGS); ! static int php3_rshutdown_regex(void); php3_module_entry regexp_module_entry = { ! "Regular Expressions", reg_functions, NULL, NULL, php3_rinit_regex, php3_rshutdown_regex, NULL, STANDARD_MODULE_PROPERTIES }; /* This is the maximum number of (..) constructs we'll generate from a --- 52,62 ---- {NULL, NULL, NULL} }; ! static int php3_minit_regex(INIT_FUNC_ARGS); ! static int php3_mshutdown_regex(void); php3_module_entry regexp_module_entry = { ! "Regular Expressions", reg_functions, php3_minit_regex, php3_mshutdown_regex, NULL, NULL, NULL, STANDARD_MODULE_PROPERTIES }; /* This is the maximum number of (..) constructs we'll generate from a *************** *** 622,628 **** } #endif ! static int php3_rinit_regex(INIT_FUNC_ARGS) { #ifndef THREAD_SAFE _php3_hash_init(&ht_rc, 0, NULL, _free_reg_cache, 1); --- 622,628 ---- } #endif ! static int php3_minit_regex(INIT_FUNC_ARGS) { #ifndef THREAD_SAFE _php3_hash_init(&ht_rc, 0, NULL, _free_reg_cache, 1); *************** *** 631,637 **** } ! static int php3_rshutdown_regex(void) { #ifndef THREAD_SAFE _php3_hash_destroy(&ht_rc); --- 631,637 ---- } ! static int php3_mshutdown_regex(void) { #ifndef THREAD_SAFE _php3_hash_destroy(&ht_rc); -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#3232) next »