PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Networking » Net_UserAgent_Mobile » Bug #5124

Vodafone.php cannot parse V301T's HTTP_USER_AGENT (make Notice)

Details

Submitted2005-08-17 12:20 UTC
Fromtakahashi at twinspark dot co dot jp
Assignedkuboa
StatusClosed
PackageNet_UserAgent_Mobile
PHP Version4.3.11
OSLinux
Roadmaps(Not assigned)

Comments

[2005-08-17 12:20 UTC] takahashi at twinspark dot co dot jp

Description:
------------
Hello,

V301T, old J-Phone device's HTTP_USER_AGENT is:

J-PHONE/3.0/V301T

But Vodafone.php (_parseJphone() function) doesn't
support this style string. It outputs Notice.

Net_UserAgent_Mobile's Version: 0.24.0

Test script:
---------------
<?php
require_once("Net/UserAgent/Mobile.php");

$agent = &Net_UserAgent_Mobile::factory("J-PHONE/3.0/V301T");
?>

Expected result:
----------------
(Nothing happens.)

Actual result:
--------------
Notice: Undefined offset: 1 in /var/****/Net/UserAgent/Mobile/Vodafone.php on line 499

[2005-08-18 06:50 UTC] kubo at isite dot co dot jp

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.