From:             webmaster at flex-code dot net
Operating system: Ubuntu Linux
PHP version:      5.3.0
PHP Bug Type:     Unknown/Other Function
Bug description:  array_map + htmlspecialchars_decode problem

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 bug report at http://bugs.php.net/?id=49873&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=49873&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=49873&r=trysnapshot53
Try a snapshot (PHP 6.0):            
http://bugs.php.net/fix.php?id=49873&r=trysnapshot60
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=49873&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=49873&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=49873&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=49873&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=49873&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=49873&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=49873&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=49873&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=49873&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=49873&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=49873&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=49873&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=49873&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=49873&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=49873&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=49873&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=49873&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=49873&r=mysqlcfg

Reply via email to