php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18288 browscap.ini and get_browser()
Submitted: 2002-07-11 20:23 UTC Modified: 2003-01-13 18:17 UTC
Votes:2
Avg. Score:3.0 ± 2.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:-1 (-100.0%)
From: justincouto at msn dot com Assigned:
Status: No Feedback Package: Scripting Engine problem
PHP Version: 4.3.0 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: justincouto at msn dot com
New email:
PHP Version: OS:

 

 [2002-07-11 20:23 UTC] justincouto at msn dot com
I just got the latest version of the browsecap.ini file from http://www.cyscape.com/browscap/ and I am getting this error mailed to me by my server. "PHP:  Error parsing /usr/local/lib/browscap.ini on line 6300".  I am not sure what the problem is.  Line 6300 is the last line in the browscap file.  Please advise me on what to do.

Thanks,
Justin Couto

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-07-12 19:44 UTC] sniper@php.net
Just edit the file and add a newline after that last line.
This bug also is with php.ini (as the same parser is used for both). 

foobar=<<EOF>> <-- this causes it.

foobar=value<<EOF>> <-- this otoh, works.

 [2002-07-15 13:19 UTC] justincouto at msn dot com
Broswecap.ini is not working correctly for me.  When I use it I get this for a response:

Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461)
--------------------------------------------------------------------------------
 browser_name_pattern: Mozilla/4\.0.*
parent: Netscape 4.0
browser: Netscape
version: 4.0
majorver: #4
minorver: #0
frames: 1
tables: 1
cookies: 1
backgroundsounds: 
vbscript: 
javascript: 1
javaapplets: 1
activexcontrols: 
beta: 

You can see that I am using IE 6 and it is telling me I am using netscape.  Do you know what the problem is?
 [2002-07-25 23:43 UTC] rverlander@php.net
Thats the environment variables that your browser sends.
Saying that its Mozilla not a PHP bug.
Bogusing.
 [2002-07-26 02:49 UTC] justincouto at msn dot com
The problem is that when I use the browsecap function, i am supposed to get a bunch of information back.  I get stuff that tells me I am using netscape 4.0 and I am running IE 6.  If this is working correctly, what good is the browse cap function?
 [2002-07-26 06:22 UTC] sniper@php.net
Are you sure it's not the browscap.ini file? 
Anyway, this thing has not worked very well for a long time..

 [2002-09-11 11:35 UTC] sniper@php.net
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.


 [2002-12-29 23:01 UTC] philip@php.net
Can you try this again please?  It should work better now and please get an up-to-date browscap.ini at:

http://www.garykeith.com/browsers/downloads.asp

The one at cyscape is outdated by about two years.
 [2003-01-13 18:17 UTC] sniper@php.net
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: Sun Oct 06 07:01:27 2024 UTC