Home
last modified time | relevance | path

Searched refs:pattern_offset (Results 1 – 2 of 2) sorted by relevance

/PHP-5.5/ext/fileinfo/libmagic/
H A Dsoftmagic.c2096 zval *pattern_match = NULL, *pattern_offset = NULL; in magiccheck() local
2155 MAKE_STD_ZVAL(pattern_offset); in magiccheck()
2156 Z_LVAL_P(pattern_offset) = Z_LVAL(offsetcopy); in magiccheck()
2157 Z_TYPE_P(pattern_offset) = IS_LONG; in magiccheck()
2165 if ((pattern_match != NULL) && (pattern_offset != NULL)) { in magiccheck()
2166 ms->search.s += (int)Z_LVAL_P(pattern_offset); /* this is where the match starts */ in magiccheck()
2167 …ms->search.offset += (size_t)Z_LVAL_P(pattern_offset); /* this is where the match starts as size_t… in magiccheck()
2172 efree(pattern_offset); in magiccheck()
/PHP-5.5/ext/fileinfo/
H A Dlibmagic.patch3461 + zval *pattern_match = NULL, *pattern_offset = NULL;
3520 + MAKE_STD_ZVAL(pattern_offset);
3521 + Z_LVAL_P(pattern_offset) = Z_LVAL(offsetcopy);
3522 + Z_TYPE_P(pattern_offset) = IS_LONG;
3530 + if ((pattern_match != NULL) && (pattern_offset != NULL)) {
3531 + ms->search.s += (int)Z_LVAL_P(pattern_offset); /* this is where the match starts */
3532 + ms->search.offset += (size_t)Z_LVAL_P(pattern_offset); /* this is where the match starts as …
3537 + efree(pattern_offset);

Completed in 19 milliseconds