Re: Incomprehension with preg_match and utf8
| From: | Jean-Sébastien Hedde | Date: | Mon, 05 Nov 2012 16:41:54 +0000 |
| Subject: | Re: Incomprehension with preg_match and utf8 | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-63746@lists.php.net to get a copy of this message | ||
On Mon, 05 Nov 2012 08:04:06 -0800, Rasmus Lerdorf <rasmus@lerdorf.com>
wrote:
>
> I think the documentation is wrong on that. In Unicode mode [[:alnum:]]
> actually becomes \p{Xan} which should match Unicode chars as well, but
> only if PCRE was compiled with Unicode support. So I suspect you don't
> actually have a Unicode-capable PCRE build in some cases there.
>
> -Rasmus
I will report the bug to the package maintainers (remi, debian too...).
Is there anyway for us to avoid those "wrong" builds ?
Regards,
--
Jean-Sébastien Hedde
au-fil-du.net