|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2004-01-14 19:31 UTC] codeslinger at compsalot dot com
Description:
------------
The browscap.ini file is out of date. The highest Microsoft browser version supported is IE5.0
When it encounters IE6.0 and above it returns erronous info. Calims it's a netsacpe 4.0 browser that does not support vbscript.
IE 6 has been available for over 1 year. this would imply that other browsers are also out of date.
This may cause existing code to break.
Reproduce code:
---------------
<?php
echo $_SERVER['HTTP_USER_AGENT'] . "<hr />\n";
$browser = get_browser();
foreach ($browser as $name => $value) {
echo "<b>$name</b> $value <br />\n";
}
?>
Expected result:
----------------
correct info for IE 6.0
should be the same as for IE 5.0
Actual result:
--------------
Mozilla/4.0 (compatible; MSIE 6.0; Windows 98)
--------------
browser_name_regex Mozilla/4\.0.*
browser_name_pattern Mozilla/4.0*
parent Netscape 4.00
browser Netscape
version 4.00
majorver 4
minorver 00
frames 1
tables 1
cookies 1
backgroundsounds
vbscript
javascript 1
javaapplets 1
activexcontrols
beta 1
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 08:00:01 2025 UTC |
We no longer bundle the file. You need to get it yourself from: http://www.garykeith.com/browsers/downloads.asp