ZF-10595: Undefined property: Zend_Http_UserAgent_AbstractDevice::$_aGroup
Description
Zend_Http_UserAgent_AbstractDevice::$_aGroup isn't serialized, so after the first request you get the undefined property notice and all methods that access _aGroup return null.
In action controller
$bootstrap = $this->getInvokeArg('bootstrap');
$userAgent = $bootstrap->getResource('useragent');
$device = $userAgent->getDevice();
Zend_Debug::dump($device->getAllGroups());
Output:
Notice: Undefined property: Zend_Http_UserAgent_Desktop::$_aGroup in /opt/ZendFramework-1.11/library/Zend/Http/UserAgent/AbstractDevice.php on line 269
NULL
Comments
Posted by Marc Hodgins (mjh_ca) on 2010-10-24T16:51:47.000+0000
Patch with unit test is attached.
Posted by Matthew Weier O'Phinney (matthew) on 2010-10-25T07:23:04.000+0000
Patch applied to trunk and 1.11 release branch -- thanks!