#24832 [Fbk->NoF]: Net::UserAgent_Detect: Problem with some user agents

From: Date: Thu, 11 Mar 2004 00:51:39 +0000
Subject: #24832 [Fbk->NoF]: Net::UserAgent_Detect: Problem with some user agents
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-26280@lists.php.net to get a copy of this message
ID: 24832 Updated by: sniper@php.net Reported By: ddomhoff at web dot de -Status: Feedback +Status: No Feedback Bug Type: PEAR related Operating System: Irrelevant PHP Version: Irrelevant Assigned To: dallen New Comment: No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Open". Thank you. Previous Comments: ------------------------------------------------------------------------ [2004-03-05 17:08:53] pajoye@php.net Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip ------------------------------------------------------------------------ [2003-07-28 09:12:42] nicos@php.net Hmm, according to the line 249, it looks the reg doesnt allow '_'. if (preg_match(";^([[:alnum:]]+)[ /\(]*[[:alpha:]]*([\d]*)(\.[\d\.]*);", $agt, $matches)) { ------------------------------------------------------------------------ [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 (#26280) next »