#21443 [Bgs->Opn]: get_browser still has problems with browsecap.ini from www.garykeith.com
| From: | philip@php.net | Date: | Mon, 06 Jan 2003 19:07:27 +0000 |
| Subject: | #21443 [Bgs->Opn]: get_browser still has problems with browsecap.ini from www.garykeith.com | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-29228@lists.php.net to get a copy of this message | ||
ID: 21443
Updated by: philip@php.net
Reported By: serge@planetcharters.com
-Status: Bogus
+Status: Open
Bug Type: Unknown/Other Function
Operating System: Linux
PHP Version: 4.3.0
Previous Comments:
------------------------------------------------------------------------
[2003-01-05 22:38:43] gary@garykeith.com
Thanks, Serge.
Ilia, I think this is fairly solid proof that my suspicions are correct
about get_browser() having a problem dealing with multiple question
marks in the user agent.
The old definition in my browscap.ini file: Mozilla/4.8 ???? (Windows
NT 5.0; U) fails while the updated definition: Mozilla/4.8*(Windows NT
5.0; U) works fine.
Both definitions work fine with browscap.dll therefore I suspect a
problem with get_browser().
------------------------------------------------------------------------
[2003-01-05 22:25:51] serge@planetcharters.com
I updated the browscap.ini and the detection works fine now with
Netscape for windows:
ua: Mozilla/4.8 [en] (Windows NT 5.0; U)
pattern match: browser_name_pattern Mozilla/4\.8.*(Windows NT 5\.0; U)
------------------------------------------------------------------------
[2003-01-05 21:49:27] gary@garykeith.com
Ilia, I am the developer of the browscap.ini file that PHP recommends
to its users. Respectfully, this issue does appear to be a bug in PHP.
The user agent in question, Mozilla/4.8 [en] (Windows NT 5.0; U), is in
my browscap.ini file and it is recognized when Serge visits my website
which uses IIS. To me that suggests a bug in get_browser().
I am suspicious that in certain situations get_browser() has a problem
dealing with multiple question marks in a user agent. In an attempt to
prove my theory I changed the definition for the user agent in question
and asked Serge to see if it works. I'll report back here on his
results.
------------------------------------------------------------------------
[2003-01-05 15:41:02] iliaa@php.net
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions.
Thank you for your interest in PHP.
Contact the developer mantaining the browsecap.ini, this is not a PHP
bug.
------------------------------------------------------------------------
[2003-01-05 15:29:07] serge@planetcharters.com
PHP does not detect Netscape for Windows ua: Mozilla/4.8 [en] (Windows
NT 5.0; U) It did detect Mozilla 1.2 and IE 6 for Windows and Mozilla
1.1 and Netscape 4.7 in Linux.
The latest verion (downloaded January 5 2003) of browsecap.ini was
used.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=21443&edit=1