Edit report at https://bugs.php.net/bug.php?id=64809&edit=1

 ID:                 64809
 Updated by:         a...@php.net
 Reported by:        swapnesh20032003 at gmail dot com
 Summary:            Getting illegal characters at [browser_name_regex]
                     rest all values are displayi
-Status:             Feedback
+Status:             Not a bug
 Type:               Bug
 Package:            *General Issues
 Operating System:   Windows 7
 PHP Version:        5.3.25
 Block user comment: N
 Private report:     N

 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

What you see is merely a pcre pattern wrapped with delimiter which is \xA7. To 
get 
browsers matching you'll need a browscap.ini which is downloadable by the links 
on 
the doc page.


Previous Comments:
------------------------------------------------------------------------
[2013-05-11 09:05:33] a...@php.net

Please provide your browsercap.ini.

------------------------------------------------------------------------
[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

Reply via email to