Bug #66068 [Opn->Fbk]: Random ASCII Mode Behavior in PCRE
| From: | nikic@php.net | Date: | Fri, 08 Nov 2013 19:40:34 +0000 |
| Subject: | Bug #66068 [Opn->Fbk]: Random ASCII Mode Behavior in PCRE | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-182669@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=66068&edit=1
ID: 66068
Updated by: nikic@php.net
Reported by: miqrogroove at hotmail dot com
Summary: Random ASCII Mode Behavior in PCRE
-Status: Open
+Status: Feedback
Type: Bug
Package: *Regular Expressions
Operating System: All
PHP Version: 5.4.21
Block user comment: N
Private report: N
New Comment:
Please check whether all versions you tested this on use the bundled PCRE library. If you are using
an external library and it's configured in some non-standard way there is nothing we can do
about it.
Previous Comments:
------------------------------------------------------------------------
[2013-11-08 18:33:51] miqrogroove at hotmail dot com
Description:
------------
I'm working on a bug patch for WordPress. I am getting random results from the \s sequence in
PCRE depending on which computer I use. Tried getting another opinion from PCRE, and so far the
consensus is that it's some kind of PHP bug. See also http://bugs.exim.org/show_bug.cgi?id=1412
These computers are not all running latest versions... if there is a version issue I'd like to
know about that too.
Test script:
---------------
echo preg_match('/\s/', "\xA0");
Expected result:
----------------
0
Actual result:
--------------
Some computers say 0, some computers say 1.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=66068&edit=1