Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 2.5.2

Request #16224 IE 8 and Windows Vista detection
Submitted: 2009-05-14 01:44 UTC
From: opurvis Assigned: doconnor
Status: Closed Package: Net_UserAgent_Detect (version 2.5.0)
PHP Version: 5.2.9 OS: Win XP
Roadmaps: (Not assigned)    
Subscription  


 [2009-05-14 01:44 UTC] opurvis (Olivia Purvis)
Description: ------------ The user-agent string "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0)" should be detected as Windows Vista, IE8.

Comments

 [2009-05-14 07:02 UTC] lavnrose (Michael Kim)
Browser Detection ---------------------------- $browser['ie7'] = strpos($agt, 'msie 7') && !strpos($agt,'trident/4'); $browser['ie8tr'] = strpos($agt, 'msie 7') && strpos($agt,'trident/4') !== false; $browser['ie8'] = strpos($agt, 'msie 8') !== false; $browser['ie8up'] = $browser['ie7up'] && !$browser['ie7']; ---- $in_vendorStrings ---- 'ie8up' => 'Microsoft Internet Explorer 8.x', 'ie8tr' => 'Microsoft Internet Explorer 8.x (Compatibility View)', --------------------- OS Detection --------------------- // $os['win2k8'] = strpos($agt, 'windows nt 6.0') !== false; $os['vista'] = strpos($agt, 'windows nt 6.0') !== false; $os['win7'] = strpos($agt, 'windows nt 6.1') !== false; --- $in_osStrings --- // 'win2k8' => 'Microsoft Windows 2008', 'vista' => 'Microsoft Windows Vista', 'win7' => 'Microsoft Windows 7', ---------------------
 [2009-06-09 10:05 UTC] doconnor (Daniel O'Connor)
-Status: Open +Status: Closed -Assigned To: +Assigned To: doconnor
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.