ZF2-194: $_SERVER not defined in Zend\Locale\Locale::getBrowser

Issue Type: Bug Created: 2012-03-04T20:24:23.000+0000 Last Updated: 2012-07-09T15:31:12.000+0000 Status: Resolved Fix version(s): Reporter: Robert Basic (robertbasic) Assignee: Robert Basic (robertbasic) Tags: - Zend\I18n

Related issues: Attachments:


While working on fixing tests for Zend\Feed, I noticed that Zend\Locale\Locale::getBrowser uses $_SERVER to detect the language/locale. Given that this part of code comes from unit tests, $_SERVER is not defined, thus we need a is_array($_SERVER) check before trying to use it.

Pull request is on it's way.


Posted by Robert Basic (robertbasic) on 2012-03-04T20:32:58.000+0000

Pull request sent:

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.