#36304 [Opn->Bgs]: reference.pcre.pattern.modifiers: u (PCRE_UTF8)

From: Date: Mon, 06 Feb 2006 15:13:24 +0000
Subject: #36304 [Opn->Bgs]: reference.pcre.pattern.modifiers: u (PCRE_UTF8)
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-92983@lists.php.net to get a copy of this message
ID: 36304 Updated by: tony2001@php.net Reported By: kkamkou at gmail dot com -Status: Open +Status: Bogus Bug Type: PCRE related Operating System: winXpSP2 PHP Version: 4.4.2 New Comment: Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Due to the volume of reports we can not explain in detail here why your report is not a bug. The support channels will be able to provide an explanation for you. Thank you for your interest in PHP. Previous Comments: ------------------------------------------------------------------------ [2006-02-06 15:57:59] kkamkou at gmail dot com Description: ------------ !! !! CYR TEXT HERE! (windows-1251) !! UTF-8 word "&#1090;"(and some else) != (\w) Reproduce code: --------------- <?php echo preg_replace("/[^\w\d\-]/u" , '', "&#1056;&#1111;&#1057;&#1026;&#1056;&#1105;&#1056;&#1030;&#1056;µ&#1057;&#8218;"); echo "<hr />"; echo preg_replace("/[^\w\d\-]/" , '', "&#1056;&#1111;&#1057;&#1026;&#1056;&#1105;&#1056;&#1030;&#1056;µ&#1057;&#8218;"); //as result &#1087;&#1088;&#1080;&#1074;&#1077;[] <- last tag is unknown echo "<hr />"; echo preg_replace("/\w/u" , '#', "&#1056;&#1111;&#1057;&#1026;&#1056;&#1105;&#1056;&#1030;&#1056;µ&#1057;&#8218;"); //as result &#1087;&#1088;&#1080;&#1074;&#1077;&#1090; != ###### ?> Expected result: ---------------- &#1087;&#1088;&#1080;&#1074;&#1077;&#1090; == &#1087;&#1088;&#1080;&#1074;&#1077;&#1090; Actual result: -------------- &#1087;&#1088;&#1080;&#1074;&#1077;&#1090; != &#1087;&#1088;&#1080;&#1074;&#1077;&#1090; ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=36304&edit=1

« previous php.bugs (#92983) next »