cvs: pear /Net_UserAgent_Mobile/Mobile AirHPhone.php
| From: | KUBO Atsuhiro | Date: | Fri, 20 Jan 2006 07:40:10 +0000 |
| Subject: | cvs: pear /Net_UserAgent_Mobile/Mobile AirHPhone.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-37659@lists.php.net to get a copy of this message | ||
kuboa Fri Jan 20 07:40:10 2006 UTC
Modified files:
/pear/Net_UserAgent_Mobile/Mobile AirHPhone.php
Log:
- Added support for 'WILLCOM'.
- Changed default value of $name property from 'DDIPOCKET' to
'WILLCOM'.
- Changed pattern for getting the size of the cache.
http://cvs.php.net/viewcvs.cgi/pear/Net_UserAgent_Mobile/Mobile/AirHPhone.php?r1=1.7&r2=1.8&diff_format=u
Index: pear/Net_UserAgent_Mobile/Mobile/AirHPhone.php
diff -u pear/Net_UserAgent_Mobile/Mobile/AirHPhone.php:1.7
pear/Net_UserAgent_Mobile/Mobile/AirHPhone.php:1.8
--- pear/Net_UserAgent_Mobile/Mobile/AirHPhone.php:1.7 Sat Sep 25 12:35:38 2004
+++ pear/Net_UserAgent_Mobile/Mobile/AirHPhone.php Fri Jan 20 07:40:10 2006
@@ -16,7 +16,7 @@
// | Authors: KUBO Atsuhiro <kubo@isite.co.jp> |
// +----------------------------------------------------------------------+
//
-// $Id: AirHPhone.php,v 1.7 2004/09/25 12:35:38 kuboa Exp $
+// $Id: AirHPhone.php,v 1.8 2006/01/20 07:40:10 kuboa Exp $
//
require_once(dirname(__FILE__) . '/Common.php');
@@ -49,7 +49,7 @@
* @category Networking
* @author KUBO Atsuhiro <kubo@isite.co.jp>
* @access public
- * @version $Revision: 1.7 $
+ * @version $Revision: 1.8 $
* @see Net_UserAgent_Mobile_Common
* @link http://www.ddipocket.co.jp/airh_phone/i_hp.html
*/
@@ -63,7 +63,7 @@
* @var string
* @access public
*/
- var $name = 'DDIPOCKET';
+ var $name = 'WILLCOM';
/**#@+
* @access private
@@ -127,13 +127,13 @@
function parse()
{
$agent = $this->getUserAgent();
- if (preg_match('!^Mozilla/3\.0\(DDIPOCKET;(.*)\)CNF/2\.0$!',
+ if (preg_match('!^Mozilla/3\.0\((?:DDIPOCKET|WILLCOM);(.*)\)!',
$agent, $matches)
) {
list($this->_vendor, $this->_model, $this->_modelVersion,
$this->_browserVersion, $cache) =
explode('/', $matches[1]);
- if (!preg_match('/^c(\d+)/', $cache, $matches)) {
+ if (!preg_match('/^[Cc](\d+)/', $cache, $matches)) {
return $this->noMatch();
}
$this->_cacheSize = (integer)$matches[1];