Lines Matching refs:preg
68 regex_t preg; member
127 static int _php_regcomp(regex_t *preg, const char *pattern, int cflags) in _php_regcomp() argument
152 if (rc->preg.re_magic != reg_magic) { in _php_regcomp()
156 memcpy(preg, &rc->preg, sizeof(*preg)); in _php_regcomp()
161 r = regcomp(preg, pattern, cflags); in _php_regcomp()
167 memcpy(&rcp.preg, preg, sizeof(*preg)); in _php_regcomp()
173 if (!reg_magic) reg_magic = preg->re_magic; in _php_regcomp()
178 memcpy(preg, &rc->preg, sizeof(*preg)); in _php_regcomp()
180 r = regcomp(preg, pattern, cflags);
186 memcpy(&rcp.preg, preg, sizeof(*preg));
198 regfree(&rc->preg); in _free_ereg_cache()