|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-10-14 16:18 UTC] Sjoerd@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 02 00:00:01 2025 UTC |
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