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 14:23 UTC
From: revulo Assigned: arpad
Status: Closed Package: PHP_Compat (version 1.6.0a1)
PHP Version: Irrelevant OS:
Roadmaps: 1.6.0a2    
Subscription  


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 29 + 17 = ?

 
 [2008-06-13 14: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 12: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.