lighttpd forum php-shell > ArrayAccess

Posted by Soryu (Guest)
on 12.11.2006 15:59
When checking for array access on a variable (Object in this case) the 
check should include whether the Object implements the ArrayAccess 
interface. (Seeing that your first use case is to create a new 
ArrayObject :)

Shell.php (0.3.1), from line 641:
<pre>
                        if (is_object($obj) && !is_a($obj, 
'ArrayAccess')) {
                            throw new Exception(sprintf('Objects (%s) 
don\'t support array access operators', $objname));
                        }
</pre>