#24832 [Asn->Fbk]: Net::UserAgent_Detect: Problem with some user agents
| From: | pajoye@php.net | Date: | Fri, 05 Mar 2004 22:08:58 +0000 |
| Subject: | #24832 [Asn->Fbk]: Net::UserAgent_Detect: Problem with some user agents | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-26149@lists.php.net to get a copy of this message | ||
ID: 24832
Updated by: pajoye@php.net
Reported By: ddomhoff at web dot de
-Status: Assigned
+Status: Feedback
Bug Type: PEAR related
Operating System: Irrelevant
PHP Version: Irrelevant
Assigned To: dallen
New Comment:
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
Previous Comments:
------------------------------------------------------------------------
[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