#36304 [Opn->Bgs]: reference.pcre.pattern.modifiers: u (PCRE_UTF8)
| From: | tony2001@php.net | 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 "т"(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