diff options
author | Zeev Suraski <zeev@php.net> | 2001-07-28 11:36:37 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 2001-07-28 11:36:37 +0000 |
commit | d87cc976e1156b839fc6d4aa6b473a126802b8e3 (patch) | |
tree | 8acb068dd7458e1c8df3a7d8ecb87d065990fdb1 /ext/standard/reg.c | |
parent | b4f3b9d3ce9f55cf040fb5aa8f201c64646cab43 (diff) | |
download | php-git-d87cc976e1156b839fc6d4aa6b473a126802b8e3.tar.gz |
Redesigned thread safety mechanism - nua nua
Diffstat (limited to 'ext/standard/reg.c')
-rw-r--r-- | ext/standard/reg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/reg.c b/ext/standard/reg.c index c962f2b8c4..7116dad68a 100644 --- a/ext/standard/reg.c +++ b/ext/standard/reg.c @@ -53,7 +53,7 @@ static int _php_regcomp(regex_t *preg, const char *pattern, int cflags) int r = 0; int patlen = strlen(pattern); reg_cache *rc = NULL; - REGLS_FETCH(); + TSRMLS_FETCH(); if(zend_hash_find(®(ht_rc), (char *) pattern, patlen+1, (void **) &rc) == FAILURE || rc->cflags != cflags) { @@ -102,7 +102,7 @@ PHP_MINIT_FUNCTION(regex) PHP_MSHUTDOWN_FUNCTION(regex) { - REGLS_FETCH(); + TSRMLS_FETCH(); zend_hash_destroy(®(ht_rc)); return SUCCESS; |