Bug #76512 [NEW]: \w no longer includes unicode characters

From: Date: Thu, 21 Jun 2018 13:47:22 +0000
Subject: Bug #76512 [NEW]: \w no longer includes unicode characters
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-215833@lists.php.net to get a copy of this message
From: leo dot feyer at gmail dot com Operating system: MacOS PHP version: 7.3.0alpha2 Package: PCRE related Bug Type: Bug Bug description:\w no longer includes unicode characters Description: ------------ The \w escape sequence no longer includes unicode characters in PHP 7.3. See https://3v4l.org/uJKEC I don't know if this is intended, but since the change is not mentioned in the UPGRADING file, it might be not. Test script: --------------- var_dump(preg_match('/\w/u', 'ä')); Expected result: ---------------- The test script returns int(1) on PHP <7.3 and int(0) on PHP 7.3. -- Edit bug report at https://bugs.php.net/bug.php?id=76512&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=76512&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=76512&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=76512&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=76512&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=76512&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=76512&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=76512&r=needscript Try newer version: https://bugs.php.net/fix.php?id=76512&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=76512&r=support Expected behavior: https://bugs.php.net/fix.php?id=76512&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=76512&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=76512&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=76512&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=76512&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=76512&r=dst IIS Stability: https://bugs.php.net/fix.php?id=76512&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=76512&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=76512&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=76512&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=76512&r=mysqlcfg

« previous php.bugs (#215833) next »