From:             admin at naxe dot net
Operating system: Linux Red Hat v7.3
PHP version:      4.3.0
PHP Bug Type:     Strings related
Bug description:  strtolower()

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 bug report at http://bugs.php.net/?id=22415&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=22415&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=22415&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=22415&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=22415&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=22415&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=22415&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=22415&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=22415&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=22415&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=22415&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22415&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=22415&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=22415&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=22415&r=gnused

Reply via email to