Lines Matching refs:extra

125 	if (pce->extra) {  in php_free_pcre_cache()
126 pcre_free_study(pce->extra); in php_free_pcre_cache()
273 pcre_extra *extra = pce->extra; in make_subpats_table() local
281 rc1 = pcre_fullinfo(pce->re, extra, PCRE_INFO_NAMETABLE, &name_table); in make_subpats_table()
282 rc2 = pcre_fullinfo(pce->re, extra, PCRE_INFO_NAMEENTRYSIZE, &name_size); in make_subpats_table()
328 pcre_extra *extra; in pcre_get_compiled_regex_cache_ex() local
549 extra = pcre_study(re, soptions, &error); in pcre_get_compiled_regex_cache_ex()
551 if (extra) { in pcre_get_compiled_regex_cache_ex()
552 extra->flags |= PCRE_EXTRA_MATCH_LIMIT | PCRE_EXTRA_MATCH_LIMIT_RECURSION; in pcre_get_compiled_regex_cache_ex()
553 extra->match_limit = (unsigned long)PCRE_G(backtrack_limit); in pcre_get_compiled_regex_cache_ex()
554 extra->match_limit_recursion = (unsigned long)PCRE_G(recursion_limit); in pcre_get_compiled_regex_cache_ex()
557 pcre_assign_jit_stack(extra, NULL, jit_stack); in pcre_get_compiled_regex_cache_ex()
566 extra = NULL; in pcre_get_compiled_regex_cache_ex()
583 new_entry.extra = extra; in pcre_get_compiled_regex_cache_ex()
591 rc = pcre_fullinfo(re, extra, PCRE_INFO_CAPTURECOUNT, &new_entry.capture_count); in pcre_get_compiled_regex_cache_ex()
603 rc = pcre_fullinfo(re, extra, PCRE_INFO_NAMECOUNT, &new_entry.name_count); in pcre_get_compiled_regex_cache_ex()
649 PHPAPI pcre* pcre_get_compiled_regex(zend_string *regex, pcre_extra **extra, int *preg_options) in pcre_get_compiled_regex() argument
653 if (extra) { in pcre_get_compiled_regex()
654 *extra = pce ? pce->extra : NULL; in pcre_get_compiled_regex()
666 PHPAPI pcre* pcre_get_compiled_regex_ex(zend_string *regex, pcre_extra **extra, int *preg_options, … in pcre_get_compiled_regex_ex() argument
670 if (extra) { in pcre_get_compiled_regex_ex()
671 *extra = pce ? pce->extra : NULL; in pcre_get_compiled_regex_ex()
757 pcre_extra *extra = pce->extra;/* Holds results of studying */ in php_pcre_match_impl() local
815 if (extra == NULL) { in php_pcre_match_impl()
817 extra = &extra_data; in php_pcre_match_impl()
819 extra->match_limit = (unsigned long)PCRE_G(backtrack_limit); in php_pcre_match_impl()
820 extra->match_limit_recursion = (unsigned long)PCRE_G(recursion_limit); in php_pcre_match_impl()
822 extra->mark = &mark; in php_pcre_match_impl()
823 extra->flags |= PCRE_EXTRA_MARK; in php_pcre_match_impl()
868 if ((extra->flags & PCRE_EXTRA_EXECUTABLE_JIT) in php_pcre_match_impl()
874 count = pcre_jit_exec(pce->re, extra, subject, (int)subject_len, (int)start_offset, in php_pcre_match_impl()
878 count = pcre_exec(pce->re, extra, subject, (int)subject_len, (int)start_offset, in php_pcre_match_impl()
1282 pcre_extra *extra = pce->extra;/* Holds results of studying */ in php_pcre_replace_impl() local
1307 if (extra == NULL) { in php_pcre_replace_impl()
1309 extra = &extra_data; in php_pcre_replace_impl()
1312 extra->match_limit = (unsigned long)PCRE_G(backtrack_limit); in php_pcre_replace_impl()
1313 extra->match_limit_recursion = (unsigned long)PCRE_G(recursion_limit); in php_pcre_replace_impl()
1362 extra->flags &= ~PCRE_EXTRA_MARK; in php_pcre_replace_impl()
1368 if ((extra->flags & PCRE_EXTRA_EXECUTABLE_JIT) in php_pcre_replace_impl()
1370 count = pcre_jit_exec(pce->re, extra, subject, subject_len, start_offset, in php_pcre_replace_impl()
1374 count = pcre_exec(pce->re, extra, subject, subject_len, start_offset, in php_pcre_replace_impl()
1545 pcre_extra *extra = pce->extra;/* Holds results of studying */ in php_pcre_replace_func_impl() local
1566 if (extra == NULL) { in php_pcre_replace_func_impl()
1568 extra = &extra_data; in php_pcre_replace_func_impl()
1571 extra->match_limit = (unsigned long)PCRE_G(backtrack_limit); in php_pcre_replace_func_impl()
1572 extra->match_limit_recursion = (unsigned long)PCRE_G(recursion_limit); in php_pcre_replace_func_impl()
1621 extra->mark = &mark; in php_pcre_replace_func_impl()
1622 extra->flags |= PCRE_EXTRA_MARK; in php_pcre_replace_func_impl()
1628 if ((extra->flags & PCRE_EXTRA_EXECUTABLE_JIT) in php_pcre_replace_func_impl()
1630 count = pcre_jit_exec(pce->re, extra, subject, subject_len, start_offset, in php_pcre_replace_func_impl()
1634 count = pcre_exec(pce->re, extra, subject, subject_len, start_offset, in php_pcre_replace_func_impl()
1698 extra->mark = &mark; in php_pcre_replace_func_impl()
1699 extra->flags |= PCRE_EXTRA_MARK; in php_pcre_replace_func_impl()
2240 pcre_extra *extra = pce->extra;/* Holds results of studying */ in php_pcre_split_impl() local
2264 if (extra == NULL) { in php_pcre_split_impl()
2266 extra = &extra_data; in php_pcre_split_impl()
2268 extra->match_limit = (unsigned long)PCRE_G(backtrack_limit); in php_pcre_split_impl()
2269 extra->match_limit_recursion = (unsigned long)PCRE_G(recursion_limit); in php_pcre_split_impl()
2271 extra->flags &= ~PCRE_EXTRA_MARK; in php_pcre_split_impl()
2300 if ((extra->flags & PCRE_EXTRA_EXECUTABLE_JIT) in php_pcre_split_impl()
2302 count = pcre_jit_exec(pce->re, extra, ZSTR_VAL(subject_str), in php_pcre_split_impl()
2307 count = pcre_exec(pce->re, extra, ZSTR_VAL(subject_str), in php_pcre_split_impl()
2577 pcre_extra *extra = pce->extra;/* Holds results of studying */ in php_pcre_grep_impl() local
2591 if (extra == NULL) { in php_pcre_grep_impl()
2593 extra = &extra_data; in php_pcre_grep_impl()
2595 extra->match_limit = (unsigned long)PCRE_G(backtrack_limit); in php_pcre_grep_impl()
2596 extra->match_limit_recursion = (unsigned long)PCRE_G(recursion_limit); in php_pcre_grep_impl()
2598 extra->flags &= ~PCRE_EXTRA_MARK; in php_pcre_grep_impl()
2624 if ((extra->flags & PCRE_EXTRA_EXECUTABLE_JIT) in php_pcre_grep_impl()
2626 count = pcre_jit_exec(pce->re, extra, ZSTR_VAL(subject_str), in php_pcre_grep_impl()
2631 count = pcre_exec(pce->re, extra, ZSTR_VAL(subject_str), in php_pcre_grep_impl()