summaryrefslogtreecommitdiff
path: root/ext/pcre
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2004-01-28 21:47:36 +0000
committerIlia Alshanetsky <iliaa@php.net>2004-01-28 21:47:36 +0000
commite691cbd4ee3d6a86e20ca93b1365996af7f23f62 (patch)
tree08c93a609d2f567c5cf44fe4440d55abce954e7a /ext/pcre
parenteaab3ef8cdf1c8fc3fba95948b68e7aedabfbdb1 (diff)
downloadphp-git-e691cbd4ee3d6a86e20ca93b1365996af7f23f62.tar.gz
Fixed bug #27011 (64bit int/long confusion in preg_match*() functions).
Diffstat (limited to 'ext/pcre')
-rw-r--r--ext/pcre/php_pcre.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c
index 13c28b886d..3e8ac6cb8f 100644
--- a/ext/pcre/php_pcre.c
+++ b/ext/pcre/php_pcre.c
@@ -346,7 +346,7 @@ static void php_pcre_match(INTERNAL_FUNCTION_PARAMETERS, int global)
int regex_len;
int subject_len;
zval *subpats = NULL; /* Array for subpatterns */
- int flags; /* Match control flags */
+ long flags; /* Match control flags */
zval *result_set, /* Holds a set of subpatterns after
a global match */
@@ -360,7 +360,7 @@ static void php_pcre_match(INTERNAL_FUNCTION_PARAMETERS, int global)
int *offsets; /* Array of subpattern offsets */
int num_subpats; /* Number of captured subpatterns */
int size_offsets; /* Size of the offsets array */
- int start_offset = 0; /* Where the new search starts */
+ long start_offset = 0; /* Where the new search starts */
int matched; /* Has anything matched */
int subpats_order = 0; /* Order of subpattern matches */
int offset_capture = 0;/* Capture match offsets: yes/no */