/php-src/ext/pcre/pcre2lib/ |
H A D | pcre2_match_data.c | 100 if (match_data != NULL) in pcre2_match_data_free() 102 if (match_data->heapframes != NULL) in pcre2_match_data_free() 103 match_data->memctl.free(match_data->heapframes, in pcre2_match_data_free() 104 match_data->memctl.memory_data); in pcre2_match_data_free() 106 match_data->memctl.free((void *)match_data->subject, in pcre2_match_data_free() 108 match_data->memctl.free(match_data, match_data->memctl.memory_data); in pcre2_match_data_free() 121 return match_data->mark; in pcre2_get_mark() 133 return match_data->ovector; in pcre2_get_ovector_pointer() 145 return match_data->oveccount; in pcre2_get_ovector_count() 157 return match_data->startchar; in pcre2_get_startchar() [all …]
|
H A D | pcre2_substring.c | 87 if (n < match_data->oveccount) in pcre2_substring_copy_byname() 89 if (match_data->ovector[n*2] != PCRE2_UNSET) in pcre2_substring_copy_byname() 129 memcpy(buffer, match_data->subject + match_data->ovector[stringnumber*2], in pcre2_substring_copy_bynumber() 175 if (n < match_data->oveccount) in pcre2_substring_get_byname() 221 memcpy(yield, match_data->subject + match_data->ovector[stringnumber*2], in pcre2_substring_get_bynumber() 282 if (n < match_data->oveccount) in pcre2_substring_length_byname() 320 int count = match_data->rc; in pcre2_substring_length_bynumber() 332 if (stringnumber >= match_data->oveccount) in pcre2_substring_length_bynumber() 343 left = match_data->ovector[stringnumber*2]; in pcre2_substring_length_bynumber() 345 if (left > match_data->subject_length || right > match_data->subject_length) in pcre2_substring_length_bynumber() [all …]
|
H A D | pcre2_jit_match.c | 102 (void)match_data; in pcre2_jit_match() 111 uint32_t oveccount = match_data->oveccount; in pcre2_jit_match() 133 arguments.match_data = match_data; in pcre2_jit_match() 178 match_data->code = re; in pcre2_jit_match() 180 match_data->subject_length = length; in pcre2_jit_match() 181 match_data->rc = rc; in pcre2_jit_match() 183 match_data->leftchar = 0; in pcre2_jit_match() 184 match_data->rightchar = 0; in pcre2_jit_match() 185 match_data->mark = arguments.mark_ptr; in pcre2_jit_match() 191 __msan_unpoison(match_data->ovector, 2 * rc * sizeof(match_data->ovector[0])); in pcre2_jit_match() [all …]
|
H A D | pcre2_substitute.c | 289 if (match_data == NULL) in pcre2_substitute() 296 match_data = internal_match_data = in pcre2_substitute() 307 code->top_bracket + 1 : match_data->oveccount; in pcre2_substitute() 315 match_data = internal_match_data; in pcre2_substitute() 320 ovector = pcre2_get_ovector_pointer(match_data); in pcre2_substitute() 321 ovector_count = pcre2_get_ovector_count(match_data); in pcre2_substitute() 351 match_data->leftchar = 0; in pcre2_substitute() 366 match_data->leftchar = 0; in pcre2_substitute() 386 rc = match_data->rc; in pcre2_substitute() 390 match_data, mcontext); in pcre2_substitute() [all …]
|
H A D | pcre2_match.c | 701 new = match_data->memctl.malloc(newsize, match_data->memctl.memory_data); in match() 708 match_data->memctl.free(match_data->heapframes, match_data->memctl.memory_data); in match() 6680 match_data->memctl.free((void *)match_data->subject, in pcre2_match() 6777 match_data->subject = match_data->memctl.malloc(length, in pcre2_match() 6902 if (!allow_invalid || match_data->rc > 0) return match_data->rc; in pcre2_match() 7067 match_data->memctl.free(match_data->heapframes, in pcre2_match() 7069 match_data->heapframes = match_data->memctl.malloc(heapframes_size, in pcre2_match() 7515 match_data, mb); in pcre2_match() 7705 match_data->code = re; in pcre2_match() 7716 match_data->rc = ((int)mb->end_offset_top >= 2 * match_data->oveccount)? in pcre2_match() [all …]
|
H A D | pcre2_dfa_match.c | 3623 if (match_data->rc != 0) in pcre2_dfa_match() 3626 return match_data->rc; in pcre2_dfa_match() 3682 match_data->memctl.free((void *)match_data->subject, in pcre2_dfa_match() 3683 match_data->memctl.memory_data); in pcre2_dfa_match() 3684 match_data->flags &= ~PCRE2_MD_COPIED_SUBJECT; in pcre2_dfa_match() 3689 match_data->code = re; in pcre2_dfa_match() 3691 match_data->mark = NULL; in pcre2_dfa_match() 4049 match_data->subject_length = length; in pcre2_dfa_match() 4053 match_data->rc = rc; in pcre2_dfa_match() 4058 match_data->subject = match_data->memctl.malloc(length, in pcre2_dfa_match() [all …]
|
H A D | pcre2_jit_compile.c | 189 pcre2_match_data *match_data; member 3493 OP2(SLJIT_ADD, SLJIT_R2, 0, SLJIT_MEM1(SLJIT_R0), SLJIT_OFFSETOF(jit_arguments, match_data), in copy_ovector() 3499 OP1(SLJIT_MOV, SLJIT_R2, 0, SLJIT_MEM1(ARGUMENTS), SLJIT_OFFSETOF(jit_arguments, match_data)); in copy_ovector() 3589 OP1(SLJIT_MOV, SLJIT_R1, 0, SLJIT_MEM1(arguments_reg), SLJIT_OFFSETOF(jit_arguments, match_data)); in return_with_partial_match()
|
/php-src/ext/pcre/ |
H A D | php_pcre.c | 1243 match_data = mdata; in php_pcre_match_impl() 1246 if (!match_data) { in php_pcre_match_impl() 1425 if (match_data != mdata) { in php_pcre_match_impl() 1645 match_data = mdata; in php_pcre_replace_impl() 1648 if (!match_data) { in php_pcre_replace_impl() 1887 match_data = mdata; in php_pcre_replace_func_impl() 1890 if (!match_data) { in php_pcre_replace_func_impl() 2594 match_data = mdata; in php_pcre_split_impl() 2597 if (!match_data) { in php_pcre_split_impl() 2934 match_data = mdata; in php_pcre_grep_impl() [all …]
|
/php-src/ext/opcache/ |
H A D | zend_accelerator_blacklist.c | 359 pcre2_match_data *match_data = php_pcre_create_match_data(0, regexp_list_it->re); local 360 if (!match_data) { 364 … pcre2_match(regexp_list_it->re, (PCRE2_SPTR)verify_path, verify_path_len, 0, 0, match_data, mctx); 367 php_pcre_free_match_data(match_data); 370 php_pcre_free_match_data(match_data);
|
/php-src/ext/filter/ |
H A D | logical_filters.c | 478 pcre2_match_data *match_data = NULL; in php_filter_validate_regexp() local 494 match_data = php_pcre_create_match_data(capture_count, re); in php_filter_validate_regexp() 495 if (!match_data) { in php_filter_validate_regexp() 498 …rc = pcre2_match(re, (PCRE2_SPTR)Z_STRVAL_P(value), Z_STRLEN_P(value), 0, 0, match_data, php_pcre_… in php_filter_validate_regexp() 499 php_pcre_free_match_data(match_data); in php_filter_validate_regexp() 683 pcre2_match_data *match_data = NULL; in php_filter_validate_email() local 711 match_data = php_pcre_create_match_data(capture_count, re); in php_filter_validate_email() 712 if (!match_data) { in php_filter_validate_email() 715 …rc = pcre2_match(re, (PCRE2_SPTR)Z_STRVAL_P(value), Z_STRLEN_P(value), 0, 0, match_data, php_pcre_… in php_filter_validate_email() 716 php_pcre_free_match_data(match_data); in php_filter_validate_email()
|
/php-src/ext/zip/ |
H A D | php_zip.c | 757 pcre2_match_data *match_data = NULL; in php_zip_pcre() local 788 match_data = php_pcre_create_match_data(capture_count, re); in php_zip_pcre() 789 if (!match_data) { in php_zip_pcre() 794 …rc = pcre2_match(re, (PCRE2_SPTR)ZSTR_VAL(namelist[i]), ZSTR_LEN(namelist[i]), 0, 0, match_data, m… in php_zip_pcre() 795 php_pcre_free_match_data(match_data); in php_zip_pcre()
|
/php-src/ext/fileinfo/libmagic/ |
H A D | softmagic.c | 504 pcre2_match_data *match_data = php_pcre_create_match_data(0, re); in check_fmt() local 505 if (match_data) { in check_fmt() 506 rv = pcre2_match(re, (PCRE2_SPTR)fmt, strlen(fmt), 0, 0, match_data, php_pcre_mctx()) > 0; in check_fmt() 507 php_pcre_free_match_data(match_data); in check_fmt()
|
/php-src/ext/spl/ |
H A D | spl_iterators.c | 1766 pcre2_match_data *match_data; in PHP_METHOD() local 1797 match_data = php_pcre_create_match_data(0, re); in PHP_METHOD() 1798 if (!match_data) { in PHP_METHOD() 1801 …rc = pcre2_match(re, (PCRE2_SPTR)ZSTR_VAL(subject), ZSTR_LEN(subject), 0, 0, match_data, php_pcre_… in PHP_METHOD() 1803 php_pcre_free_match_data(match_data); in PHP_METHOD()
|
/php-src/ext/pgsql/ |
H A D | pgsql.c | 4782 pcre2_match_data *match_data; in php_pgsql_convert_match() local 4799 match_data = php_pcre_create_match_data(0, re); in php_pgsql_convert_match() 4800 if (NULL == match_data) { in php_pgsql_convert_match() 4805 res = pcre2_match(re, (PCRE2_SPTR)ZSTR_VAL(str), ZSTR_LEN(str), 0, 0, match_data, php_pcre_mctx()); in php_pgsql_convert_match() 4806 php_pcre_free_match_data(match_data); in php_pgsql_convert_match()
|
/php-src/ext/fileinfo/ |
H A D | libmagic.patch | 3054 + pcre2_match_data *match_data = php_pcre_create_match_data(0, re); 3055 + if (match_data) { 3056 + rv = pcre2_match(re, (PCRE2_SPTR)fmt, strlen(fmt), 0, 0, match_data, php_pcre_mctx()) > 0; 3057 + php_pcre_free_match_data(match_data);
|
/php-src/ext/mbstring/ |
H A D | mbstring.c | 529 pcre2_match_data *match_data = php_pcre_create_match_data(0, opaque); in _php_mb_match_regex() local 530 if (NULL == match_data) { in _php_mb_match_regex() 535 res = pcre2_match(opaque, (PCRE2_SPTR)str, str_len, 0, 0, match_data, php_pcre_mctx()) >= 0; in _php_mb_match_regex() 536 php_pcre_free_match_data(match_data); in _php_mb_match_regex()
|