Bug #60057 [Opn]: declare(encoding="UTF-8")=="Unsupported encoding"
| From: | cataphract@php.net | Date: | Sat, 15 Oct 2011 14:13:38 +0000 |
| Subject: | Bug #60057 [Opn]: declare(encoding="UTF-8")=="Unsupported encoding" | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-164336@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=60057&edit=1
ID: 60057
Updated by: cataphract@php.net
Reported by: ryan at ryan-hanekamp dot com
Summary: declare(encoding="UTF-8")=="Unsupported encoding"
Status: Open
Type: Bug
Package: Unicode Engine related
Operating System: Vista Home Premium SP2
PHP Version: 5.4.0beta1
Block user comment: N
Private report: N
New Comment:
Do you have mbstring enabled? Zend multibyte requires an extension that provide the multibyte
functions:
http://lxr.php.net/xref/PHP_TRUNK/Zend/zend_multibyte.c#multibyte_functions
Previous Comments:
------------------------------------------------------------------------
[2011-10-13 17:07:48] ryan at ryan-hanekamp dot com
Description:
------------
This is on the precompiled Windows QA NTS build 2011-Sep-15 14:27:38, running on Apache 2.2 as CGI.
Multibyte support is now included by default, and my php.ini file includes "zend.multibyte =
On" as a directive. Any script that includes the line
declare(encoding="UTF-8");
Triggers this warning:
Warning: Unsupported encoding [UTF-8] in XXX on line YYY
I have tried changing case and removing the dash. Presuming this derives from the same functionality
as Multibyte Strings, this should be the correct name for this encoding: http://us2.php.net/manual/en/mbstring.supported-encodings.php
Test script:
---------------
declare(encoding="UTF-8");
Expected result:
----------------
Silent parsing of the script as UTF-8.
Actual result:
--------------
Warning: Unsupported encoding [UTF8] in H:\webserver\pd\wwwroot\qwertyuiop\index.php on line 1
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=60057&edit=1