Doc #67041 [NEW]: POSIX character classes and UTF-8
From: cmbecker69 at gmx dot de
Operating system: *
PHP version: 5.5.11
Package: PCRE related
Bug Type: Documentation Problem
Bug description:POSIX character classes and UTF-8
Description:
------------
The PREG manual states[1]:
| In UTF-8 mode, characters with values greater than 128 do not
| match any of the POSIX character classes.
However, that is not necessarily true, so the statement should be
changed appropriately.
Test script:
---------------
var_dump(preg_match('/^[[:alnum:]]$/u', "\xc3\x84"));
Expected result:
----------------
int(0) // expected according to the current documentation
Actual result:
--------------
int(1)
--
Edit bug report at https://bugs.php.net/bug.php?id=67041&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=67041&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=67041&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=67041&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=67041&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=67041&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=67041&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=67041&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=67041&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=67041&r=support
Expected behavior: https://bugs.php.net/fix.php?id=67041&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=67041&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=67041&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=67041&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=67041&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=67041&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=67041&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=67041&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=67041&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=67041&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=67041&r=mysqlcfg
Thread (5 messages)
- cmbecker69 at gmx dot de