xref: /PHP-7.1/ext/standard/tests/misc/bug69983.phpt (revision 550bbf8f)
1--TEST--
2Bug #69983 (get_browser fails with user agent of null)
3--INI--
4browscap={PWD}/browscap.ini
5--ENV--
6HTTP_USER_AGENT="Opera/7.11 (Windows NT 5.1; U) [en]"
7--FILE--
8<?php
9$browser=get_browser(NULL, true);
10print_r($browser);
11?>
12--EXPECT--
13Array
14(
15    [browser_name_regex] => ~^.*$~
16    [browser_name_pattern] => *
17    [browser] => Default Browser
18    [version] => 0
19    [majorver] => 0
20    [minorver] => 0
21    [platform] => unknown
22    [alpha] =>
23    [beta] =>
24    [win16] =>
25    [win32] =>
26    [win64] =>
27    [frames] => 1
28    [iframes] =>
29    [tables] => 1
30    [cookies] =>
31    [backgroundsounds] =>
32    [authenticodeupdate] => 0
33    [cdf] =>
34    [vbscript] =>
35    [javaapplets] =>
36    [javascript] =>
37    [activexcontrols] =>
38    [stripper] =>
39    [isbanned] =>
40    [wap] =>
41    [ismobiledevice] =>
42    [issyndicationreader] =>
43    [crawler] =>
44    [css] => 0
45    [cssversion] => 0
46    [supportscss] =>
47    [aol] =>
48    [aolversion] => 0
49)
50