Bug #80606 [Opn->Nab]: get_browser returns Chrome instead of Edge on MacOS
| From: | cmb@php.net | Date: | Fri, 08 Jan 2021 10:43:23 +0000 |
| Subject: | Bug #80606 [Opn->Nab]: get_browser returns Chrome instead of Edge on MacOS | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-231442@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=80606&edit=1
ID: 80606
Updated by: cmb@php.net
Reported by: raul dot tabasso at tabasoft dot it
Summary: get_browser returns Chrome instead of Edge on MacOS
-Status: Open
+Status: Not a bug
Type: Bug
Package: Unknown/Other Function
Operating System: MacOS
PHP Version: 7.4.14
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
> The problem is in the browscap.ini lite file that strangely
> doesn't include edge USER_AGENT for macOS!
Consider to report that upstream.
Previous Comments:
------------------------------------------------------------------------
[2021-01-07 17:50:46] rtrtrtrtrt at dfdfdfdf dot dfd
> Can you suggest a good client side solution that
> reliably extracts browser, version and os?
i suggest to write proper code which works on every more or less up-to-date client
------------------------------------------------------------------------
[2021-01-07 17:45:38] raul dot tabasso at tabasoft dot it
Can you suggest a good client side solution that reliably extracts browser, version and os?
------------------------------------------------------------------------
[2021-01-07 17:41:27] rtrtrtrtrt at dfdfdfdf dot dfd
> You have to add manually or use the heavy browscap.ini files :(
have fun - you need endless RAM for nothing and (while it got optimized somehow) after a ton of OOM
killer events in 2016 just because of the browscap.ini stuff get_browser() is a forbidden function
company wide (disable_functions)
it's nonsense these days anyways to mangle around browsers serverside
------------------------------------------------------------------------
[2021-01-07 17:38:02] raul dot tabasso at tabasoft dot it
The problem is in the browscap.ini lite file that strangely doesn't include edge USER_AGENT for
macOS!
You have to add manually or use the heavy browscap.ini files :(
------------------------------------------------------------------------
[2021-01-07 17:21:37] raul dot tabasso at tabasoft dot it
Also tested with php 8.0 same result
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=80606
--
Edit this bug report at https://bugs.php.net/bug.php?id=80606&edit=1