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" , '', "привет"); echo "<hr />"; echo preg_replace("/[^\w\d\-]/" , '', "привет"); //as result приве[] <- last tag is unknown echo "<hr />"; echo preg_replace("/\w/u" , '#', "привет"); //as result привет != ###### ?> Expected result: ---------------- привет == привет Actual result: -------------- привет != привет ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=36304&edit=1
