summaryrefslogtreecommitdiff
path: root/ext/pcre/php_pcre.c
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>1999-07-06 19:49:48 +0000
committerZeev Suraski <zeev@php.net>1999-07-06 19:49:48 +0000
commit5baaa716dc991efcff16f37da9ccf961c0c83f70 (patch)
tree80a0dfbac18d0a37633f2dae7e45e7d635ab3e59 /ext/pcre/php_pcre.c
parent8ee9fd57689cd3cd28c57260777403735b12e771 (diff)
downloadphp-git-5baaa716dc991efcff16f37da9ccf961c0c83f70.tar.gz
Support PCRE under Win32
Diffstat (limited to 'ext/pcre/php_pcre.c')
-rw-r--r--ext/pcre/php_pcre.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c
index 6a9ca26b90..9b8830a42c 100644
--- a/ext/pcre/php_pcre.c
+++ b/ext/pcre/php_pcre.c
@@ -30,6 +30,7 @@
/* $Id$ */
#include "php.h"
+#include "php_globals.h"
#if HAVE_PCRE
@@ -119,8 +120,10 @@ void php_info_pcre(ZEND_MODULE_INFO_FUNC_ARGS)
/* {{{ int php_minit_pcre(INIT_FUNC_ARGS) */
int php_minit_pcre(INIT_FUNC_ARGS)
{
+ ELS_FETCH();
+
#ifdef ZTS
- pcre_globals_id = tsrm_allocate_id(
+ pcre_globals_id = ts_allocate_id(
sizeof(php_pcre_globals),
_php_pcre_init_globals,
_php_pcre_shutdown_globals);
@@ -459,7 +462,7 @@ static void _pcre_match(INTERNAL_FUNCTION_PARAMETERS, int global)
}
}
- php_pcre_free(stringlist);
+ php_pcre_free((void *) stringlist);
/* Advance to the position right after the last full match */
piece += offsets[1];