re 431 ext/filter/logical_filters.c pcre *re = NULL; re 445 ext/filter/logical_filters.c re = pcre_get_compiled_regex(regexp, &pcre_extra, &preg_options); re 446 ext/filter/logical_filters.c if (!re) { re 449 ext/filter/logical_filters.c matches = pcre_exec(re, NULL, Z_STRVAL_P(value), (int)Z_STRLEN_P(value), 0, 0, ovector, 3); re 602 ext/filter/logical_filters.c pcre *re = NULL; re 616 ext/filter/logical_filters.c re = pcre_get_compiled_regex(sregexp, &pcre_extra, &preg_options); re 617 ext/filter/logical_filters.c if (!re) { re 622 ext/filter/logical_filters.c matches = pcre_exec(re, NULL, Z_STRVAL_P(value), (int)Z_STRLEN_P(value), 0, 0, ovector, 3); re 1434 ext/mbstring/mbstring.c void *re = NULL; re 1442 ext/mbstring/mbstring.c if (!(re = _php_mb_compile_regex(ZSTR_VAL(tmp)))) { re 1452 ext/mbstring/mbstring.c MBSTRG(http_output_conv_mimetypes) = re; re 692 ext/mbstring/php_mbregex.c php_mb_regex_t *re; re 723 ext/mbstring/php_mbregex.c re = php_mbregex_compile_pattern(Z_STRVAL_P(arg_pattern), Z_STRLEN_P(arg_pattern), options, MBREX(current_mbctype), MBREX(regex_default_syntax)); re 724 ext/mbstring/php_mbregex.c if (re == NULL) { re 732 ext/mbstring/php_mbregex.c if (onig_search(re, (OnigUChar *)string, (OnigUChar *)(string + string_len), (OnigUChar *)string, (OnigUChar *)(string + string_len), regs, 0) < 0) { re 800 ext/mbstring/php_mbregex.c php_mb_regex_t *re; re 868 ext/mbstring/php_mbregex.c re = php_mbregex_compile_pattern(arg_pattern, arg_pattern_len, options, MBREX(current_mbctype), syntax); re 869 ext/mbstring/php_mbregex.c if (re == NULL) { re 894 ext/mbstring/php_mbregex.c err = onig_search(re, (OnigUChar *)string, (OnigUChar *)string_lim, pos, (OnigUChar *)string_lim, regs, 0); re 1055 ext/mbstring/php_mbregex.c php_mb_regex_t *re; re 1073 ext/mbstring/php_mbregex.c if ((re = php_mbregex_compile_pattern(arg_pattern, arg_pattern_len, MBREX(regex_default_options), MBREX(current_mbctype), MBREX(regex_default_syntax))) == NULL) { re 1085 ext/mbstring/php_mbregex.c err = onig_search(re, (OnigUChar *)string, (OnigUChar *)(string + string_len), pos, (OnigUChar *)(string + string_len), regs, 0); re 1138 ext/mbstring/php_mbregex.c php_mb_regex_t *re; re 1161 ext/mbstring/php_mbregex.c if ((re = php_mbregex_compile_pattern(arg_pattern, arg_pattern_len, option, MBREX(current_mbctype), syntax)) == NULL) { re 1166 ext/mbstring/php_mbregex.c err = onig_match(re, (OnigUChar *)string, (OnigUChar *)(string + string_len), (OnigUChar *)string, NULL, 0); re 46 ext/opcache/zend_accelerator_blacklist.c pcre *re; re 180 ext/opcache/zend_accelerator_blacklist.c if ((it->re = pcre_compile(regexp, PCRE_NO_AUTO_CAPTURE, &pcre_error, &pcre_error_offset, 0)) == NULL) { re 208 ext/opcache/zend_accelerator_blacklist.c pcre_free(it->re); re 344 ext/opcache/zend_accelerator_blacklist.c if (pcre_exec(regexp_list_it->re, NULL, verify_path, strlen(verify_path), 0, 0, NULL, 0) >= 0) { re 8994 ext/pcre/pcrelib/pcre_compile.c REAL_PCRE *re; re 9342 ext/pcre/pcrelib/pcre_compile.c re = (REAL_PCRE *)(PUBL(malloc))(size); re 9343 ext/pcre/pcrelib/pcre_compile.c if (re == NULL) re 9355 ext/pcre/pcrelib/pcre_compile.c re->magic_number = MAGIC_NUMBER; re 9356 ext/pcre/pcrelib/pcre_compile.c re->size = (int)size; re 9357 ext/pcre/pcrelib/pcre_compile.c re->options = cd->external_options; re 9358 ext/pcre/pcrelib/pcre_compile.c re->flags = cd->external_flags; re 9359 ext/pcre/pcrelib/pcre_compile.c re->limit_match = limit_match; re 9360 ext/pcre/pcrelib/pcre_compile.c re->limit_recursion = limit_recursion; re 9361 ext/pcre/pcrelib/pcre_compile.c re->first_char = 0; re 9362 ext/pcre/pcrelib/pcre_compile.c re->req_char = 0; re 9363 ext/pcre/pcrelib/pcre_compile.c re->name_table_offset = sizeof(REAL_PCRE) / sizeof(pcre_uchar); re 9364 ext/pcre/pcrelib/pcre_compile.c re->name_entry_size = cd->name_entry_size; re 9365 ext/pcre/pcrelib/pcre_compile.c re->name_count = cd->names_found; re 9366 ext/pcre/pcrelib/pcre_compile.c re->ref_count = 0; re 9367 ext/pcre/pcrelib/pcre_compile.c re->tables = (tables == PRIV(default_tables))? NULL : tables; re 9368 ext/pcre/pcrelib/pcre_compile.c re->nullpad = NULL; re 9370 ext/pcre/pcrelib/pcre_compile.c re->dummy = 0; re 9372 ext/pcre/pcrelib/pcre_compile.c re->dummy1 = re->dummy2 = re->dummy3 = 0; re 9387 ext/pcre/pcrelib/pcre_compile.c cd->name_table = (pcre_uchar *)re + re->name_table_offset; re 9388 ext/pcre/pcrelib/pcre_compile.c codestart = cd->name_table + re->name_entry_size * re->name_count; re 9419 ext/pcre/pcrelib/pcre_compile.c (void)compile_regex(re->options, &code, &ptr, &errorcode, FALSE, FALSE, 0, 0, re 9421 ext/pcre/pcrelib/pcre_compile.c re->top_bracket = cd->bracount; re 9422 ext/pcre/pcrelib/pcre_compile.c re->top_backref = cd->top_backref; re 9423 ext/pcre/pcrelib/pcre_compile.c re->max_lookbehind = cd->max_lookbehind; re 9424 ext/pcre/pcrelib/pcre_compile.c re->flags = cd->external_flags | PCRE_MODE; re 9495 ext/pcre/pcrelib/pcre_compile.c if (errorcode == 0 && re->top_backref > re->top_bracket) errorcode = ERR15; re 9537 ext/pcre/pcrelib/pcre_compile.c fixed_length = find_fixedlength(cc, (re->options & PCRE_UTF8) != 0, TRUE, re 9558 ext/pcre/pcrelib/pcre_compile.c (PUBL(free))(re); re 9578 ext/pcre/pcrelib/pcre_compile.c if ((re->options & PCRE_ANCHORED) == 0) re 9580 ext/pcre/pcrelib/pcre_compile.c if (is_anchored(codestart, 0, cd, 0)) re->options |= PCRE_ANCHORED; re 9588 ext/pcre/pcrelib/pcre_compile.c re->first_char = firstchar & 0xff; re 9590 ext/pcre/pcrelib/pcre_compile.c re->first_char = firstchar & 0xffff; re 9592 ext/pcre/pcrelib/pcre_compile.c re->first_char = firstchar; re 9600 ext/pcre/pcrelib/pcre_compile.c if (re->first_char < 128) re 9602 ext/pcre/pcrelib/pcre_compile.c if (cd->fcc[re->first_char] != re->first_char) re 9603 ext/pcre/pcrelib/pcre_compile.c re->flags |= PCRE_FCH_CASELESS; re 9605 ext/pcre/pcrelib/pcre_compile.c else if (UCD_OTHERCASE(re->first_char) != re->first_char) re 9606 ext/pcre/pcrelib/pcre_compile.c re->flags |= PCRE_FCH_CASELESS; re 9610 ext/pcre/pcrelib/pcre_compile.c if (MAX_255(re->first_char) re 9611 ext/pcre/pcrelib/pcre_compile.c && cd->fcc[re->first_char] != re->first_char) re 9612 ext/pcre/pcrelib/pcre_compile.c re->flags |= PCRE_FCH_CASELESS; re 9615 ext/pcre/pcrelib/pcre_compile.c re->flags |= PCRE_FIRSTSET; re 9618 ext/pcre/pcrelib/pcre_compile.c else if (is_startline(codestart, 0, cd, 0)) re->flags |= PCRE_STARTLINE; re 9627 ext/pcre/pcrelib/pcre_compile.c ((re->options & PCRE_ANCHORED) == 0 || (reqcharflags & REQ_VARY) != 0)) re 9630 ext/pcre/pcrelib/pcre_compile.c re->req_char = reqchar & 0xff; re 9632 ext/pcre/pcrelib/pcre_compile.c re->req_char = reqchar & 0xffff; re 9634 ext/pcre/pcrelib/pcre_compile.c re->req_char = reqchar; re 9642 ext/pcre/pcrelib/pcre_compile.c if (re->req_char < 128) re 9644 ext/pcre/pcrelib/pcre_compile.c if (cd->fcc[re->req_char] != re->req_char) re 9645 ext/pcre/pcrelib/pcre_compile.c re->flags |= PCRE_RCH_CASELESS; re 9647 ext/pcre/pcrelib/pcre_compile.c else if (UCD_OTHERCASE(re->req_char) != re->req_char) re 9648 ext/pcre/pcrelib/pcre_compile.c re->flags |= PCRE_RCH_CASELESS; re 9652 ext/pcre/pcrelib/pcre_compile.c if (MAX_255(re->req_char) && cd->fcc[re->req_char] != re->req_char) re 9653 ext/pcre/pcrelib/pcre_compile.c re->flags |= PCRE_RCH_CASELESS; re 9656 ext/pcre/pcrelib/pcre_compile.c re->flags |= PCRE_REQCHSET; re 9664 ext/pcre/pcrelib/pcre_compile.c length, re->top_bracket, re->top_backref); re 9666 ext/pcre/pcrelib/pcre_compile.c printf("Options=%08x\n", re->options); re 9668 ext/pcre/pcrelib/pcre_compile.c if ((re->flags & PCRE_FIRSTSET) != 0) re 9670 ext/pcre/pcrelib/pcre_compile.c pcre_uchar ch = re->first_char; re 9672 ext/pcre/pcrelib/pcre_compile.c ((re->flags & PCRE_FCH_CASELESS) == 0)? "" : " (caseless)"; re 9677 ext/pcre/pcrelib/pcre_compile.c if ((re->flags & PCRE_REQCHSET) != 0) re 9679 ext/pcre/pcrelib/pcre_compile.c pcre_uchar ch = re->req_char; re 9681 ext/pcre/pcrelib/pcre_compile.c ((re->flags & PCRE_RCH_CASELESS) == 0)? "" : " (caseless)"; re 9687 ext/pcre/pcrelib/pcre_compile.c pcre_printint((pcre *)re, stdout, TRUE); re 9689 ext/pcre/pcrelib/pcre_compile.c pcre16_printint((pcre *)re, stdout, TRUE); re 9691 ext/pcre/pcrelib/pcre_compile.c pcre32_printint((pcre *)re, stdout, TRUE); re 9699 ext/pcre/pcrelib/pcre_compile.c (PUBL(free))(re); re 9714 ext/pcre/pcrelib/pcre_compile.c re->flags |= PCRE_MATCH_EMPTY; re 9722 ext/pcre/pcrelib/pcre_compile.c return (pcre *)re; re 9724 ext/pcre/pcrelib/pcre_compile.c return (pcre16 *)re; re 9726 ext/pcre/pcrelib/pcre_compile.c return (pcre32 *)re; re 321 ext/pcre/pcrelib/pcre_exec.c #define RMATCH(ra,rb,rc,rd,re,rw) \ re 324 ext/pcre/pcrelib/pcre_exec.c rrc = match(ra,rb,mstart,rc,rd,re,rdepth+1); \ re 333 ext/pcre/pcrelib/pcre_exec.c #define RMATCH(ra,rb,rc,rd,re,rw) \ re 334 ext/pcre/pcrelib/pcre_exec.c rrc = match(ra,rb,mstart,rc,rd,re,rdepth+1) re 347 ext/pcre/pcrelib/pcre_exec.c #define RMATCH(ra,rb,rc,rd,re,rw)\ re 362 ext/pcre/pcrelib/pcre_exec.c newframe->Xeptrb = re;\ re 6384 ext/pcre/pcrelib/pcre_exec.c const REAL_PCRE *re = (const REAL_PCRE *)argument_re; re 6398 ext/pcre/pcrelib/pcre_exec.c if (re == NULL && extra_data == NULL && subject == NULL && length == -999 && re 6409 ext/pcre/pcrelib/pcre_exec.c if (re == NULL || subject == NULL || (offsets == NULL && offsetcount > 0)) re 6420 ext/pcre/pcrelib/pcre_exec.c if (re->magic_number != MAGIC_NUMBER) re 6421 ext/pcre/pcrelib/pcre_exec.c return re->magic_number == REVERSED_MAGIC_NUMBER? re 6423 ext/pcre/pcrelib/pcre_exec.c if ((re->flags & PCRE_MODE) == 0) return PCRE_ERROR_BADMODE; re 6431 ext/pcre/pcrelib/pcre_exec.c utf = md->utf = (re->options & PCRE_UTF8) != 0; re 6494 ext/pcre/pcrelib/pcre_exec.c md->name_table = (pcre_uchar *)re + re->name_table_offset; re 6495 ext/pcre/pcrelib/pcre_exec.c md->name_count = re->name_count; re 6496 ext/pcre/pcrelib/pcre_exec.c md->name_entry_size = re->name_entry_size; re 6508 ext/pcre/pcrelib/pcre_exec.c tables = re->tables; re 6528 ext/pcre/pcrelib/pcre_exec.c if ((re->flags & PCRE_MLSET) != 0 && re->limit_match < md->match_limit) re 6529 ext/pcre/pcrelib/pcre_exec.c md->match_limit = re->limit_match; re 6531 ext/pcre/pcrelib/pcre_exec.c if ((re->flags & PCRE_RLSET) != 0 && re 6532 ext/pcre/pcrelib/pcre_exec.c re->limit_recursion < md->match_limit_recursion) re 6533 ext/pcre/pcrelib/pcre_exec.c md->match_limit_recursion = re->limit_recursion; re 6543 ext/pcre/pcrelib/pcre_exec.c anchored = ((re->options | options) & PCRE_ANCHORED) != 0; re 6544 ext/pcre/pcrelib/pcre_exec.c startline = (re->flags & PCRE_STARTLINE) != 0; re 6545 ext/pcre/pcrelib/pcre_exec.c firstline = (re->options & PCRE_FIRSTLINE) != 0; re 6549 ext/pcre/pcrelib/pcre_exec.c md->start_code = (const pcre_uchar *)re + re->name_table_offset + re 6550 ext/pcre/pcrelib/pcre_exec.c re->name_count * re->name_entry_size; re 6557 ext/pcre/pcrelib/pcre_exec.c md->endonly = (re->options & PCRE_DOLLAR_ENDONLY) != 0; re 6558 ext/pcre/pcrelib/pcre_exec.c md->use_ucp = (re->options & PCRE_UCP) != 0; re 6559 ext/pcre/pcrelib/pcre_exec.c md->jscript_compat = (re->options & PCRE_JAVASCRIPT_COMPAT) != 0; re 6574 ext/pcre/pcrelib/pcre_exec.c md->hasthen = (re->flags & PCRE_HASTHEN) != 0; re 6585 ext/pcre/pcrelib/pcre_exec.c if ((re->options & (PCRE_BSR_ANYCRLF|PCRE_BSR_UNICODE)) != 0) re 6586 ext/pcre/pcrelib/pcre_exec.c md->bsr_anycrlf = (re->options & PCRE_BSR_ANYCRLF) != 0; re 6609 ext/pcre/pcrelib/pcre_exec.c switch ((((options & PCRE_NEWLINE_BITS) == 0)? re->options : re 6650 ext/pcre/pcrelib/pcre_exec.c if (md->partial && (re->flags & PCRE_NOPARTIAL) != 0) re 6661 ext/pcre/pcrelib/pcre_exec.c if (re->top_backref > 0 && re->top_backref >= ocount/3) re 6663 ext/pcre/pcrelib/pcre_exec.c ocount = re->top_backref * 3 + 3; re 6683 ext/pcre/pcrelib/pcre_exec.c register int *iend = iptr - re->top_bracket; re 6698 ext/pcre/pcrelib/pcre_exec.c if ((re->flags & PCRE_FIRSTSET) != 0) re 6701 ext/pcre/pcrelib/pcre_exec.c first_char = first_char2 = (pcre_uchar)(re->first_char); re 6702 ext/pcre/pcrelib/pcre_exec.c if ((re->flags & PCRE_FCH_CASELESS) != 0) re 6720 ext/pcre/pcrelib/pcre_exec.c if ((re->flags & PCRE_REQCHSET) != 0) re 6723 ext/pcre/pcrelib/pcre_exec.c req_char = req_char2 = (pcre_uchar)(re->req_char); re 6724 ext/pcre/pcrelib/pcre_exec.c if ((re->flags & PCRE_RCH_CASELESS) != 0) re 6775 ext/pcre/pcrelib/pcre_exec.c if (((options | re->options) & PCRE_NO_START_OPTIMIZE) == 0) re 6848 ext/pcre/pcrelib/pcre_exec.c if (((options | re->options) & PCRE_NO_START_OPTIMIZE) == 0 && !md->partial) re 7024 ext/pcre/pcrelib/pcre_exec.c (re->flags & PCRE_HASCRORLF) == 0 && re 7086 ext/pcre/pcrelib/pcre_exec.c if (md->end_offset_top/2 <= re->top_bracket && offsets != NULL) re 7089 ext/pcre/pcrelib/pcre_exec.c int resetcount = 2 + re->top_bracket * 2; re 80 ext/pcre/pcrelib/pcre_fullinfo.c const REAL_PCRE *re = (const REAL_PCRE *)argument_re; re 83 ext/pcre/pcrelib/pcre_fullinfo.c if (re == NULL || where == NULL) return PCRE_ERROR_NULL; re 93 ext/pcre/pcrelib/pcre_fullinfo.c if (re->magic_number != MAGIC_NUMBER) re 94 ext/pcre/pcrelib/pcre_fullinfo.c return re->magic_number == REVERSED_MAGIC_NUMBER? re 99 ext/pcre/pcrelib/pcre_fullinfo.c if ((re->flags & PCRE_MODE) == 0) return PCRE_ERROR_BADMODE; re 104 ext/pcre/pcrelib/pcre_fullinfo.c *((unsigned long int *)where) = re->options & PUBLIC_COMPILE_OPTIONS; re 108 ext/pcre/pcrelib/pcre_fullinfo.c *((size_t *)where) = re->size; re 128 ext/pcre/pcrelib/pcre_fullinfo.c *((int *)where) = re->top_bracket; re 132 ext/pcre/pcrelib/pcre_fullinfo.c *((int *)where) = re->top_backref; re 137 ext/pcre/pcrelib/pcre_fullinfo.c ((re->flags & PCRE_FIRSTSET) != 0)? (int)re->first_char : re 138 ext/pcre/pcrelib/pcre_fullinfo.c ((re->flags & PCRE_STARTLINE) != 0)? -1 : -2; re 143 ext/pcre/pcrelib/pcre_fullinfo.c (re->flags & PCRE_FIRSTSET) != 0 ? re->first_char : 0; re 148 ext/pcre/pcrelib/pcre_fullinfo.c ((re->flags & PCRE_FIRSTSET) != 0) ? 1 : re 149 ext/pcre/pcrelib/pcre_fullinfo.c ((re->flags & PCRE_STARTLINE) != 0) ? 2 : 0; re 175 ext/pcre/pcrelib/pcre_fullinfo.c ((re->flags & PCRE_REQCHSET) != 0)? (int)re->req_char : -1; re 180 ext/pcre/pcrelib/pcre_fullinfo.c ((re->flags & PCRE_REQCHSET) != 0) ? re->req_char : 0; re 185 ext/pcre/pcrelib/pcre_fullinfo.c ((re->flags & PCRE_REQCHSET) != 0); re 189 ext/pcre/pcrelib/pcre_fullinfo.c *((int *)where) = re->name_entry_size; re 193 ext/pcre/pcrelib/pcre_fullinfo.c *((int *)where) = re->name_count; re 197 ext/pcre/pcrelib/pcre_fullinfo.c *((const pcre_uchar **)where) = (const pcre_uchar *)re + re->name_table_offset; re 208 ext/pcre/pcrelib/pcre_fullinfo.c *((int *)where) = (re->flags & PCRE_NOPARTIAL) == 0; re 212 ext/pcre/pcrelib/pcre_fullinfo.c *((int *)where) = (re->flags & PCRE_JCHANGED) != 0; re 216 ext/pcre/pcrelib/pcre_fullinfo.c *((int *)where) = (re->flags & PCRE_HASCRORLF) != 0; re 220 ext/pcre/pcrelib/pcre_fullinfo.c *((int *)where) = re->max_lookbehind; re 224 ext/pcre/pcrelib/pcre_fullinfo.c if ((re->flags & PCRE_MLSET) == 0) return PCRE_ERROR_UNSET; re 225 ext/pcre/pcrelib/pcre_fullinfo.c *((pcre_uint32 *)where) = re->limit_match; re 229 ext/pcre/pcrelib/pcre_fullinfo.c if ((re->flags & PCRE_RLSET) == 0) return PCRE_ERROR_UNSET; re 230 ext/pcre/pcrelib/pcre_fullinfo.c *((pcre_uint32 *)where) = re->limit_recursion; re 234 ext/pcre/pcrelib/pcre_fullinfo.c *((int *)where) = (re->flags & PCRE_MATCH_EMPTY) != 0; re 268 ext/pcre/pcrelib/pcre_get.c const REAL_PCRE *re = (const REAL_PCRE *)code; re 280 ext/pcre/pcrelib/pcre_get.c if ((re->options & PCRE_DUPNAMES) == 0 && (re->flags & PCRE_JCHANGED) == 0) re 284 ext/pcre/pcrelib/pcre_get.c if ((re->options & PCRE_DUPNAMES) == 0 && (re->flags & PCRE_JCHANGED) == 0) re 288 ext/pcre/pcrelib/pcre_get.c if ((re->options & PCRE_DUPNAMES) == 0 && (re->flags & PCRE_JCHANGED) == 0) re 2387 ext/pcre/pcrelib/pcre_internal.h #define REAL_PCRE_MAGIC(re) (((REAL_PCRE*)re)->magic_number) re 2388 ext/pcre/pcrelib/pcre_internal.h #define REAL_PCRE_SIZE(re) (((REAL_PCRE*)re)->size) re 2389 ext/pcre/pcrelib/pcre_internal.h #define REAL_PCRE_OPTIONS(re) (((REAL_PCRE*)re)->options) re 2390 ext/pcre/pcrelib/pcre_internal.h #define REAL_PCRE_FLAGS(re) (((REAL_PCRE*)re)->flags) re 9792 ext/pcre/pcrelib/pcre_jit_compile.c PRIV(jit_compile)(const REAL_PCRE *re, PUBL(extra) *extra, int mode) re 9798 ext/pcre/pcrelib/pcre_jit_compile.c const pcre_uint8 *tables = re->tables; re 9826 ext/pcre/pcrelib/pcre_jit_compile.c rootbacktrack.cc = (pcre_uchar *)re + re->name_table_offset + re->name_count * re->name_entry_size; re 9835 ext/pcre/pcrelib/pcre_jit_compile.c switch(re->options & PCRE_NEWLINE_BITS) re 9856 ext/pcre/pcrelib/pcre_jit_compile.c if ((re->options & PCRE_BSR_ANYCRLF) != 0) re 9858 ext/pcre/pcrelib/pcre_jit_compile.c else if ((re->options & PCRE_BSR_UNICODE) != 0) re 9870 ext/pcre/pcrelib/pcre_jit_compile.c common->endonly = (re->options & PCRE_DOLLAR_ENDONLY) != 0; re 9872 ext/pcre/pcrelib/pcre_jit_compile.c common->name_table = ((pcre_uchar *)re) + re->name_table_offset; re 9873 ext/pcre/pcrelib/pcre_jit_compile.c common->name_count = re->name_count; re 9874 ext/pcre/pcrelib/pcre_jit_compile.c common->name_entry_size = re->name_entry_size; re 9875 ext/pcre/pcrelib/pcre_jit_compile.c common->jscript_compat = (re->options & PCRE_JAVASCRIPT_COMPAT) != 0; re 9878 ext/pcre/pcrelib/pcre_jit_compile.c common->utf = (re->options & PCRE_UTF8) != 0; re 9880 ext/pcre/pcrelib/pcre_jit_compile.c common->use_ucp = (re->options & PCRE_UCP) != 0; re 9910 ext/pcre/pcrelib/pcre_jit_compile.c common->optimized_cbracket = (pcre_uint8 *)SLJIT_MALLOC(re->top_bracket + 1, compiler->allocator_data); re 9914 ext/pcre/pcrelib/pcre_jit_compile.c memset(common->optimized_cbracket, 0, re->top_bracket + 1); re 9916 ext/pcre/pcrelib/pcre_jit_compile.c memset(common->optimized_cbracket, 1, re->top_bracket + 1); re 9931 ext/pcre/pcrelib/pcre_jit_compile.c if (mode == JIT_COMPILE && (re->flags & PCRE_REQCHSET) != 0 && (re->options & PCRE_NO_START_OPTIMIZE) == 0) re 9951 ext/pcre/pcrelib/pcre_jit_compile.c if ((re->options & PCRE_FIRSTLINE) != 0) re 9982 ext/pcre/pcrelib/pcre_jit_compile.c memset(common->optimized_cbracket, 0, re->top_bracket + 1); re 9985 ext/pcre/pcrelib/pcre_jit_compile.c common->cbra_ptr = OVECTOR_START + (re->top_bracket + 1) * 2 * sizeof(sljit_sw); re 9996 ext/pcre/pcrelib/pcre_jit_compile.c private_data_size = common->cbra_ptr + (re->top_bracket + 1) * sizeof(sljit_sw); re 10025 ext/pcre/pcrelib/pcre_jit_compile.c reset_ovector(common, (re->top_bracket + 1) * 2); re 10048 ext/pcre/pcrelib/pcre_jit_compile.c if ((re->options & PCRE_ANCHORED) == 0) re 10050 ext/pcre/pcrelib/pcre_jit_compile.c mainloop_label = mainloop_entry(common, (re->flags & PCRE_HASCRORLF) != 0, (re->options & PCRE_FIRSTLINE) != 0); re 10053 ext/pcre/pcrelib/pcre_jit_compile.c if ((re->options & PCRE_NO_START_OPTIMIZE) == 0) re 10055 ext/pcre/pcrelib/pcre_jit_compile.c if (mode == JIT_COMPILE && fast_forward_first_n_chars(common, (re->options & PCRE_FIRSTLINE) != 0)) re 10057 ext/pcre/pcrelib/pcre_jit_compile.c else if ((re->flags & PCRE_FIRSTSET) != 0) re 10058 ext/pcre/pcrelib/pcre_jit_compile.c fast_forward_first_char(common, (pcre_uchar)re->first_char, (re->flags & PCRE_FCH_CASELESS) != 0, (re->options & PCRE_FIRSTLINE) != 0); re 10059 ext/pcre/pcrelib/pcre_jit_compile.c else if ((re->flags & PCRE_STARTLINE) != 0) re 10060 ext/pcre/pcrelib/pcre_jit_compile.c fast_forward_newline(common, (re->options & PCRE_FIRSTLINE) != 0); re 10062 ext/pcre/pcrelib/pcre_jit_compile.c fast_forward_start_bits(common, study->start_bits, (re->options & PCRE_FIRSTLINE) != 0); re 10068 ext/pcre/pcrelib/pcre_jit_compile.c if (mode == JIT_COMPILE && study->minlength > 0 && (re->options & PCRE_NO_START_OPTIMIZE) == 0) re 10075 ext/pcre/pcrelib/pcre_jit_compile.c reqbyte_notfound = search_requested_char(common, (pcre_uchar)re->req_char, (re->flags & PCRE_RCH_CASELESS) != 0, (re->flags & PCRE_FIRSTSET) != 0); re 10124 ext/pcre/pcrelib/pcre_jit_compile.c copy_ovector(common, re->top_bracket + 1); re 10167 ext/pcre/pcrelib/pcre_jit_compile.c if ((re->options & PCRE_ANCHORED) == 0 && (re->options & PCRE_FIRSTLINE) != 0) re 10175 ext/pcre/pcrelib/pcre_jit_compile.c if ((re->options & PCRE_ANCHORED) == 0) re 10179 ext/pcre/pcrelib/pcre_jit_compile.c if ((re->options & PCRE_FIRSTLINE) == 0) re 10185 ext/pcre/pcrelib/pcre_jit_compile.c if ((re->options & PCRE_FIRSTLINE) == 0) re 10307 ext/pcre/pcrelib/pcre_jit_compile.c do_reset_match(common, (re->top_bracket + 1) * 2); re 10381 ext/pcre/pcrelib/pcre_jit_compile.c functions->top_bracket = (re->top_bracket + 1) * 2; re 10382 ext/pcre/pcrelib/pcre_jit_compile.c functions->limit_match = (re->flags & PCRE_MLSET) != 0 ? re->limit_match : 0; re 310 ext/pcre/pcrelib/pcre_printint.c REAL_PCRE *re = (REAL_PCRE *)external_re; re 314 ext/pcre/pcrelib/pcre_printint.c unsigned int options = re->options; re 315 ext/pcre/pcrelib/pcre_printint.c int offset = re->name_table_offset; re 316 ext/pcre/pcrelib/pcre_printint.c int count = re->name_count; re 317 ext/pcre/pcrelib/pcre_printint.c int size = re->name_entry_size; re 319 ext/pcre/pcrelib/pcre_printint.c if (re->magic_number != MAGIC_NUMBER) re 330 ext/pcre/pcrelib/pcre_printint.c code = codestart = (pcre_uchar *)re + offset + count * size; re 431 ext/pcre/pcrelib/pcre_printint.c pcre_uchar *entry = (pcre_uchar *)re + offset + (GET2(code, 1) * size) + re 449 ext/pcre/pcrelib/pcre_printint.c pcre_uchar *entry = (pcre_uchar *)re + offset + (GET2(code, 1) * size) + re 615 ext/pcre/pcrelib/pcre_printint.c pcre_uchar *entry = (pcre_uchar *)re + offset + (GET2(code, 1) * size) + re 80 ext/pcre/pcrelib/pcre_refcount.c REAL_PCRE *re = (REAL_PCRE *)argument_re; re 81 ext/pcre/pcrelib/pcre_refcount.c if (re == NULL) return PCRE_ERROR_NULL; re 82 ext/pcre/pcrelib/pcre_refcount.c if (re->magic_number != MAGIC_NUMBER) return PCRE_ERROR_BADMAGIC; re 83 ext/pcre/pcrelib/pcre_refcount.c if ((re->flags & PCRE_MODE) == 0) return PCRE_ERROR_BADMODE; re 84 ext/pcre/pcrelib/pcre_refcount.c re->ref_count = (-adjust > re->ref_count)? 0 : re 85 ext/pcre/pcrelib/pcre_refcount.c (adjust + re->ref_count > 65535)? 65535 : re 86 ext/pcre/pcrelib/pcre_refcount.c re->ref_count + adjust; re 87 ext/pcre/pcrelib/pcre_refcount.c return re->ref_count; re 81 ext/pcre/pcrelib/pcre_study.c find_minlength(const REAL_PCRE *re, const pcre_uchar *code, re 136 ext/pcre/pcrelib/pcre_study.c d = find_minlength(re, cc, startcode, options, recurses, countptr); re 391 ext/pcre/pcrelib/pcre_study.c pcre_uchar *slot = (pcre_uchar *)re + re 392 ext/pcre/pcrelib/pcre_study.c re->name_table_offset + GET2(cc, 1) * re->name_entry_size; re 420 ext/pcre/pcrelib/pcre_study.c dd = find_minlength(re, cs, startcode, options, &this_recurse, re 425 ext/pcre/pcrelib/pcre_study.c slot += re->name_entry_size; re 457 ext/pcre/pcrelib/pcre_study.c d = find_minlength(re, cs, startcode, options, &this_recurse, re 520 ext/pcre/pcrelib/pcre_study.c branchlength += find_minlength(re, cs, startcode, options, re 1468 ext/pcre/pcrelib/pcre_study.c const REAL_PCRE *re = (const REAL_PCRE *)external_re; re 1473 ext/pcre/pcrelib/pcre_study.c if (re == NULL || re->magic_number != MAGIC_NUMBER) re 1479 ext/pcre/pcrelib/pcre_study.c if ((re->flags & PCRE_MODE) == 0) re 1497 ext/pcre/pcrelib/pcre_study.c code = (pcre_uchar *)re + re->name_table_offset + re 1498 ext/pcre/pcrelib/pcre_study.c (re->name_count * re->name_entry_size); re 1504 ext/pcre/pcrelib/pcre_study.c if ((re->options & PCRE_ANCHORED) == 0 && re 1505 ext/pcre/pcrelib/pcre_study.c (re->flags & (PCRE_FIRSTSET|PCRE_STARTLINE)) == 0) re 1511 ext/pcre/pcrelib/pcre_study.c tables = re->tables; re 1535 ext/pcre/pcrelib/pcre_study.c rc = set_start_bits(code, start_bits, (re->options & PCRE_UTF8) != 0, re 1547 ext/pcre/pcrelib/pcre_study.c switch(min = find_minlength(re, code, code, re->options, NULL, &count)) re 1628 ext/pcre/pcrelib/pcre_study.c PRIV(jit_compile)(re, extra, JIT_COMPILE); re 1630 ext/pcre/pcrelib/pcre_study.c PRIV(jit_compile)(re, extra, JIT_PARTIAL_SOFT_COMPILE); re 1632 ext/pcre/pcrelib/pcre_study.c PRIV(jit_compile)(re, extra, JIT_PARTIAL_HARD_COMPILE); re 48 ext/pcre/pcrelib/pcredemo.c pcre *re; re 99 ext/pcre/pcrelib/pcredemo.c re = pcre_compile( re 108 ext/pcre/pcrelib/pcredemo.c if (re == NULL) re 122 ext/pcre/pcrelib/pcredemo.c re, /* the compiled pattern */ re 143 ext/pcre/pcrelib/pcredemo.c pcre_free(re); /* Release memory used for the compiled pattern */ re 188 ext/pcre/pcrelib/pcredemo.c re, /* the compiled pattern */ re 202 ext/pcre/pcrelib/pcredemo.c re, /* the compiled pattern */ re 208 ext/pcre/pcrelib/pcredemo.c re, /* the compiled pattern */ re 258 ext/pcre/pcrelib/pcredemo.c pcre_free(re); /* Release the memory used for the compiled pattern */ re 266 ext/pcre/pcrelib/pcredemo.c (void)pcre_fullinfo(re, NULL, PCRE_INFO_OPTIONS, &option_bits); re 314 ext/pcre/pcrelib/pcredemo.c re, /* the compiled pattern */ re 361 ext/pcre/pcrelib/pcredemo.c pcre_free(re); /* Release memory used for the compiled pattern */ re 402 ext/pcre/pcrelib/pcredemo.c pcre_free(re); /* Release memory used for the compiled pattern */ re 106 ext/pcre/php_pcre.c pcre_free(pce->re); re 226 ext/pcre/php_pcre.c rc1 = pcre_fullinfo(pce->re, extra, PCRE_INFO_NAMETABLE, &name_table); re 227 ext/pcre/php_pcre.c rc2 = pcre_fullinfo(pce->re, extra, PCRE_INFO_NAMEENTRYSIZE, &name_size); re 272 ext/pcre/php_pcre.c pcre *re = NULL; re 433 ext/pcre/php_pcre.c re = pcre_compile(pattern, re 439 ext/pcre/php_pcre.c if (re == NULL) { re 459 ext/pcre/php_pcre.c extra = pcre_study(re, soptions, &error); re 485 ext/pcre/php_pcre.c new_entry.re = re; re 499 ext/pcre/php_pcre.c rc = pcre_fullinfo(re, extra, PCRE_INFO_CAPTURECOUNT, &new_entry.capture_count); re 505 ext/pcre/php_pcre.c rc = pcre_fullinfo(re, extra, PCRE_INFO_NAMECOUNT, &new_entry.name_count); re 545 ext/pcre/php_pcre.c return pce ? pce->re : NULL; re 565 ext/pcre/php_pcre.c return pce ? pce->re : NULL; re 742 ext/pcre/php_pcre.c count = pcre_exec(pce->re, extra, subject, (int)subject_len, (int)start_offset, re 1165 ext/pcre/php_pcre.c count = pcre_exec(pce->re, extra, subject, subject_len, start_offset, re 1786 ext/pcre/php_pcre.c count = pcre_exec(pce->re, extra, subject, re 2061 ext/pcre/php_pcre.c count = pcre_exec(pce->re, extra, ZSTR_VAL(subject_str), re 47 ext/pcre/php_pcre.h pcre *re; re 5721 ext/pgsql/pgsql.c pcre *re; re 5740 ext/pgsql/pgsql.c if ((re = pcre_compile(regex, options, &err_msg, &err_offset, NULL)) == NULL) { re 5745 ext/pgsql/pgsql.c res = pcre_exec(re, NULL, str, str_len, 0, 0, NULL, 0); re 5746 ext/pgsql/pgsql.c pcre_free(re); re 2067 ext/spl/spl_iterators.c count = pcre_exec(intern->u.regex.pce->re, intern->u.regex.pce->extra, ZSTR_VAL(subject), ZSTR_LEN(subject), 0, 0, NULL, 0); re 345 ext/standard/browscap.c pcre *re; re 366 ext/standard/browscap.c re = pcre_get_compiled_regex(Z_STR_P(browser_regex), &re_extra, &re_options); re 367 ext/standard/browscap.c if (re == NULL) { re 371 ext/standard/browscap.c if (pcre_exec(re, re_extra, lookup_browser_name, lookup_browser_length, 0, re_options, NULL, 0) == 0) { re 634 ext/zip/php_zip.c pcre *re = NULL; re 638 ext/zip/php_zip.c re = pcre_get_compiled_regex(regexp, &pcre_extra, &preg_options); re 639 ext/zip/php_zip.c if (!re) { re 680 ext/zip/php_zip.c matches = pcre_exec(re, NULL, ZSTR_VAL(namelist[i]), ZSTR_LEN(namelist[i]), 0, 0, ovector, 3);