ID:               36304
 Updated by:       [EMAIL PROTECTED]
 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 "т"(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

Reply via email to