Date: 12/28/00
- Next message: sniper <email protected>: "[PHP-DEV] PHP 4.0 Bug #8468 Updated: sockets.c compile failure"
- Previous message: Andi Gutmans: "Re: [PHP-DEV] RE: PHP 4.0 Bug #8465 Updated: Cannot exec, system, passthru, backticks"
- Next in thread: chris-php-bugs <email protected>: "[PHP-DEV] PHP 4.0 Bug #8419 Updated: get_browser() returns false"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
ID: 8419
Updated by: sniper
Reported By: chris-php-bugs <email protected>
Old-Status: Open
Status: Feedback
Bug Type: *Function Specific
Assigned To:
Comments:
And you have got the browscap.ini file ? And you have the browscap directive
in you php.ini file? Please check this page for more info:
http://www.php.net/manual/function.get-browser.php
--Jani
Previous Comments:
---------------------------------------------------------------------------
[2000-12-28 13:11:07] chris-php-bugs <email protected>
register_globals is on.
$HTTP_USER_AGENT is set to a valid user
agent for the browser used (tested with
Lynx & Netscape) and was definitely being
read by get_browser() - it returns an error
if it isn't set.
Additionally, I called get_browser() with
several other user agent strings as the
optional parameter. The results were
identical.
---------------------------------------------------------------------------
[2000-12-28 08:55:35] sniper <email protected>
What does phpinfo() have in the Apache environment
section for HTTP_USER_AGENT ??
And is register_globals = on in your php.ini?
--Jani
---------------------------------------------------------------------------
[2000-12-26 02:35:39] chris-php-bugs <email protected>
$ua = get_browser();
print_r($ua);
There are no error messages that I've been able to find - nothing in the php error log or the apache log. I've tested with a number of user-agent values and it has returned false in every case. (It is checking $HTTP_USER_AGENT, though - unset($HTTP_USER_AGENT) will cause an error indicating that it couldn't find the variable)
I've verified that it is picking up the correct file and that the file is readable by the apache process (at least using the php file functions).
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=8419
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: sniper <email protected>: "[PHP-DEV] PHP 4.0 Bug #8468 Updated: sockets.c compile failure"
- Previous message: Andi Gutmans: "Re: [PHP-DEV] RE: PHP 4.0 Bug #8465 Updated: Cannot exec, system, passthru, backticks"
- Next in thread: chris-php-bugs <email protected>: "[PHP-DEV] PHP 4.0 Bug #8419 Updated: get_browser() returns false"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

