Edit report at http://bugs.php.net/bug.php?id=51575&edit=1
ID: 51575 Updated by: [email protected] Reported by: pretender at design dot ru Summary: S modifier causes preg_match to behave incorrectly Status: Open Type: Bug Package: PCRE related PHP Version: 5.2.13 New Comment: 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 Previous Comments: ------------------------------------------------------------------------ [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
