[TYPO3-core] RFC: problem with php4 and xml data with byte order mark

Michael Stucki michael at typo3.org
Fri Nov 17 19:52:50 CET 2006


Hi Martin,

>> - The preg_match does not work anymore. Tested with PHP 5.1
> 
> Why? I haven't changed it and you have changed
> preg_match('/^[[:space:]]* to preg_match('/^(|.{3}) The old version does
> not work with a BOM, that's why the BOM check comes first. As a BOM for
> UTF-16 has four and not three bytes your version (look for 0 or 3 bytes)
> makes not much sense.

I didn't know that, just made an assumption that BOM has always three bytes.
But then it's ok, please commit according to the comments I have made in my
last mail.

- michael
-- 
Use a newsreader! Check out
http://typo3.org/community/mailing-lists/use-a-news-reader/



More information about the TYPO3-team-core mailing list