Doc #61451 [NEW]: Document that the default character set change may break existing code

From: Date: Tue, 20 Mar 2012 11:18:05 +0000
Subject: Doc #61451 [NEW]: Document that the default character set change may break existing code
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-8097@lists.php.net to get a copy of this message
From: Operating system: n/a PHP version: 5.4.0 Package: Documentation problem Bug Type: Documentation Problem Bug description:Document that the default character set change may break existing code Description: ------------ --- From manual page: http://www.php.net/migration54.incompatible --- The change of the default value of the $encoding parameter of html_entity_decode(), htmlentities() and htmlspecialchars() may break existing code. (It does for me!) Thus it should be mentioned on the "Backward Incompatible Changes" page. (There is a remark on the "Other changes" page, but that remark omits html_entity_decode().) I propose adding this text as a list item: "The default value of the $encoding parameter of html_entity_decode(), htmlspecialchars(), and htmlentities() has been changed from 'ISO-8859-1' to 'UTF-8'." Test script: --------------- n/a Expected result: ---------------- n/a Actual result: -------------- n/a -- Edit bug report at https://bugs.php.net/bug.php?id=61451&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=61451&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=61451&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=61451&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=61451&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=61451&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=61451&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=61451&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=61451&r=needscript Try newer version: https://bugs.php.net/fix.php?id=61451&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=61451&r=support Expected behavior: https://bugs.php.net/fix.php?id=61451&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=61451&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=61451&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=61451&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=61451&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=61451&r=dst IIS Stability: https://bugs.php.net/fix.php?id=61451&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=61451&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=61451&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=61451&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=61451&r=mysqlcfg

« previous php.doc.bugs (#8097) next »