Lines Matching refs:extra

112 	if (pce->extra) {  in php_free_pcre_cache()
113 pcre_free_study(pce->extra); in php_free_pcre_cache()
249 pcre_extra *extra = pce->extra; in make_subpats_table() local
257 rc1 = pcre_fullinfo(pce->re, extra, PCRE_INFO_NAMETABLE, &name_table); in make_subpats_table()
258 rc2 = pcre_fullinfo(pce->re, extra, PCRE_INFO_NAMEENTRYSIZE, &name_size); in make_subpats_table()
304 pcre_extra *extra; in pcre_get_compiled_regex_cache() local
523 extra = pcre_study(re, soptions, &error); in pcre_get_compiled_regex_cache()
524 if (extra) { in pcre_get_compiled_regex_cache()
525 extra->flags |= PCRE_EXTRA_MATCH_LIMIT | PCRE_EXTRA_MATCH_LIMIT_RECURSION; in pcre_get_compiled_regex_cache()
526 extra->match_limit = (unsigned long)PCRE_G(backtrack_limit); in pcre_get_compiled_regex_cache()
527 extra->match_limit_recursion = (unsigned long)PCRE_G(recursion_limit); in pcre_get_compiled_regex_cache()
530 pcre_assign_jit_stack(extra, NULL, jit_stack); in pcre_get_compiled_regex_cache()
539 extra = NULL; in pcre_get_compiled_regex_cache()
556 new_entry.extra = extra; in pcre_get_compiled_regex_cache()
565 rc = pcre_fullinfo(re, extra, PCRE_INFO_CAPTURECOUNT, &new_entry.capture_count); in pcre_get_compiled_regex_cache()
577 rc = pcre_fullinfo(re, extra, PCRE_INFO_NAMECOUNT, &new_entry.name_count); in pcre_get_compiled_regex_cache()
615 PHPAPI pcre* pcre_get_compiled_regex(zend_string *regex, pcre_extra **extra, int *preg_options) in pcre_get_compiled_regex() argument
619 if (extra) { in pcre_get_compiled_regex()
620 *extra = pce ? pce->extra : NULL; in pcre_get_compiled_regex()
632 PHPAPI pcre* pcre_get_compiled_regex_ex(zend_string *regex, pcre_extra **extra, int *preg_options, … in pcre_get_compiled_regex_ex() argument
636 if (extra) { in pcre_get_compiled_regex_ex()
637 *extra = pce ? pce->extra : NULL; in pcre_get_compiled_regex_ex()
715 pcre_extra *extra = pce->extra;/* Holds results of studying */ in php_pcre_match_impl() local
770 if (extra == NULL) { in php_pcre_match_impl()
772 extra = &extra_data; in php_pcre_match_impl()
774 extra->match_limit = (unsigned long)PCRE_G(backtrack_limit); in php_pcre_match_impl()
775 extra->match_limit_recursion = (unsigned long)PCRE_G(recursion_limit); in php_pcre_match_impl()
777 extra->mark = &mark; in php_pcre_match_impl()
778 extra->flags |= PCRE_EXTRA_MARK; in php_pcre_match_impl()
816 count = pcre_exec(pce->re, extra, subject, (int)subject_len, (int)start_offset, in php_pcre_match_impl()
1155 pcre_extra *extra = pce->extra;/* Holds results of studying */ in php_pcre_replace_impl() local
1183 if (extra == NULL) { in php_pcre_replace_impl()
1185 extra = &extra_data; in php_pcre_replace_impl()
1188 extra->match_limit = (unsigned long)PCRE_G(backtrack_limit); in php_pcre_replace_impl()
1189 extra->match_limit_recursion = (unsigned long)PCRE_G(recursion_limit); in php_pcre_replace_impl()
1238 extra->mark = &mark; in php_pcre_replace_impl()
1239 extra->flags |= PCRE_EXTRA_MARK; in php_pcre_replace_impl()
1242 count = pcre_exec(pce->re, extra, subject, subject_len, start_offset, in php_pcre_replace_impl()
1777 pcre_extra *extra = pce->extra;/* Holds results of studying */ in php_pcre_split_impl() local
1801 if (extra == NULL) { in php_pcre_split_impl()
1803 extra = &extra_data; in php_pcre_split_impl()
1805 extra->match_limit = (unsigned long)PCRE_G(backtrack_limit); in php_pcre_split_impl()
1806 extra->match_limit_recursion = (unsigned long)PCRE_G(recursion_limit); in php_pcre_split_impl()
1808 extra->flags &= ~PCRE_EXTRA_MARK; in php_pcre_split_impl()
1830 count = pcre_exec(pce->re, extra, subject, in php_pcre_split_impl()
2050 pcre_extra *extra = pce->extra;/* Holds results of studying */ in php_pcre_grep_impl() local
2063 if (extra == NULL) { in php_pcre_grep_impl()
2065 extra = &extra_data; in php_pcre_grep_impl()
2067 extra->match_limit = (unsigned long)PCRE_G(backtrack_limit); in php_pcre_grep_impl()
2068 extra->match_limit_recursion = (unsigned long)PCRE_G(recursion_limit); in php_pcre_grep_impl()
2070 extra->flags &= ~PCRE_EXTRA_MARK; in php_pcre_grep_impl()
2091 count = pcre_exec(pce->re, extra, ZSTR_VAL(subject_str), in php_pcre_grep_impl()