Ralph Schindler wrote:
> http://www.ralphschindler.com/subversion/Zend_Session/
> 
> All feedback is SUPER-GREATLY appreciated as I haven't had that many
> people use this / play with it yet.

If you have a __get() method that doesn't return a reference you can't
access array elements.

$object->foo['bar'] = 'baz';
        
This causes a __get() call because $object->foo has to be read before
element 'bar' can be written to it. But if foo isn't an object and
__get() doesn't return a reference to foo, bar will be appended to a
copy of foo. This copy will get lost after the assignment.


Gunar

Reply via email to