Bug #51575 [Opn->Bgs]: S modifier causes preg_match to behave incorrectly
| From: | felipe@php.net | Date: | Fri, 23 Apr 2010 20:16:12 +0000 |
| Subject: | Bug #51575 [Opn->Bgs]: S modifier causes preg_match to behave incorrectly | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-149835@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=51575&edit=1
ID: 51575
Updated by: felipe@php.net
Reported by: pretender at design dot ru
Summary: S modifier causes preg_match to behave incorrectly
-Status: Open
+Status: Bogus
Type: Bug
Package: PCRE related
PHP Version: 5.2.13
New Comment:
Not a PHP bug.
Previous Comments:
------------------------------------------------------------------------
[2010-04-21 19:09:55] felipe@php.net
This is a probable PCRE lib bug. I've reported this issue to a open
recent bug report: http://bugs.exim.org/show_bug.cgi?id=976
------------------------------------------------------------------------
[2010-04-16 19:29:05] pretender at design dot ru
Description:
------------
With some UTF-8 letters of Cyrillic block preg_match behaves incorrectly
with S
modifier.
Test script:
---------------
<?=(preg_match('#Ф#uiS', 'Ñ') == preg_match('#Ф#ui',
'Ñ')) ?
"passed" : "failed"?>
Expected result:
----------------
"passed"
Actual result:
--------------
"failed"
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=51575&edit=1