|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2013-01-18 09:55 UTC] cataphract@php.net
 
-Status:      Open
+Status:      Verified
-Assigned To:
+Assigned To: cataphract
  [2013-01-18 11:13 UTC] cataphract@php.net
  [2013-01-18 11:13 UTC] cataphract@php.net
 
-Status: Verified
+Status: Closed
  [2014-10-07 23:20 UTC] stas@php.net
  [2014-10-07 23:31 UTC] stas@php.net
 | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Sun Oct 26 23:00:02 2025 UTC | 
Description: ------------ the 5.4 return value can not be seriously hopefully at least "Returns the translation table used by htmlspecialchars() and htmlentities()" is NOT true however, this breaks dialogs for special chars using this table and insert the enitity in the HTML code realize that not every page out there is UTF8 and never will be _________________________________________________________________________ PHP 5.4: php -r "print_r(get_html_translation_table(HTML_ENTITIES, ENT_QUOTES, 'ISO8859-1'));" Array ( ["] => " [&] => & ['] => ' [<] => < [>] => > ) _________________________________________________________________________ PHP 5.3: php -r "print_r(get_html_translation_table(HTML_ENTITIES, ENT_QUOTES, 'ISO8859-1'));" Array ( [ ] =>   [¡] => ¡ [¢] => ¢ [£] => £ [¤] => ¤ [¥] => ¥ [¦] => ¦ [§] => § [¨] => ¨ [©] => © [ª] => ª [«] => « [¬] => ¬ [] => ­ [®] => ® [¯] => ¯ [°] => ° [±] => ± [²] => ² [³] => ³ [´] => ´ [µ] => µ [¶] => ¶ [·] => · [¸] => ¸ [¹] => ¹ [º] => º [»] => » [¼] => ¼ [½] => ½ [¾] => ¾ [¿] => ¿ [À] => À [Á] => Á [Â] => Â [Ã] => Ã [Ä] => Ä [Å] => Å [Æ] => Æ [Ç] => Ç [È] => È [É] => É [Ê] => Ê [Ë] => Ë [Ì] => Ì [Í] => Í [Î] => Î [Ï] => Ï [Ð] => Ð [Ñ] => Ñ [Ò] => Ò [Ó] => Ó [Ô] => Ô [Õ] => Õ [Ö] => Ö [×] => × [Ø] => Ø [Ù] => Ù [Ú] => Ú [Û] => Û [Ü] => Ü [Ý] => Ý [Þ] => Þ [ß] => ß [à] => à [á] => á [â] => â [ã] => ã [ä] => ä [å] => å [æ] => æ [ç] => ç [è] => è [é] => é [ê] => ê [ë] => ë [ì] => ì [í] => í [î] => î [ï] => ï [ð] => ð [ñ] => ñ [ò] => ò [ó] => ó [ô] => ô [õ] => õ [ö] => ö [÷] => ÷ [ø] => ø [ù] => ù [ú] => ú [û] => û [ü] => ü [ý] => ý [þ] => þ [ÿ] => ÿ [&] => & ["] => " ['] => ' [<] => < [>] => > ) Test script: --------------- php -r "print_r(get_html_translation_table(HTML_ENTITIES, ENT_QUOTES, 'ISO8859-1'));" Expected result: ---------------- the full entity table like it worked for many years Actual result: -------------- a crippled array