Re: Incomprehension with preg_match and utf8
| From: | Galen Wright-Watson | Date: | Tue, 06 Nov 2012 09:58:53 +0000 |
| Subject: | Re: Incomprehension with preg_match and utf8 | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-63758@lists.php.net to get a copy of this message | ||
On Mon, Nov 5, 2012 at 8:54 PM, Philip Olson <philip@roshambo.org> wrote:
>
> [...]
> A few simple/related facts:
>
> [...]
> - Gustavo mentioned the related PHP change on Oct 3, 2010 (not sure
> what PHP version, and googling for "87a237342" turns up empty,
> and I miss SVN version numbers)
>
For reference: php_version.h<http://git.php.net/?p=php-src.git;a=blob;f=main/php_version.h;h=bfa499ac7f1daa2292c75cdc1398950b43d35174;hb=87a237342282fe036bb90486fdd6cdc392e16ac7>
in commit 87a237342282fe036bb90486fdd6cdc392e16ac7<http://git.php.net/?p=php-src.git;a=commit;h=87a237342282fe036bb90486fdd6cdc392e16ac7>
lists
the version as 5.3.99-dev. The commit adds
PCRE_UCP<http://git.php.net/?p=php-src.git;a=commitdiff;h=87a237342282fe036bb90486fdd6cdc392e16ac7;hp=00f75c79ca9318cbd57590b4c01144369612b3c2>when
defined and the "u" modifier is used. The commit message is:
- Fixed bug #52971 (PCRE-Meta-Characters not working with utf-8)
> # In PCRE, by default, \d, \D, \s, \S, \w, and \W recognize only ASCII
> # characters, even in UTF-8 mode. However, this can be changed by
> setting
> # the PCRE_UCP option.
The PHP changelog lists version 5.3.4
<http://php.net/ChangeLog-5.php#5.3.4>as
containing the fix for bug
#52971 <https://bugs.php.net/bug.php?id=52971>.