From: Operating system: Vista Home Premium SP2 PHP version: 5.4.0beta1 Package: Unicode Engine related Bug Type: Bug Bug description:declare(encoding="UTF-8")=="Unsupported encoding"
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 bug report at https://bugs.php.net/bug.php?id=60057&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=60057&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=60057&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=60057&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=60057&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=60057&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=60057&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=60057&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=60057&r=needscript Try newer version: https://bugs.php.net/fix.php?id=60057&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=60057&r=support Expected behavior: https://bugs.php.net/fix.php?id=60057&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=60057&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=60057&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=60057&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=60057&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=60057&r=dst IIS Stability: https://bugs.php.net/fix.php?id=60057&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=60057&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=60057&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=60057&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=60057&r=mysqlcfg