From: t dot glaser at tarent dot de Operating system: Debian experimental to get 5.4.9 PHP version: 5.4.9 Package: Strings related Bug Type: Bug Bug description:html_entity_decode($x, ENT_QUOTES, "UTF-8") doesn't work as advertised wrt. "'"
Description: ------------ http://de3.php.net/manual/en/function.html-entity-decode.php says: Available flags constants Constant Name Description ENT_COMPAT Will convert double-quotes and leave single-quotes alone. ENT_QUOTES Will convert both double and single quotes. ENT_NOQUOTES Will leave both double and single quotes unconverted. ENT_HTML401 Handle code as HTML 4.01. ENT_XML1 Handle code as XML 1. ENT_XHTML Handle code as XHTML. ENT_HTML5 Handle code as HTML 5. However, I donât see ' being decoded with ENT_QUOTES. Test script: --------------- <?php $x = "'"; $y = html_entity_decode($x, ENT_QUOTES, "UTF-8"); echo "< $y >\n"; Expected result: ---------------- < ' > Actual result: -------------- < ' > -- Edit bug report at https://bugs.php.net/bug.php?id=63806&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=63806&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=63806&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=63806&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=63806&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=63806&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=63806&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=63806&r=needscript Try newer version: https://bugs.php.net/fix.php?id=63806&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=63806&r=support Expected behavior: https://bugs.php.net/fix.php?id=63806&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=63806&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=63806&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=63806&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=63806&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=63806&r=dst IIS Stability: https://bugs.php.net/fix.php?id=63806&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=63806&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=63806&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=63806&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=63806&r=mysqlcfg