Lines Matching refs:subpats
719 zval *subpats = NULL; /* Array for subpatterns */ in php_do_pcre_match() local
727 Z_PARAM_ZVAL_DEREF(subpats) in php_do_pcre_match()
743 php_pcre_match_impl(pce, ZSTR_VAL(subject), (int)ZSTR_LEN(subject), return_value, subpats, in php_do_pcre_match()
751 zval *subpats, int global, int use_flags, zend_long flags, zend_long start_offset) in php_pcre_match_impl() argument
779 if (subpats != NULL) { in php_pcre_match_impl()
780 zval_ptr_dtor(subpats); in php_pcre_match_impl()
781 array_init(subpats); in php_pcre_match_impl()
849 if (global && subpats && subpats_order == PREG_PATTERN_ORDER) { in php_pcre_match_impl()
895 if (subpats != NULL) { in php_pcre_match_impl()
912 if (subpats && subpats_order == PREG_PATTERN_ORDER) { in php_pcre_match_impl()
1017 zend_hash_next_index_insert(Z_ARRVAL_P(subpats), &result_set); in php_pcre_match_impl()
1024 add_offset_pair(subpats, subject + offsets[i<<1], in php_pcre_match_impl()
1033 add_assoc_null(subpats, subpat_names[i]); in php_pcre_match_impl()
1035 add_assoc_str(subpats, subpat_names[i], ZSTR_EMPTY_ALLOC()); in php_pcre_match_impl()
1038 add_assoc_stringl(subpats, subpat_names[i], subject + offsets[i<<1], in php_pcre_match_impl()
1044 add_next_index_null(subpats); in php_pcre_match_impl()
1046 add_next_index_str(subpats, ZSTR_EMPTY_ALLOC()); in php_pcre_match_impl()
1049 add_next_index_stringl(subpats, subject + offsets[i<<1], in php_pcre_match_impl()
1057 add_offset_pair(subpats, subject + offsets[i<<1], in php_pcre_match_impl()
1065 add_next_index_null(subpats); in php_pcre_match_impl()
1067 add_next_index_str(subpats, ZSTR_EMPTY_ALLOC()); in php_pcre_match_impl()
1070 add_next_index_stringl(subpats, subject + offsets[i<<1], in php_pcre_match_impl()
1078 add_assoc_string_ex(subpats, "MARK", sizeof("MARK") - 1, (char *)mark); in php_pcre_match_impl()
1112 if (global && subpats && subpats_order == PREG_PATTERN_ORDER) { in php_pcre_match_impl()
1116 zend_hash_str_update(Z_ARRVAL_P(subpats), subpat_names[i], in php_pcre_match_impl()
1120 zend_hash_next_index_insert(Z_ARRVAL_P(subpats), &match_sets[i]); in php_pcre_match_impl()
1124 zend_hash_next_index_insert(Z_ARRVAL_P(subpats), &match_sets[i]); in php_pcre_match_impl()
1130 add_assoc_zval(subpats, "MARK", &marks); in php_pcre_match_impl()