summaryrefslogtreecommitdiff
path: root/ext/ereg/ereg.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/ereg/ereg.c')
-rw-r--r--ext/ereg/ereg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/ereg/ereg.c b/ext/ereg/ereg.c
index c962f2b8c4..7116dad68a 100644
--- a/ext/ereg/ereg.c
+++ b/ext/ereg/ereg.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(&REG(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(&REG(ht_rc));
return SUCCESS;