From: codeslinger at compsalot dot com Operating system: All PHP version: 4.3.4 PHP Bug Type: PHP options/info functions Bug description: browscap.ini is out of date returns wrong info for IE6.0 and above
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 -- Edit bug report at http://bugs.php.net/?id=26913&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26913&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26913&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=26913&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=26913&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=26913&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=26913&r=needscript Try newer version: http://bugs.php.net/fix.php?id=26913&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=26913&r=support Expected behavior: http://bugs.php.net/fix.php?id=26913&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=26913&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=26913&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=26913&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26913&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=26913&r=dst IIS Stability: http://bugs.php.net/fix.php?id=26913&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=26913&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=26913&r=float