|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-09-17 15:34 UTC] jani@php.net
[2009-09-25 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 15:00:01 2025 UTC |
Description: ------------ If you try to convert one character set into the same character set using this function, it causes a 500 internal server error that shows up in the logs as: [error] [client XXX.XXX.XXX.XXX] Premature end of script headers: myscript.php Reproduce code: --------------- $charset = "ISO-8859-1"; try { $i= iconv($charset, "ISO-8859-1", "123321ksdjvskjdfksdfbasbdaSDjhdb"); echo $i; } catch (Exception $e) { echo 'Caught exception: ', $e->getMessage(), "\n"; } Expected result: ---------------- 123321ksdjvskjdfksdfbasbdaSDjhdb Actual result: -------------- 500 Internal Server Error