From:             troelskn at gmail dot com
Operating system: Any
PHP version:      5.1.2
PHP Bug Type:     SPL related
Bug description:  is_array doesn't return TRUE on ArrayObject

Description:
------------
Using is_array() on an instance of ArrayObject returns FALSE. While
strictly speaking this is true, it would make sense to return TRUE in most
application-level code.

Expected result:
----------------
A solution could be to add an argument to is_array, which relaxes the
check to include ArrayObject. Eg. :

bool is_array ( mixed var, [bool strict] )

$obj = new ArrayObject();
is_array($obj, FALSE); // returns TRUE
is_array($obj); // returns FALSE


-- 
Edit bug report at http://bugs.php.net/?id=37149&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=37149&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): 
http://bugs.php.net/fix.php?id=37149&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=37149&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=37149&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=37149&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=37149&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=37149&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=37149&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=37149&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=37149&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=37149&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=37149&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=37149&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=37149&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=37149&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=37149&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=37149&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=37149&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=37149&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=37149&r=mysqlcfg

Reply via email to