Mantis - Quercus
Viewing Issue Advanced Details
3393 minor always 03-16-09 14:17 03-18-09 16:43
koreth  
nam  
normal  
closed 4.0.0  
fixed  
none    
none 4.0.0  
0003393: preg_match doesn't return full UTF-8 sequences in Unicode matches
<?php
$str = "a\xE2\x80\xBAz";
$matches = array();
preg_match('/([\x{203A}])/u', $str, $matches);
print strlen($matches[1]);

Regular PHP prints "3". Quercus prints "1".

Notes
(0003901)
nam   
03-18-09 16:43   
php/153l