ID: 25927 Updated by: [EMAIL PROTECTED] Reported By: acm at tweakers dot net -Status: Open +Status: Bogus Bug Type: Unknown/Other Function Operating System: Linux PHP Version: 4.3.3 New Comment:
Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php Both ' and ' are valid. Previous Comments: ------------------------------------------------------------------------ [2003-10-20 18:35:41] kees at tweakers dot net We've fixed it be commenting line 421 of ext/standard/html.c: 420- { '\'', "'", 6, ENT_HTML_QUOTE_SINGLE }, 421:/* { '\'', "'", 5, ENT_HTML_QUOTE_SINGLE }, */ ------------------------------------------------------------------------ [2003-10-20 17:53:29] acm at tweakers dot net 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 this bug report at http://bugs.php.net/?id=25927&edit=1