Remove get_browser() from core
| From: | Martin Keckeis | Date: | Wed, 02 Dec 2015 07:52:01 +0000 |
| Subject: | Remove get_browser() from core | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-89519@lists.php.net to get a copy of this message | ||
Hello together,
i think it's time to deprecate the function get_browser().
The reason is simple: Since the browscap.ini file has grown a lot this
function does need way too much time, see here for example
http://stackoverflow.com/questions/12067641/get-browser-slowing-down-page-load-any-alternative
The underlying browscap.ini file is still a very resource to use and there
are very good official packages out there to use it
https://packagist.org/packages/browscap/browscap-php
I also compared the browscap.ini file to other UserAgent parsers around and
it looks still good
http://thadafinser.github.io/UserAgentParserComparison/results/index.html
Alternative is only an optimization for this function, but i think it's not
worth, since the offical package is good.
What you guys think?
Best regards
Martin