Re: XML Bug #32001

From: Date: Fri, 11 Mar 2005 16:28:27 +0000
Subject: Re: XML Bug #32001
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-15373@lists.php.net to get a copy of this message
On 2005/03/11, at 20:38, Rob Richards wrote:
The test works fine for me under linux. Only difference is on windows and there its to how windows performs php_strtoupper differently. If case folding is turned off under windows, the test passes.
It looks like the problem is due to the following facts. - php_strtoupper() depends on the locale settings. - toupper() works differently between platforms. Besides it isn't designed to handle multibyte strings like UTF-8. I was mostly testing on Linux so I couldn't replicate it (now verified on Mac OS X). I think case folding option doesn't make any sense if it doesn't work perfectly and we better deprecate it until some unicode-aware case folding function is available. Moriyoshi
Rob Moriyoshi Koizumi wrote:
On 2005/03/11, at 10:24, Marcus Boerger wrote:
Hello moriyoshi or any other XMLer, please verify the --EXPECT-- data in test ext/xml/tests/bug32001.phpt i am quite sure there are several mistakes in it.
Excuse me if I'm just missing something, what kind of mistake do you want to address? Moriyoshi


« previous php.internals (#15373) next »