#24832 [Opn->Ana]: Net::UserAgent_Detect: Problem with some user agents

From: Date: Mon, 28 Jul 2003 14:12:43 +0000
Subject: #24832 [Opn->Ana]: Net::UserAgent_Detect: Problem with some user agents
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-18833@lists.php.net to get a copy of this message
ID: 24832 Updated by: nicos@php.net Reported By: ddomhoff at web dot de -Status: Open +Status: Analyzed Bug Type: PEAR related Operating System: Irrelevant PHP Version: Irrelevant New Comment: Hmm, according to the line 249, it looks the reg doesnt allow '_'. if (preg_match(";^([[:alnum:]]+)[ /\(]*[[:alpha:]]*([\d]*)(\.[\d\.]*);", $agt, $matches)) { Previous Comments: ------------------------------------------------------------------------ [2003-07-27 17:04:49] ddomhoff at web dot de Description: ------------ It seems, that Net_UserAgent_Detect does not get along with user agents, which have an underscore in their string, like the W3C Validator has. If there is one, you get notices: Undefined offset: 0 in PEAR\Net\UserAgent\Detect.php on line 249 The same for offset 1, 2 and 3. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=24832&edit=1

« previous php.pear.dev (#18833) next »