CVS update: php3
| From: | sas | Date: | Mon, 28 Dec 1998 08:28:40 +0000 |
| Subject: | CVS update: php3 | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-3092@lists.php.net to get a copy of this message | ||
Date: Monday December 28, 1998 @ 3:28
Author: sas
Update of /repository/php3
In directory asf:/u/temp/cvs-serv2595
Modified Files:
list.c php.h
Log Message:
replace the remember-last cache for regexes with one using hash tables
Index: php3/list.c
diff -c php3/list.c:1.84 php3/list.c:1.85
*** php3/list.c:1.84 Fri Dec 25 15:09:45 1998
--- php3/list.c Mon Dec 28 03:28:39 1998
***************
*** 29,35 ****
*/
! /* $Id: list.c,v 1.84 1998/12/25 20:09:45 sas Exp $ */
#ifdef THREAD_SAFE
#include "tls.h"
--- 29,35 ----
*/
! /* $Id: list.c,v 1.85 1998/12/28 08:28:39 sas Exp $ */
#ifdef THREAD_SAFE
#include "tls.h"
***************
*** 97,110 ****
if (_php3_hash_index_find(&GLOBAL(list_destructors),le->type,(void **) &ld)==SUCCESS)
{
if (ld->list_destructor) {
(ld->list_destructor)(le->ptr);
- }
- } else if(le->type == LE_REGEX) {
- reg_cache *rc = (reg_cache *) le->ptr;
-
- if(rc->cflags != -1) {
- regfree(&rc->preg);
- efree(rc->pattern);
- rc->pattern = NULL;
}
} else {
php3_error(E_WARNING,"Unknown list entry type in request shutdown (%d)",le->type);
--- 97,102 ----
Index: php3/php.h
diff -c php3/php.h:1.40 php3/php.h:1.41
*** php3/php.h:1.40 Fri Dec 25 15:09:45 1998
--- php3/php.h Mon Dec 28 03:28:39 1998
***************
*** 28,34 ****
+----------------------------------------------------------------------+
*/
! /* $Id: php.h,v 1.40 1998/12/25 20:09:45 sas Exp $ */
#ifndef _PHP_H
#define _PHP_H
--- 28,34 ----
+----------------------------------------------------------------------+
*/
! /* $Id: php.h,v 1.41 1998/12/28 08:28:39 sas Exp $ */
#ifndef _PHP_H
#define _PHP_H
***************
*** 440,451 ****
pval *object_pointer;
} FunctionState;
-
- typedef struct {
- regex_t preg;
- char *pattern;
- int cflags;
- } reg_cache;
/* global variables */
#ifndef THREAD_SAFE
--- 440,445 ----
--
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