summaryrefslogtreecommitdiff
path: root/ext/pcre/php_pcre.c
diff options
context:
space:
mode:
authorNuno Lopes <nlopess@php.net>2007-10-07 12:20:11 +0000
committerNuno Lopes <nlopess@php.net>2007-10-07 12:20:11 +0000
commit51051fc8bcbac6c5731d6cb958387186bafe843c (patch)
treee5ba3bbeaf5c598784492d66ad4c664a3b0a4271 /ext/pcre/php_pcre.c
parent3adfe9c0f181da4cbbd6d02c71a79f322e62e431 (diff)
downloadphp-git-51051fc8bcbac6c5731d6cb958387186bafe843c.tar.gz
now fix the thread-safe build..
#sorry for the noise, but I didnt commit patches to PHP for a long time..
Diffstat (limited to 'ext/pcre/php_pcre.c')
-rw-r--r--ext/pcre/php_pcre.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c
index 377e2f24aa..1984a97277 100644
--- a/ext/pcre/php_pcre.c
+++ b/ext/pcre/php_pcre.c
@@ -175,7 +175,7 @@ static int pcre_clean_cache(void *data, void *arg TSRMLS_DC)
/* }}} */
/* {{{ static make_subpats_table */
-static char **make_subpats_table(int num_subpats, pcre_cache_entry *pce)
+static char **make_subpats_table(int num_subpats, pcre_cache_entry *pce TSRMLS_DC)
{
pcre_extra *extra = pce->extra;
int name_cnt = 0, name_size, ni = 0;
@@ -589,7 +589,7 @@ PHPAPI void php_pcre_match_impl(pcre_cache_entry *pce, char *subject, int subjec
* allocate the table, even though there may be no named subpatterns. This
* avoids somewhat more complicated logic in the inner loops.
*/
- subpat_names = make_subpats_table(num_subpats, pce);
+ subpat_names = make_subpats_table(num_subpats, pce TSRMLS_CC);
if (!subpat_names) {
RETURN_FALSE;
}
@@ -1015,7 +1015,7 @@ PHPAPI char *php_pcre_replace_impl(pcre_cache_entry *pce, char *subject, int sub
* allocate the table, even though there may be no named subpatterns. This
* avoids somewhat more complicated logic in the inner loops.
*/
- subpat_names = make_subpats_table(num_subpats, pce);
+ subpat_names = make_subpats_table(num_subpats, pce TSRMLS_CC);
if (!subpat_names) {
return NULL;
}