# XML Bug #32001

- Thread: https://externals.io/message/15365
- Original archive: https://news-web.php.net/php.internals/15365
- Started by Marcus Boerger on 2005-03-11T01:24:54+00:00
- Messages: 5
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #15365 — Marcus Boerger — 2005-03-11T01:24:54+00:00

URL: https://externals.io/message/15365#15365

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.

-- 
Best regards,
 Marcus                          mailto:mail@marcus-boerger.de

---

## #15368 — Moriyoshi Koizumi — 2005-03-11T03:44:19+00:00

URL: https://externals.io/message/15365#15368 · In reply to: #15365

> 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

---

## #15371 — Marcus Boerger — 2005-03-11T09:59:44+00:00

URL: https://externals.io/message/15365#15371 · In reply to: #15368

Hello Moriyoshi,

Friday, March 11, 2005, 4:44:19 AM, you wrote:


> 

> > […]

> Excuse me if I'm just missing something, what kind of mistake do
> you want to address?

Somehow i have the feeling that most of the expected results are wrong
by simply looking at file in hex format. So it would be nice if someone
could confirm or decline that.



-- 
Best regards,
 Marcus                            mailto:mail@marcus-boerger.de

---

## #15372 — Rob Richards — 2005-03-11T11:38:53+00:00

URL: https://externals.io/message/15365#15372 · In reply to: #15368

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.

Rob

Moriyoshi Koizumi wrote:
> 
> 
> 
> > […]
> 
> 
> Excuse me if I'm just missing something, what kind of mistake do
> you want to address?
> 
> Moriyoshi

---

## #15373 — Moriyoshi Koizumi — 2005-03-11T16:28:27+00:00

URL: https://externals.io/message/15365#15373 · In reply to: #15372

> 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:
> > […]
