diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2004-01-28 21:49:15 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2004-01-28 21:49:15 +0000 |
commit | 33d0cdb426d1e0e7296f5232a61774bb7f968529 (patch) | |
tree | fbf88d16c0072abcfadbea4ce1807aa14324f66f /ext/pcre/php_pcre.c | |
parent | 99bcc186f6d5ff01092223ccfca546060627f594 (diff) | |
download | php-git-33d0cdb426d1e0e7296f5232a61774bb7f968529.tar.gz |
MFH: Fixed bug #27011 (64bit int/long confusion in preg_match*() functions)
Diffstat (limited to 'ext/pcre/php_pcre.c')
-rw-r--r-- | ext/pcre/php_pcre.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c index f72beee583..402eef476b 100644 --- a/ext/pcre/php_pcre.c +++ b/ext/pcre/php_pcre.c @@ -347,7 +347,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 */ @@ -361,7 +361,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 */ |