Bug #69983 [NEW]: get_browser fails on 7.0 with user agent of null works on 5.6.8

From: Date: Thu, 02 Jul 2015 21:11:40 +0000
Subject: Bug #69983 [NEW]: get_browser fails on 7.0 with user agent of null works on 5.6.8
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-194091@lists.php.net to get a copy of this message
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)

« previous php.bugs (#194091) next »