|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #24832 Net::UserAgent_Detect: Problem with some user agents
Submitted: 2003-07-27 17:04 UTC Modified: 2004-03-10 19:51 UTC
From: ddomhoff at web dot de Assigned: dallen (profile)
Status: No Feedback Package: PEAR related
PHP Version: Irrelevant OS: Irrelevant
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: ddomhoff at web dot de
New email:
PHP Version: OS:


 [2003-07-27 17:04 UTC] ddomhoff at web dot de
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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-07-28 09:12 UTC]
Hmm, according to the line 249, it looks the reg
doesnt allow '_'.

if (preg_match(";^([[:alnum:]]+)[ /\(]*[[:alpha:]]*([\d]*)(\.[\d\.]*);", $agt, $matches)) {

 [2004-03-10 19:51 UTC]
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.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Feb 24 13:01:28 2024 UTC