PHP 4.0 Bug #8419 Updated: get_browser() returns false

From: Date: Mon, 08 Jan 2001 20:19:25 +0000
Subject: PHP 4.0 Bug #8419 Updated: get_browser() returns false
Groups: php.dev 
Request: Send a blank email to php-dev+get-43451@lists.php.net to get a copy of this message
ID: 8419 Updated by: stas Reported By: chris-php-bugs@improbable.org Old-Status: Feedback Status: Closed Bug Type: *Function Specific Assigned To: Comments: Please try current CVS, it has browscap behaviour fixed. If it still fails, please repoen and provide your bworscap.ini file (or where I can get the same one). Previous Comments: --------------------------------------------------------------------------- [2001-01-08 13:55:12] stas@php.net What is your browscar.ini file? Most probably PHP does not find the match for you browser, so if you could post your user agent string and your browscap.ini file (preferably as publicly-available file somewhere on the web), it would help a lot. --------------------------------------------------------------------------- [2000-12-28 21:55:24] chris-php-bugs@improbable.org As mentioned in the original report, browscap.ini exists and the browscap entry in php.ini is pointing to it. A simple test script (e.g. "echo count(file(ini_get('browscap')))") had no problems loading the file. --------------------------------------------------------------------------- [2000-12-28 20:08:36] sniper@php.net 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 --------------------------------------------------------------------------- [2000-12-28 13:11:07] chris-php-bugs@improbable.org 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@php.net What does phpinfo() have in the Apache environment section for HTTP_USER_AGENT ?? And is register_globals = on in your php.ini? --Jani --------------------------------------------------------------------------- The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online. Full Bug description available at: http://bugs.php.net/?id=8419

« previous php.dev (#43451) next »