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

Bug #13129 noMatch raise ": might be new variants..."
Submitted: 2008-02-16 04:08 UTC
From: kawai Assigned: kuboa
Status: Closed Package: Net_UserAgent_Mobile (version 0.31.0)
PHP Version: 5.2.5 OS: Linux
Roadmaps: 1.0.0RC1    
Subscription  


 [2008-02-16 04:08 UTC] kawai (Hiroaki Kawai)
Description: ------------ In 0.31.0, Class instance generation sequence has been redesigned and Net_UserAgent_Mobile_Common::noMatch() will call Net_UserAgent_Mobile_Common::getUserAgent(), that will refer _userAgent member which may be still not initialized. Test script: --------------- <?php require_once('Net/UserAgent/Mobile.php'); $ua=Net_UserAgent_Mobile::factory('DoCoMo/2.0 N902iS(c100;TB;W24H12)(compatible; moba-crawler; http://crawler.dena.jp/)'); var_dump($ua->userinfo); Expected result: ---------------- string(75) "DoCoMo/2.0 N902iS(c100;TB;W24H12)(compatible; moba-crawler; http://crawler.dena.jp/): might be new variants. Please contact the author of Net_UserAgent_Mobile!" Actual result: -------------- string(75) ": might be new variants. Please contact the author of Net_UserAgent_Mobile!"

Comments

 [2008-02-18 03:12 UTC] kuboa (KUBO Atsuhiro)
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.