Re: Re: Bug #1683 Updated: Failing to parse/compile a *? pattern.

From: Date: Fri, 09 Jul 1999 03:55:44 +0000
Subject: Re: Re: Bug #1683 Updated: Failing to parse/compile a *? pattern.
References: 1 2 3 4  Groups: php.dev 
Request: Send a blank email to php-dev+get-8233@lists.php.net to get a copy of this message
> I don't know that I've ever seen a regex implementation that supported > collating patterns, although since they're in the POSIX spec, I guess > someone must have implemented them. Well, it looks like PHP's will do it with one character. Kind of defeats the idea of collating. from regcomp.c function p_b_coll_elem: if (len == 1) return(*sp); /* single character */ SETERROR(REG_ECOLLATE); /* neither */ return(0); See there at the end it checks if the length is 1 and if it is everything is hunky dory. Otherwise, it screws ya. I wonder what would happen if that if was commented out? Brian.

« previous php.dev (#8233) next »