Bug #61456 [Opn->Nab]: iconv set encoding bug
| From: | philip@php.net | Date: | Tue, 20 Mar 2012 19:11:41 +0000 |
| Subject: | Bug #61456 [Opn->Nab]: iconv set encoding bug | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-168660@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=61456&edit=1
ID: 61456
Updated by: philip@php.net
Reported by: tamate at hotmail dot com
Summary: iconv set encoding bug
-Status: Open
+Status: Not a bug
Type: Bug
Package: ICONV related
Operating System: Linux
PHP Version: 5.3.10
Block user comment: N
Private report: N
New Comment:
You're missing a ; on line #4.
Previous Comments:
------------------------------------------------------------------------
[2012-03-20 17:10:36] tamate at hotmail dot com
ICONV related*
------------------------------------------------------------------------
[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:
---------------
<?php
if(function_exists('iconv'))
{
iconv_set_encoding('internal_encoding','UTF-8')
iconv_set_encoding('output_encoding','ISO-8859-1//TRANSLIT//IGNORE');
ob_start('ob_iconv_handler');
}
?>
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