Home » Networking » Net_UserAgent_Detect » Bug #1407
Nor Firefox, Opera, Windows Server 2003 can be recognized
Details
| Submitted | 2004-05-14 10:06 UTC |
|---|---|
| From | stoyan at adiumdesign dot com |
| Assigned | jrust |
| Status | Closed |
| Package | Net_UserAgent_Detect |
| PHP Version | 4.3.6 |
| OS | Windows Server 2003 |
| Roadmaps | (Not assigned) |
Comments
[2004-05-14 10:06 UTC] stoyan at adiumdesign dot com
Description:
------------
PEAR version: 1.3.1 stable
Net_UserAgent_Detect version: 2.0.1 stable
Firefox 0.8 nor Opera 7.5 neighter Windows Server 2003 can be recognized properly
It could be VERY easy to implement if the pacage has documentation or test scripts.
Reproduce code:
---------------
require_once 'Net/UserAgent/Detect.php';
$dtc = new Net_UserAgent_Detect($_SERVER["HTTP_USER_AGENT"], NET_USERAGENT_DETECT_ALL);
echo $dtc->getBrowserString();
echo '<br />';
echo $dtc->getOSString();
Expected result:
----------------
Mozilla/Forefox 0.8
Microsoft Windows Server 2003
Actual result:
--------------
Mozilla/Netscape 6.x
Microsoft Windows
[2004-05-14 10:13 UTC] stoyan at adiumdesign dot com
In Expected result the string "Mozilla/Forefox 0.8" must be read as "Mozilla/Forefox 0.x