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