|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-12-04 10:31 UTC] philip@php.net
[2002-12-29 23:07 UTC] philip@php.net
[2002-12-30 10:10 UTC] philip@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 19 16:00:01 2025 UTC |
I have a remark about the get_browser() function. When this function is called without arguments it is supposed to use $HTTP_USER_AGENT for argument. However if I use the configuration directive register_globals = Off then the variable $HTTP_USER_AGENT is not defined and get_browser() returns an error. In this case I have to do the following $HTTP_USER_AGENT = getenv("HTTP_USER_AGENT"); $browser = get_browser(); or alternatively $a = getenv("HTTP_USER_AGENT"); $browser = get_browser($a); I suggest that get_browser() function should act more cleverly in this case and use getenv() to get the HTTP_USER_AGENT.