note 115073 added to function.get-browser
| From: | tim at digicol dot de | Date: | Thu, 22 May 2014 13:01:47 +0000 |
| Subject: | note 115073 added to function.get-browser | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-199592@lists.php.net to get a copy of this message | ||
Be aware that loading php_browscap.ini via the browscap php.ini setting may consume a non-trivial
amount of memory. Current versions are several MB in size (even the âliteâ one) and can
eat tens of MB of RAM in each PHP process. This happens even if you never call get_browser() since
php_browscap.ini is loaded when PHP is starting up.
Make sure to leave the browscap php.ini setting empty if you donât use get_browser() â
maybe you only call it only from PHP Web pages, but not from PHP CLI code.
Iâd recommend comparing your processesâ memory consumption with and without
php_browscap.ini being loaded. If necesseray, consider creating your own stripped-down copy of
php_browscap.ini with just the browsers that are important to you.
----
Server IP: 87.106.1.137
Probable Submitter: 194.25.133.14
----
Manual Page -- http://php.net/manual/en/function.get-browser.php
Edit -- https://master.php.net/note/edit/115073
Del: integrated -- https://master.php.net/note/delete/115073/integrated
Del: useless -- https://master.php.net/note/delete/115073/useless
Del: bad code -- https://master.php.net/note/delete/115073/bad+code
Del: spam -- https://master.php.net/note/delete/115073/spam
Del: non-english -- https://master.php.net/note/delete/115073/non-english
Del: in docs -- https://master.php.net/note/delete/115073/in+docs
Del: other reasons-- https://master.php.net/note/delete/115073
Reject -- https://master.php.net/note/reject/115073
Search -- https://master.php.net/manage/user-notes.php