From: kamarton at gmail dot com
Operating system: Win XP
PHP version: 5.2.6
PHP Bug Type: Unicode Engine related
Bug description: Reg exp. '/\w/u' not include ő, ű, Ő and
Ű utf characters
Description:
------------
The regular expression engine with 'u' modifiers '\w' class not include
few hungarian characters.
Not include: ő, ű, Ő and Ű.
PHP source file coding in utf8 with BOM.
Sorry my english.
Regards,
Marton
System:
WinXP, SP2
PHP 5.2.5 (xampp version)
(source editor: Notepad++ v4.9.2.)
Reproduce code:
---------------
echo preg_replace('/\w/u','_','öüóőúéáűíÖÜÓŐÚÉÁŰÍ');
Expected result:
----------------
echo -> '__________________'
Actual result:
--------------
echo -> '___ő___ű____Ő___Ű_'
--
Edit bug report at http://bugs.php.net/?id=45035&edit=1
--
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=45035&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=45035&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=45035&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=45035&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=45035&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=45035&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=45035&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=45035&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=45035&r=support
Expected behavior: http://bugs.php.net/fix.php?id=45035&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=45035&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=45035&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=45035&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45035&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=45035&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=45035&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=45035&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=45035&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=45035&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=45035&r=mysqlcfg