Mantis - Quercus
Viewing Issue Advanced Details
3131 minor always 12-06-08 16:43 01-04-09 15:44
koreth  
ferg  
urgent  
closed 3.2.1  
fixed  
none    
none 4.0.0  
0003131: preg_match doesn't support Unicode character classes
<?php
$text = "\xD8\xB6"; // Arabic letter "dad" in UTF-8 encoding
print preg_match('/[\p{Arabic}]/', $text) ? "match" : "no match";

This prints "match" in vanilla PHP and "no match" in Quercus.

Notes
(0003579)
koreth   
12-06-08 17:12   
This is low priority -- I can work around it by changing the regex to scan for UTF-8 patterns (and in fact that's higher performance anyway, if a bit less readable.)
(0003693)
ferg   
01-04-09 15:44   
php/4er0