[php-maint] Bug#499031: This is not a bug

Mickael Wolff mickael at lupusmic.org
Mon Jan 30 18:20:07 UTC 2012


   Actually, when you implement offsetGet, if the returned value is an 
array, it will be returned by value. There is two solution to work 
arround: use an object that implements ArrayAccess instead of a scalar 
array; alter offsetGet signature to return a reference.

-- 
Mickaël Wolff aka Lupus Michaelis
Racine<http://lupusmic.org>
Blog<http://blog.lupusmic.org>






More information about the pkg-php-maint mailing list