ID: 49873 Updated by: sjo...@php.net Reported By: webmaster at flex-code dot net -Status: Open +Status: Bogus Bug Type: Unknown/Other Function Operating System: Ubuntu Linux PHP Version: 5.3.0 New Comment:
Thank you for your report. The behavior you report is not a bug. Also note that bugs.php.net is not a place to ask for support; it is a place to file bugs. For support, please see: http://nl2.php.net/support.php Please try: array_map('htmlspecialchars_decode', $anArray); Previous Comments: ------------------------------------------------------------------------ [2009-10-14 11:38:41] webmaster at flex-code dot net Description: ------------ Trying to decode encoded html special characters by using the array_map and htmlspecialchars_decode functions returns an error by htmlspecialchars_decode. Reproduce code: --------------- return array_map('htmlspecialchars_decode', array($aArray, ENT_QUOTES)); Expected result: ---------------- All encoded special characters should be decoded to their respective html characters, eg. ' => ', " => " Actual result: -------------- ERRNO: 2 TEXT: htmlspecialchars_decode() expects parameter 1 to be string, array given LOCATION: /var/www/live/i/intranet-rewrite/base/includes/class_postgres.php, line 345, at October 14, 2009, 1:25 pm Debug Backtrace: - htmlspecialchars_decode(Array[57]) # line 0, file: unknown - array_map("htmlspecialchars_decode", Array[2]) # line 345, file: /var/www/live/i/intranet-rewrite/base/includes/class_postgres.php - Resultset.convertCharacters(Array[57]) # line 336, file: /var/www/live/i/intranet-rewrite/base/includes/class_postgres.php - Resultset.fetchRow() # line 87, file: /var/www/live/i/intranet-rewrite/hr/person_add_edit.php ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=49873&edit=1