ID:               49575
 Updated by:       [email protected]
 Reported By:      me at mikearsenault dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         ICONV related
 Operating System: Linux
 PHP Version:      5.2SVN-2009-09-17 (SVN)
 New Comment:

Please try using this snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/

works fine for me.


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

[2009-09-17 01:14:52] me at mikearsenault dot com

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


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


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

Reply via email to