ZF-11557: Zend_Http_UserAgent_AbstractDevice.php raises a notice

Issue Type: Bug Created: 2011-07-13T09:51:23.000+0000 Last Updated: 2011-08-02T18:08:18.000+0000 Status: Resolved Fix version(s): - 1.11.10 (04/Aug/11)

Reporter: Marcin Gil (mgil) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_Http_UserAgent

Related issues: Attachments:


There is a notice coming from this class on following user agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_5; de-de) AppleWebKit/533.18.1 (KHTML, like Gecko)

Notice error is: Message: Undefined offset: 1 File: Zend/Http/UserAgent/AbstractDevice.php Line: 585


1 /Zend/Http/UserAgent/AbstractDevice.php(291): Zend_Http_UserAgent_AbstractDevice::extractFromUserAgent('Mozilla/5.0 (Ma...')

2 /Zend/Http/UserAgent/AbstractDevice.php(117): Zend_Http_UserAgent_AbstractDevice->_getDefaultFeatures()

3 /Zend/Http/UserAgent.php(851): Zend_Http_UserAgent_AbstractDevice->__construct('Mozilla/5.0 (Ma...', Array, Array)

4 /Zend/Http/UserAgent.php(559): Zend_Http_UserAgent->_createDevice()

5 Zend_Http_UserAgent->getDevice()


Posted by Marcin Gil (mgil) on 2011-07-13T16:36:44.000+0000

Also on following user agent: Mozilla/5.0 (iPad; U; CPU OS 4_3_3 like Mac OS X; de-de) AppleWebKit/533.17.9 (KHTML, like Gecko)

Posted by Matthew Weier O'Phinney (matthew) on 2011-07-28T19:51:56.000+0000

Fix for both user agents applied to trunk and 1.11 release branch

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.