Bug #69983 [NEW]: get_browser fails on 7.0 with user agent of null works on 5.6.8
From: php7testing at prodpartners dot com
Operating system: Centos 7
PHP version: 7.0.0alpha2
Package: *General Issues
Bug Type: Bug
Bug description:get_browser fails on 7.0 with user agent of null works on 5.6.8
Description:
------------
get browser issues a warning on 7.0 alpha 2 when user-agent string is
null - works fine on 5.6.8.
get_browser works with user-agent string of $_SERVER['HTTP_USER_AGENT']
Warning: get_browser(): HTTP_USER_AGENT variable is not set, cannot
determine user agent name in
/usr/local/apache2/htdocs/php7testing/browscap_test.php on line 2
Test script:
---------------
<?php
$browser=get_browser(NULL, true);
print_r($browser);
?>
--
Edit bug report at https://bugs.php.net/bug.php?id=69983&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=69983&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=69983&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=69983&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=69983&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=69983&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=69983&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=69983&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=69983&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=69983&r=support
Expected behavior: https://bugs.php.net/fix.php?id=69983&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=69983&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=69983&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=69983&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=69983&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=69983&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=69983&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=69983&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=69983&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=69983&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=69983&r=mysqlcfg
Thread (12 messages)
- php7testing at prodpartners dot com
- laruence@php.netBug #69983 [Opn->Fbk]: get_browser fails on 7.0 with user agent of null works on 5.6.8
- php7testing at prodpartners dot comBug #69983 [Fbk->Opn]: get_browser fails on 7.0 with user agent of null works on 5.6.8
- laruence@php.netBug #69983 [Opn]: get_browser fails on 7.0 with user agent of null works on 5.6.8
- laruence@php.netBug #69983 [Opn->Fbk]: get_browser fails on 7.0 with user agent of null works on 5.6.8
- php7testing at prodpartners dot comBug #69983 [Fbk->Opn]: get_browser fails on 7.0 with user agent of null works on 5.6.8
- cmb@php.netBug #69983 [Opn->Ver]: get_browser fails on 7.0 with user agent of null works on 5.6.10
- cmb@php.netBug #69983 [Ver]: get_browser fails on 7.0 with user agent of null works on 5.6.10
- cmb@php.netBug #69983 [PATCH]: get_browser fails on 7.0 with user agent of null works on 5.6.10
- kalle@php.netBug #69983 [Ver]: get_browser fails on 7.0 with user agent of null works on 5.6.10
- cmb@php.netBug #69983 [Ver]: get_browser fails with user agent of null
- laruence@php.netBug #69983 [Ver->Csd]: get_browser fails with user agent of null