Bug #64809 [Opn->Fbk]: Getting illegal characters at [browser_name_regex] rest all values are displayi
| From: | ab@php.net | Date: | Sat, 11 May 2013 09:05:33 +0000 |
| Subject: | Bug #64809 [Opn->Fbk]: Getting illegal characters at [browser_name_regex] rest all values are displayi | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-178887@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=64809&edit=1
ID: 64809
Updated by: ab@php.net
Reported by: swapnesh20032003 at gmail dot com
Summary: Getting illegal characters at [browser_name_regex]
rest all values are displayi
-Status: Open
+Status: Feedback
Type: Bug
Package: *General Issues
Operating System: Windows 7
PHP Version: 5.3.25
Block user comment: N
Private report: N
New Comment:
Please provide your browsercap.ini.
Previous Comments:
------------------------------------------------------------------------
[2013-05-10 06:05:42] swapnesh20032003 at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/function.get-browser#refsect1-function.get-browser-examples
---
Test script:
---------------
<?php
echo $_SERVER['HTTP_USER_AGENT'] . "\n\n";
$browser = get_browser(null, true);
echo "<pre>";
print_r($browser);
?>
More Information - http://stackoverflow.com/questions/16475256/getting-illegal-characters-in-get-browser-method-run-in-php
Expected result:
----------------
Expected output some thing like this instead of illegal characters-
[browser_name_regex] => ^mozilla/5\.0 (windows; .; windows nt 5\.1; .*rv:.*) gecko/.*
firefox/0\.9.*$
Current Output -
[browser_name_regex] => �^.*$�
Actual result:
--------------
Actual result I am getting(with illegal characters, rest all data is fine)
[browser_name_regex] => �^.*$�
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=64809&edit=1