PHP 4.0 Bug #4219: get_browser() return empty array!
| From: | catoc at 163 dot net | Date: | Fri, 21 Apr 2000 21:39:05 +0000 |
| Subject: | PHP 4.0 Bug #4219: get_browser() return empty array! | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-18121@lists.php.net to get a copy of this message | ||
From: catoc@163.net
Operating system: RedHat 6.2
PHP version: 4.0 Latest CVS (21/04/2000)
PHP Bug Type: Misbehaving function
Bug description: get_browser() return empty array!
configure line:
'./configure' '--prefix=/usr' '--with-apxs=/usr/sbin/apxs'
'--with-config-file-path=/etc/httpd' '--with-exec-dir=/usr/bin'
'--with-system-regex' '--disable-debug' '--with-gd=/usr/local'
'--with-zlib' '--with-ftp' '--enable-debugger'
'--enable-magic-quotes' '--enable-track-vars' '--with-mysql'
php.ini:
browscap = /home/httpd/html/browscap.ini
Scripts:
<?
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 );
?>
When I run it return:
Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)
----------------------------------------
0: