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

Patch with unit test is attached.

Patch applied to trunk and 1.11 release branch -- thanks!