Lines Matching refs:extra
124 if (pce->extra) { in php_free_pcre_cache()
125 pcre_free_study(pce->extra); in php_free_pcre_cache()
267 pcre_extra *extra = pce->extra; in make_subpats_table() local
275 rc1 = pcre_fullinfo(pce->re, extra, PCRE_INFO_NAMETABLE, &name_table); in make_subpats_table()
276 rc2 = pcre_fullinfo(pce->re, extra, PCRE_INFO_NAMEENTRYSIZE, &name_size); in make_subpats_table()
322 pcre_extra *extra; in pcre_get_compiled_regex_cache() local
542 extra = pcre_study(re, soptions, &error); in pcre_get_compiled_regex_cache()
544 if (extra) { in pcre_get_compiled_regex_cache()
545 extra->flags |= PCRE_EXTRA_MATCH_LIMIT | PCRE_EXTRA_MATCH_LIMIT_RECURSION; in pcre_get_compiled_regex_cache()
546 extra->match_limit = (unsigned long)PCRE_G(backtrack_limit); in pcre_get_compiled_regex_cache()
547 extra->match_limit_recursion = (unsigned long)PCRE_G(recursion_limit); in pcre_get_compiled_regex_cache()
550 pcre_assign_jit_stack(extra, NULL, jit_stack); in pcre_get_compiled_regex_cache()
559 extra = NULL; in pcre_get_compiled_regex_cache()
576 new_entry.extra = extra; in pcre_get_compiled_regex_cache()
585 rc = pcre_fullinfo(re, extra, PCRE_INFO_CAPTURECOUNT, &new_entry.capture_count); in pcre_get_compiled_regex_cache()
597 rc = pcre_fullinfo(re, extra, PCRE_INFO_NAMECOUNT, &new_entry.name_count); in pcre_get_compiled_regex_cache()
635 PHPAPI pcre* pcre_get_compiled_regex(zend_string *regex, pcre_extra **extra, int *preg_options) in pcre_get_compiled_regex() argument
639 if (extra) { in pcre_get_compiled_regex()
640 *extra = pce ? pce->extra : NULL; in pcre_get_compiled_regex()
652 PHPAPI pcre* pcre_get_compiled_regex_ex(zend_string *regex, pcre_extra **extra, int *preg_options, … in pcre_get_compiled_regex_ex() argument
656 if (extra) { in pcre_get_compiled_regex_ex()
657 *extra = pce ? pce->extra : NULL; in pcre_get_compiled_regex_ex()
735 pcre_extra *extra = pce->extra;/* Holds results of studying */ in php_pcre_match_impl() local
790 if (extra == NULL) { in php_pcre_match_impl()
792 extra = &extra_data; in php_pcre_match_impl()
794 extra->match_limit = (unsigned long)PCRE_G(backtrack_limit); in php_pcre_match_impl()
795 extra->match_limit_recursion = (unsigned long)PCRE_G(recursion_limit); in php_pcre_match_impl()
797 extra->mark = &mark; in php_pcre_match_impl()
798 extra->flags |= PCRE_EXTRA_MARK; in php_pcre_match_impl()
836 count = pcre_exec(pce->re, extra, subject, (int)subject_len, (int)start_offset, in php_pcre_match_impl()
1175 pcre_extra *extra = pce->extra;/* Holds results of studying */ in php_pcre_replace_impl() local
1203 if (extra == NULL) { in php_pcre_replace_impl()
1205 extra = &extra_data; in php_pcre_replace_impl()
1208 extra->match_limit = (unsigned long)PCRE_G(backtrack_limit); in php_pcre_replace_impl()
1209 extra->match_limit_recursion = (unsigned long)PCRE_G(recursion_limit); in php_pcre_replace_impl()
1258 extra->mark = &mark; in php_pcre_replace_impl()
1259 extra->flags |= PCRE_EXTRA_MARK; in php_pcre_replace_impl()
1262 count = pcre_exec(pce->re, extra, subject, subject_len, start_offset, in php_pcre_replace_impl()
1797 pcre_extra *extra = pce->extra;/* Holds results of studying */ in php_pcre_split_impl() local
1821 if (extra == NULL) { in php_pcre_split_impl()
1823 extra = &extra_data; in php_pcre_split_impl()
1825 extra->match_limit = (unsigned long)PCRE_G(backtrack_limit); in php_pcre_split_impl()
1826 extra->match_limit_recursion = (unsigned long)PCRE_G(recursion_limit); in php_pcre_split_impl()
1828 extra->flags &= ~PCRE_EXTRA_MARK; in php_pcre_split_impl()
1850 count = pcre_exec(pce->re, extra, subject, in php_pcre_split_impl()
2070 pcre_extra *extra = pce->extra;/* Holds results of studying */ in php_pcre_grep_impl() local
2083 if (extra == NULL) { in php_pcre_grep_impl()
2085 extra = &extra_data; in php_pcre_grep_impl()
2087 extra->match_limit = (unsigned long)PCRE_G(backtrack_limit); in php_pcre_grep_impl()
2088 extra->match_limit_recursion = (unsigned long)PCRE_G(recursion_limit); in php_pcre_grep_impl()
2090 extra->flags &= ~PCRE_EXTRA_MARK; in php_pcre_grep_impl()
2111 count = pcre_exec(pce->re, extra, ZSTR_VAL(subject_str), in php_pcre_grep_impl()