#19393 [NEW]: get_browser() returns an empty array
| From: | philippe at pyf-labs dot com | Date: | Fri, 13 Sep 2002 16:40:46 +0000 |
| Subject: | #19393 [NEW]: get_browser() returns an empty array | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-19314@lists.php.net to get a copy of this message | ||
From: philippe@pyf-labs.com
Operating system: Suse Linux 8.0
PHP version: 4.2.1
PHP Bug Type: PHP options/info functions
Bug description: get_browser() returns an empty array
Hi Gurus !
(Running PHP 4.2.1 with a Apache/1.3.26 server installed from the Suse
Linux 8.0 disks).
Using the following script found in the documentation :
<?php
function list_array ($array) {
while (list ($key, $value) = each ($array)) {
$str .= "<b>$key:</b> $value<br>\n";
}
return $str;
}
echo "$HTTP_USER_AGENT<hr>\n";
$browser = get_browser();
echo list_array ((array) $browser);
?>
I only get the $HTTP_USER_AGENT value and nothing more, the get_browser()
function returns FALSE.
My php.ini file point to the browscap.ini file. This is confirmed by
executing phpinfo()
Looking at the bug history I saw that this seems to be a recurent problem.
Anything you can do ?
Thanks !
Philippe
--
Edit bug report at http://bugs.php.net/?id=19393&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=19393&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=19393&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=19393&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=19393&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=19393&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=19393&r=support
Expected behavior: http://bugs.php.net/fix.php?id=19393&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=19393&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=19393&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=19393&r=globals