#25927 [NEW]: get_html_translation_table calls the ' ' instead of '

From: Date: Mon, 20 Oct 2003 21:53:29 +0000
Subject: #25927 [NEW]: get_html_translation_table calls the ' ' instead of '
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-49250@lists.php.net to get a copy of this message
From: acm at tweakers dot net Operating system: Linux PHP version: 4.3.3 PHP Bug Type: Unknown/Other Function Bug description: get_html_translation_table calls the ' &#39; instead of &#039; Description: ------------ When you call get_html_translation_table, with the ENT_QUOTES parameter, it'll return &#39; for ' The code for ' should, of course, be &#039; This was not broken in 4.3.1, so is newly introduced in either 4.3.2 or 4.3.3 One wonders how this could occur, since both htmlspecialchars/htmlentities and html_entity_decode work correctly. Reproduce code: --------------- <? print_r(get_html_translation_table(HTML_SPECIALCHARS,ENT_QUOTES)); ?> Expected result: ---------------- Array ( [&] => &amp; ["] => &quot; ['] => &#039; [<] => &lt; [>] => &gt; ) Actual result: -------------- Array ( [&] => &amp; ["] => &quot; ['] => &#39; [<] => &lt; [>] => &gt; ) -- Edit bug report at http://bugs.php.net/?id=25927&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25927&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25927&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=25927&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=25927&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=25927&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=25927&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=25927&r=support Expected behavior: http://bugs.php.net/fix.php?id=25927&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=25927&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=25927&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=25927&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25927&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=25927&r=dst IIS Stability: http://bugs.php.net/fix.php?id=25927&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=25927&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=25927&r=float

« previous php.bugs (#49250) next »