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 ' ' instead of '
Description: ------------ When you call get_html_translation_table, with the ENT_QUOTES parameter, it'll return ' for ' The code for ' should, of course, be ' 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 ( [&] => & ["] => " ['] => ' [<] => < [>] => > ) Actual result: -------------- Array ( [&] => & ["] => " ['] => ' [<] => < [>] => > ) -- 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