php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9046 get_browser() does not work correctly
Submitted: 2001-02-01 04:55 UTC Modified: 2001-02-01 07:28 UTC
From: sebastian at in-medias-res dot net Assigned:
Status: Closed Package: Unknown/Other Function
PHP Version: 4.0.4pl1 OS: Suse Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: sebastian at in-medias-res dot net
New email:
PHP Version: OS:

 

 [2001-02-01 04:55 UTC] sebastian at in-medias-res dot net
When running get_browser()-example from the documentation the following output appears:

Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0; IMR Edition)
--------------------------------------------------------------------------------
 browser_name_pattern: Mozilla/4\.0 (compatible; MSIE 5\.5; Windows NT.*)
parent: 0? 
version: 0? 
minorver: ?
platform: ?? 
beta: 

On another Server with the same browscap.ini it works correctly.

PHP was compiled with
'./configure' '--with-mysql' '--with-apxs=/usr/local/apache-1.3.14/bin/apxs' '--enable-track-vars' '--enable-calendar' '--with-gd=/imrhome/linux/libgd183/gd-1.3' '--with-ttf'

The browscap entry in php.ini is correct.

How can I fix it ?

Regards,
Sebastian

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-02-01 06:50 UTC] phanto@php.net
this is fixed in cvs.

use a snapshot from snaps.php.net
 [2001-02-01 06:53 UTC] phanto@php.net
oops, i haven't read the line with 'the other server'

is it running the same php version ?

should this already be fixed in pl1 ?

harald.
 [2001-02-01 07:28 UTC] phanto@php.net
get_browser() doesn't work correctly in 4.0.4*

get a snapshot from http://snaps.php.net
you have to compile it yourself

harald

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 28 15:01:31 2024 UTC