Lines Matching refs:pattern
576 + zend_string *pattern;
580 + pattern = convert_libmagic_pattern(m->value.s, strlen(m->value.s), options);
582 + if ((pce = pcre_get_compiled_regex_cache(pattern)) == NULL) {
583 + zend_string_release(pattern);
588 + zend_string_release(pattern);
2256 + zend_string *pattern;
2264 + pattern = convert_libmagic_pattern((char*)pat, strlen(pat), opts);
2265 + if ((pce = pcre_get_compiled_regex_cache_ex(pattern, 0)) == NULL) {
2266 + zend_string_release(pattern);
2270 + zend_string_release(pattern);
2991 - for (i = 0; nv[i].pattern != NULL; i++)
2992 - if (strcasestr(vbuf, nv[i].pattern) != NULL) {
2994 + for (i = 0; nv[i].pattern != NULL; i++) {
2998 + pattern_lower = zend_str_tolower_dup(nv[i].pattern, strlen(nv[i].pattern));
3224 + zend_string *pattern;
3232 + pattern = zend_string_init("~%[-0-9\\.]*s~", sizeof("~%[-0-9\\.]*s~") - 1, 0);
3233 + if ((pce = pcre_get_compiled_regex_cache_ex(pattern, 0)) == NULL) {
3246 + zend_string_release(pattern);
3295 + /* XXX Dirty. The data and the pattern is what is causing this.
3374 + zend_string *pattern;
3393 + pattern = convert_libmagic_pattern((char *)m->value.s, m->vallen, options);
3396 + if ((pce = pcre_get_compiled_regex_cache(pattern)) == NULL) {
3397 + zend_string_release(pattern);
3428 + zend_string_release(pattern);
3451 + ms->search.rm_len = Z_STRLEN_P(match) /* This is the length of the matched pattern */;
3459 + zend_string_release(pattern);
3488 + zend_string_release(pattern);