Req #20914 [PATCH]: Allow changing browscap.ini in runtime for get_browser() function
| From: | sample@email.tst | Date: | Mon, 19 Jul 2021 11:17:31 +0000 |
| Subject: | Req #20914 [PATCH]: Allow changing browscap.ini in runtime for get_browser() function | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-235173@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=20914&edit=1
ID: 20914
Patch added by: sample@email.tst
Reported by: nzdarktrojan at hotmail dot com
Summary: Allow changing browscap.ini in runtime for
get_browser() function
Status: Analyzed
Type: Feature/Change Request
Package: PHP options/info functions
Operating System: *
PHP Version: *
Block user comment: N
Private report: N
New Comment:
The following patch has been added/updated:
Patch Name: kXvrbKwH
Revision: 1626693451
URL: https://bugs.php.net/patch-display.php?bug=20914&patch=kXvrbKwH&revision=1626693451
Previous Comments:
------------------------------------------------------------------------
[2021-07-19 11:17:21] sample at email dot tst
The following patch has been added/updated:
Patch Name: kXvrbKwH
Revision: 1626693441
URL: https://bugs.php.net/patch-display.php?bug=20914&patch=kXvrbKwH&revision=1626693441
------------------------------------------------------------------------
[2021-07-19 11:17:11] sample at email dot tst
The following patch has been added/updated:
Patch Name: kXvrbKwH
Revision: 1626693431
URL: https://bugs.php.net/patch-display.php?bug=20914&patch=kXvrbKwH&revision=1626693431
------------------------------------------------------------------------
[2021-07-19 11:17:03] sample at email dot tst
The following patch has been added/updated:
Patch Name: kXvrbKwH
Revision: 1626693423
URL: https://bugs.php.net/patch-display.php?bug=20914&patch=kXvrbKwH&revision=1626693423
------------------------------------------------------------------------
[2021-07-19 11:16:33] sample at email dot tst
The following patch has been added/updated:
Patch Name: kXvrbKwH
Revision: 1626693393
URL: https://bugs.php.net/patch-display.php?bug=20914&patch=kXvrbKwH&revision=1626693393
------------------------------------------------------------------------
[2017-08-23 00:31:52] kalle@php.net
The reason why is that PHP will load the browscap file into memory at initialization so calls to
get_browser() will be faster if called multiple times, tho I suppose it could make sense to allow
specific browscap files to be loaded if so desired. But all in all, I think it could be re-worked to
allow a browscap in php.ini to be PHP_INI_USER or PHP_INI_ALL but I'm not sure how much of a
value that is today, 15 years after the report was created
------------------------------------------------------------------------
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=20914
--
Edit this bug report at https://bugs.php.net/bug.php?id=20914&edit=1