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

Bug #5124 Vodafone.php cannot parse V301T's HTTP_USER_AGENT (make Notice)
Submitted: 2005-08-17 12:20 UTC
From: takahashi at twinspark dot co dot jp Assigned: kuboa
Status: Closed Package: Net_UserAgent_Mobile
PHP Version: 4.3.11 OS: Linux
Roadmaps: (Not assigned)    
Subscription  


 [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

Comments

 [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.