regex failure
| From: | Sascha Schumann | Date: | Fri, 18 Jun 1999 13:32:09 +0000 |
| Subject: | regex failure | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-7072@lists.php.net to get a copy of this message | ||
As noted before, URLs passed to url.c:url_parse() are failing
here always. I've tracked down the point in url_parse() which
does not seem to work correctly.
The error must be related to the bundled regex library since it
works with the system library.
On line 132+ of url.c you find
if ((err=regcomp(&re, "^(([^@:]+)(:([^@:]+))?@)?([^:@]+)(:([^:@]+))?", REG_EXTENDED))
|| (err=regexec(&re, result, 10, subs, 0))) {
regcomp() succeeds, but regexec() fails with REG_NOMATCH on my
system (Linux/Alpha 2.2.10, glibc-2.1.1, egcs-1.1.2). I really
don't know how to track that down further, since I'm not familiar
with the regex code. Anyone want to give it a try?
--
Regards,
Sascha Schumann
Consultant