Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.6.0a3

Bug #14138 htmlspecialchars_decode() converts irreversibly
Submitted: 2008-06-13 09:23 UTC Modified: 2008-06-29 07:31 UTC
From: revulo Assigned: arpad
Status: Closed Package: PHP_Compat (version 1.6.0a1)
PHP Version: Irrelevant OS:
Roadmaps: 1.6.0a2    
Subscription  


 [2008-06-13 09:23 UTC] revulo (Shinya Muramatsu)
Description: ------------ While htmlspecialchars('>') returns '>', php_compat_htmlspecialchars_decode('>') returns '>'. It is because '&' is converted at the beginning. (Strings are converted twice: '>' --> '>' --> '>'.) The conversion from '&' to '&' should be performed at the end. Test script: --------------- echo php_compat_htmlspecialchars_decode('>'); Expected result: ---------------- > Actual result: -------------- >

Comments

 [2008-06-29 07:31 UTC] arpad (Arpad Ray)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.