summaryrefslogtreecommitdiff
path: root/ext/pcre/php_pcre.c
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>1999-07-09 17:36:12 +0000
committerZeev Suraski <zeev@php.net>1999-07-09 17:36:12 +0000
commit3a9cb0220ce35e82065e92c4477b81373ab3e234 (patch)
tree336f21bac2fb749e32a09891b6342afe04242075 /ext/pcre/php_pcre.c
parent81d901b14dd87285977ba7947a0268adb6519089 (diff)
downloadphp-git-3a9cb0220ce35e82065e92c4477b81373ab3e234.tar.gz
Step 1 in nuking the garbage collector:
- Change the hash destructor to return int
Diffstat (limited to 'ext/pcre/php_pcre.c')
-rw-r--r--ext/pcre/php_pcre.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c
index 5b838ec055..ed1245cf02 100644
--- a/ext/pcre/php_pcre.c
+++ b/ext/pcre/php_pcre.c
@@ -84,10 +84,11 @@ static void php_pcre_free(void *ptr)
}
-static void _php_free_pcre_cache(void *data)
+static int _php_free_pcre_cache(void *data)
{
pcre_cache_entry *pce = (pcre_cache_entry *) data;
pefree(pce->re, 1);
+ return 1;
}