]> granicus.if.org Git - php/commitdiff
Fixed bug #27011 (64bit int/long confusion in preg_match*() functions).
authorIlia Alshanetsky <iliaa@php.net>
Wed, 28 Jan 2004 21:47:36 +0000 (21:47 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Wed, 28 Jan 2004 21:47:36 +0000 (21:47 +0000)
ext/pcre/php_pcre.c

index 13c28b886d11396b7102961a2dacf3fa5db387c1..3e8ac6cb8fe236e3082cf9f4bb16e416c99f9913 100644 (file)
@@ -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 */