php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28703 browscap.ini : may be error in order of reg. expressions
Submitted: 2004-06-08 20:19 UTC Modified: 2004-06-08 22:52 UTC
From: andrew_chel at ua dot fm Assigned:
Status: Not a bug Package: PHP options/info functions
PHP Version: 4.3.4 OS: Linux
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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: andrew_chel at ua dot fm
New email:
PHP Version: OS:

 

 [2004-06-08 20:19 UTC] andrew_chel at ua dot fm
Description:
------------
I got the latest version of the browsecap.ini file from http://www.garykeith.com/browsers/downloads.asp (link on this page was in PHP.chm documentation file)

$HTTP_SERVER_VARS['HTTP_USER_AGENT'] is:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322)
but get_browser() return netclr='' instead netclr='1'

if I swap (expression with .NET CLR* become first) following lines in browscap.ini all work correctly and get_browser() return netclr='1':

[Mozilla/4.0 (compatible; MSIE 6.0*;*Windows NT 5.0*)*]
parent=IE 6.0
platform=Win2000

[Mozilla/4.0 (compatible; MSIE 6.0*;*Windows NT 5.0*.NET CLR*)*]
parent=IE 6.0
platform=Win2000
netclr=True



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-06-08 22:52 UTC] jay@php.net
There have been various fixes for get_browser() that have 
been applied since PHP 4.3.4. Please try a more up-to-date 
version of PHP, like the recently released 4.3.7, as this 
problem has likely already been fixed. 
 
J 
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Sep 11 16:00:01 2025 UTC