From:             swapnesh20032003 at gmail dot com
Operating system: Windows 7
PHP version:      5.3.25
Package:          *General Issues
Bug Type:         Bug
Bug description:Getting illegal characters at [browser_name_regex] rest all 
values are displayi

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 bug report at https://bugs.php.net/bug.php?id=64809&edit=1
-- 
Try a snapshot (PHP 5.4):   
https://bugs.php.net/fix.php?id=64809&r=trysnapshot54
Try a snapshot (PHP 5.3):   
https://bugs.php.net/fix.php?id=64809&r=trysnapshot53
Try a snapshot (trunk):     
https://bugs.php.net/fix.php?id=64809&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=64809&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=64809&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=64809&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=64809&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=64809&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=64809&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=64809&r=notwrong
Not enough info:            
https://bugs.php.net/fix.php?id=64809&r=notenoughinfo
Submitted twice:            
https://bugs.php.net/fix.php?id=64809&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=64809&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=64809&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=64809&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=64809&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=64809&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=64809&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=64809&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=64809&r=mysqlcfg

Reply via email to