From: php at pwnt dot be Operating system: Windows XP SP3 PHP version: 5.2.10 PHP Bug Type: PCRE related Bug description: Unicode character properties misbehave
Description: ------------ The behavior described at http://php.net/manual/en/regexp.reference.unicode.php seems to have changed between PHP 5.2.8 and 5.2.10 (don't know about 5.2.9). I use preg_match() with a \p regexp to check if a character is a letter (or a number, in this case), and this seems to fail for wide characters in 5.2.10. Reproduce code: --------------- echo preg_match('/^[\pL\pN]$/', 'é'); Expected result: ---------------- 1 Actual result: -------------- PHP 5.2.8: 1 PHP 5.2.10: 0 -- Edit bug report at http://bugs.php.net/?id=48790&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48790&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48790&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48790&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=48790&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=48790&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=48790&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=48790&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=48790&r=needscript Try newer version: http://bugs.php.net/fix.php?id=48790&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=48790&r=support Expected behavior: http://bugs.php.net/fix.php?id=48790&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=48790&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=48790&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=48790&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48790&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=48790&r=dst IIS Stability: http://bugs.php.net/fix.php?id=48790&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=48790&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=48790&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=48790&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=48790&r=mysqlcfg