Edit report at https://bugs.php.net/bug.php?id=61456&edit=1
ID: 61456
User updated by:tamate at hotmail dot com
Reported by:tamate at hotmail dot com
Summary:iconv set encoding bug
Status: Open
Type: Bug
-Package:Testing related
+Package:ICONV related
Operating System: Linux
PHP Version:5.3.10
Block user comment: N
Private report: N
New Comment:
ICONV related*
Previous Comments:
[2012-03-20 17:08:01] tamate at hotmail dot com
Line 5*
Live example - http://giantcrabby.com/test/test.php
[2012-03-20 17:02:07] tamate at hotmail dot com
Description:
---
>From manual page: http://php.net/manual/en/function.iconv-set-encoding.php
---
Test script:
---
Expected result:
Running successfully
Actual result:
--
If you try the above one, you will get this error -
Parse error: syntax error, unexpected T_STRING in directory/blah/directory on
line 3
Pointed at iconv_set_encoding('output_encoding','ISO-8859-1//TRANSLIT//IGNORE');
even if you try iconv_set_encoding('output_encoding','ISO-8859-1');
You will see that you will still get an error.
I am not sure why this is happening, I am running on linux php 5.3
Or is there something wrong with my coding?
--
Edit this bug report at https://bugs.php.net/bug.php?id=61456&edit=1