1--TEST--
2Test get_browser() function variation : Return data as object
3--INI--
4browscap={PWD}/browscap.ini
5--FILE--
6<?php
7
8$agent = "Opera/7.11 (Windows NT 5.1; U) [en]";
9var_dump(get_browser($agent));
10
11?>
12--EXPECT--
13object(stdClass)#1 (35) {
14  ["browser_name_regex"]=>
15  string(41) "~^opera/7\.1.* \(windows nt 5\.1; .\).*$~"
16  ["browser_name_pattern"]=>
17  string(31) "Opera/7.1* (Windows NT 5.1; ?)*"
18  ["parent"]=>
19  string(9) "Opera 7.1"
20  ["platform"]=>
21  string(5) "WinXP"
22  ["win32"]=>
23  string(1) "1"
24  ["browser"]=>
25  string(5) "Opera"
26  ["version"]=>
27  string(3) "7.1"
28  ["majorver"]=>
29  string(1) "7"
30  ["minorver"]=>
31  string(1) "1"
32  ["frames"]=>
33  string(1) "1"
34  ["iframes"]=>
35  string(1) "1"
36  ["tables"]=>
37  string(1) "1"
38  ["cookies"]=>
39  string(1) "1"
40  ["backgroundsounds"]=>
41  string(1) "1"
42  ["javaapplets"]=>
43  string(1) "1"
44  ["javascript"]=>
45  string(1) "1"
46  ["css"]=>
47  string(1) "2"
48  ["cssversion"]=>
49  string(1) "2"
50  ["supportscss"]=>
51  string(1) "1"
52  ["alpha"]=>
53  string(0) ""
54  ["beta"]=>
55  string(0) ""
56  ["win16"]=>
57  string(0) ""
58  ["win64"]=>
59  string(0) ""
60  ["authenticodeupdate"]=>
61  string(0) ""
62  ["cdf"]=>
63  string(0) ""
64  ["vbscript"]=>
65  string(0) ""
66  ["activexcontrols"]=>
67  string(0) ""
68  ["stripper"]=>
69  string(0) ""
70  ["isbanned"]=>
71  string(0) ""
72  ["wap"]=>
73  string(0) ""
74  ["ismobiledevice"]=>
75  string(0) ""
76  ["issyndicationreader"]=>
77  string(0) ""
78  ["crawler"]=>
79  string(0) ""
80  ["aol"]=>
81  string(0) ""
82  ["aolversion"]=>
83  string(1) "0"
84}
85