[wp-trac] [WordPress Trac] #22692: Quotes Are Messing Up
WordPress Trac
noreply at wordpress.org
Fri Nov 8 18:31:40 UTC 2013
#22692: Quotes Are Messing Up
--------------------------+------------------
Reporter: miqrogroove | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.8
Component: Formatting | Version: 1.2
Severity: normal | Resolution:
Keywords: has-patch |
--------------------------+------------------
Comment (by azaozz):
Very nice, super fast turnaround from PCRE :)
As far as I see the problem comes from here:
{{{
/\s/W
\x{a0}
0: \xa0
}}}
(non-UTF mode, but with Unicode properties).
If PCRE was compiled with Unicode properties support *and* ? PCRE_UCP is
passed at compile time, `\s` will match `\xa0` even when not in UTF mode.
However in PHP `PCRE_UCP` is only passed when the `u` modifier is set:
http://svn.php.net/viewvc/php/php-
src/trunk/ext/pcre/php_pcre.c?r1=303963&r2=303962&pathrev=303963 since PHP
5.3.4. And that hasn't changed in newer versions: http://git.php.net/?p
=php-
src.git;a=blob;f=ext/pcre/php_pcre.c;h=7d34d9feb15a81b5e80973cf1aaa1c4936543173;hb=refs/heads/master#l366.
... Still can't pinpoint the inconsistencies with `\s`.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22692#comment:52>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list