ID:               22415
 Updated by:       [EMAIL PROTECTED]
 Reported By:      admin at naxe dot net
-Status:           Open
+Status:           Feedback
 Bug Type:         Strings related
 Operating System: Linux Red Hat v7.3
 PHP Version:      4.3.0
 New Comment:

from the manual page on strtolower:
"Note that 'alphabetic' is determined by the current locale. "

are you sure that this is not just a locale settings problem?


Previous Comments:
------------------------------------------------------------------------

[2003-02-25 08:05:45] admin at naxe dot net

Hi,

I make massive use of PHP so I tested many times before report this
that I think is a bug:

This is the example script:

$ch=chr(180);
echo $ch;
echo strtolower($ch);
echo strtoupper($ch);

The result will be this: ´¸´ instead of this: ´´´

This bug seems that occur only with PHP v4.3.0, I tested it also with
PHP v4.2.2 ad it was ok.

I uploaded the script on two different server of mine:

http://www.dez.it/test/strtolower.php here with PHP v4.2.2
(http://www.dez.it/test/phpinfo.php for phpinfo)

http://www.postare.it/test/strtolower.php here with PHP v4.3.0
(http://www.postare.it/test/phpinfo.php for phpinfo)

As said the first link works ok, the seconds has this strange
behaviour, it modify chr(180) to chr(184). I haven't tested with all
the ascii set.

I hope this report was useful.

Good debug.

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=22415&edit=1

Reply via email to