php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #4856 have get_browser() not relying on external browscap.ini
Submitted: 2000-06-07 08:43 UTC Modified: 2002-04-27 13:28 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:0 (0.0%)
From: hartmut at six dot de Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.0 Latest CVS ( OS: *
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: hartmut at six dot de
New email:
PHP Version: OS:

 

 [2000-06-07 08:43 UTC] hartmut at six dot de
the current situation regarding the browscap.ini
file needed by get_browser() makes the whole 
function useless (IMHO)

having a core function in an open source project
rely on data from a closed source file you may
not redistribute, you have to register for and
that is not even up to date doesn't make sense

two alternatives:

- create a open/free browscap database
  updateble by everyone and distributable
  under a public license

- as the 'big' browsers all use the same
  format -> parse/tokenize HTTP_USER_AGENT
  for information an browse through browscap
  only if USER_AGENT format is unknown
  (there is lots of PERL code available for
  browser identifikation for a start)
 

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-04-27 13:28 UTC] jimw@php.net
pear has a class to handle this now.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Oct 05 03:01:28 2024 UTC