Lines Matching refs:pattern
630 + /*zval pattern;
634 + convert_libmagic_pattern(&pattern, m->value.s, strlen(m->value.s), options);
636 + if ((pce = pcre_get_compiled_regex_cache(Z_STR(pattern))) == NULL) {
2057 +extern public void convert_libmagic_pattern(zval *pattern, char *val, int len, int options);
3204 for (i = 0; nv[i].pattern != NULL; i++)
3205 if (strcasestr(vbuf, nv[i].pattern) != NULL) {
3324 + zend_string *pattern;
3333 + pattern = zend_string_init("~%[-0-9.]*s~", sizeof("~%[-0-9.]*s~") - 1, 0);
3334 + if ((pce = pcre_get_compiled_regex(pattern, &re_extra, &re_options)) == NULL) {
3342 + zend_string_release(pattern);
3508 +convert_libmagic_pattern(zval *pattern, char *val, int len, int options)
3539 + ZVAL_NEW_STR(pattern, t);
3552 + zval pattern;
3571 + convert_libmagic_pattern(&pattern, (char *)m->value.s, m->vallen, options);
3574 + if ((pce = pcre_get_compiled_regex_cache(Z_STR(pattern))) == NULL) {
3575 + zval_ptr_dtor(&pattern);
3612 + zval_ptr_dtor(&pattern);
3631 + ms->search.rm_len = Z_STRLEN_P(match) /* This is the length of the matched pattern */;
3639 + zval_ptr_dtor(&pattern);
3675 + zval_ptr_dtor(&pattern);