Lines Matching refs:err
249 static void php_ereg_eprint(int err, regex_t *re TSRMLS_DC) { in php_ereg_eprint() argument
256 buf_len = regerror(REG_ITOA | err, re, NULL, 0); in php_ereg_eprint()
261 regerror(REG_ITOA | err, re, buf, buf_len); in php_ereg_eprint()
266 len = regerror(err, re, NULL, 0); in php_ereg_eprint()
277 regerror(err, re, message + buf_len, len); in php_ereg_eprint()
297 int err, match_len, string_len; in php_ereg() local
319 err = regcomp(&re, Z_STRVAL_PP(regex), REG_EXTENDED | copts); in php_ereg()
327 err = regcomp(&re, Z_STRVAL_PP(regex), copts); in php_ereg()
330 if (err) { in php_ereg()
331 php_ereg_eprint(err, &re TSRMLS_CC); in php_ereg()
342 err = regexec(&re, string, re.re_nsub+1, subs, 0); in php_ereg()
343 if (err && err != REG_NOMATCH) { in php_ereg()
344 php_ereg_eprint(err, &re TSRMLS_CC); in php_ereg()
351 if (array && err != REG_NOMATCH) { in php_ereg()
374 if (err == REG_NOMATCH) { in php_ereg()
414 int err, copts = 0; in php_ereg_replace() local
425 err = regcomp(&re, pattern, copts); in php_ereg_replace()
426 if (err) { in php_ereg_replace()
427 php_ereg_eprint(err, &re TSRMLS_CC); in php_ereg_replace()
440 err = pos = 0; in php_ereg_replace()
442 while (!err) { in php_ereg_replace()
443 err = regexec(&re, &string[pos], re.re_nsub+1, subs, (pos ? REG_NOTBOL : 0)); in php_ereg_replace()
445 if (err && err != REG_NOMATCH) { in php_ereg_replace()
446 php_ereg_eprint(err, &re TSRMLS_CC); in php_ereg_replace()
453 if (!err) { in php_ereg_replace()
636 int err, size, copts = 0; in php_split() local
649 err = regcomp(&re, spliton, REG_EXTENDED | copts); in php_split()
650 if (err) { in php_split()
651 php_ereg_eprint(err, &re TSRMLS_CC); in php_split()
658 while ((count == -1 || count > 1) && !(err = regexec(&re, strp, 1, subs, 0))) { in php_split()
694 if (err && err != REG_NOMATCH) { in php_split()
695 php_ereg_eprint(err, &re TSRMLS_CC); in php_split()