Edit report at https://bugs.php.net/bug.php?id=20914&edit=1
ID: 20914
Comment by: hayesmark685 at gmail dot com
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:
Beijing, China offers guests an inconceivable encounter through the set of experiences and culture
of China, where you can stroll around the means of sovereigns, incredible men, socialists, and those
looking for a vote set up system regarding Tiananmen Square.
https://onlineairlinesbooking.com/
Previous Comments:
------------------------------------------------------------------------
[2020-12-21 12:48:27] devinthapa985 at gmail dot com
If your question regarding airlines ticket booking or you find the best travel agent number dial
1-802-231-1806. If You contact here you easily and cheap your airlines booking. Visit https://onlineairlinesbooking.com/Aeromexico-telefono/
------------------------------------------------------------------------
[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
------------------------------------------------------------------------
[2002-12-09 19:28:33] nzdarktrojan at hotmail dot com
The get_browser () function currently can only use a single browscap.ini, as specified in php.ini.
Therefore (to my knowledge) if the browscap.ini is changed, the server (I'm using Apache) must
be restarted before the changes filter through to PHP. In my situation (and probably many others), I
don't own or have rights to the server, and the owners are unwilling to restart the server
(I'm developing a customized browscap, and I make changes frequently).
What I suggest (I don't have enough knowledge of C, or I'd do it myself) is overloading
the get browser function,
from: object get_browser ([string user_agent])
to: object get_browser ([string user_agent], [string browscap_file])
When the function is called, it loads the browscap_file to memory and uses that instead of the
global file. This would also be useful where multiple sites are hosted on the same server, but the
sites wish to use different browscap files.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=20914&edit=1