PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Networking » Net_UserAgent_Detect » Bug #8416

Opera is detectet wrong!

Details

Submitted2006-08-11 09:20 UTC
Fromhans at badeball dot net
Assignedjrust
StatusClosed
PackageNet_UserAgent_Detect
PHP Version4.4.2
OSWindows xp
Roadmaps(Not assigned)

Comments

[2006-08-11 09:20 UTC] hans at badeball dot net

Description:
------------
Opera 9.00 IS detected as Opera 5.x.
I think the bug is that Net_UserAgent_Detect use the NT version, not the browser version.

Here is the User Agent String: Opera/9.00 (Windows NT 5.1; U; en)

My browser is set to identificate as Opera.

Test script:
---------------
echo 'User Agent String: ' . Net_UserAgent_Detect::getBrowserString();

Expected result:
----------------
User Agent String: Opera 5.x

Actual result:
--------------
User Agent String: Opera 9.00