xref: /PHP-8.0/ext/standard/tests/misc/bug77338.phpt (revision b1deb98c)
1--TEST--
2Bug #77338: get_browser with empty string
3--INI--
4browscap={PWD}/browscap.ini
5--FILE--
6<?php
7
8var_dump(get_browser(""));
9
10?>
11--EXPECT--
12object(stdClass)#1 (34) {
13  ["browser_name_regex"]=>
14  string(6) "~^.*$~"
15  ["browser_name_pattern"]=>
16  string(1) "*"
17  ["browser"]=>
18  string(15) "Default Browser"
19  ["version"]=>
20  string(1) "0"
21  ["majorver"]=>
22  string(1) "0"
23  ["minorver"]=>
24  string(1) "0"
25  ["platform"]=>
26  string(7) "unknown"
27  ["alpha"]=>
28  string(0) ""
29  ["beta"]=>
30  string(0) ""
31  ["win16"]=>
32  string(0) ""
33  ["win32"]=>
34  string(0) ""
35  ["win64"]=>
36  string(0) ""
37  ["frames"]=>
38  string(1) "1"
39  ["iframes"]=>
40  string(0) ""
41  ["tables"]=>
42  string(1) "1"
43  ["cookies"]=>
44  string(0) ""
45  ["backgroundsounds"]=>
46  string(0) ""
47  ["authenticodeupdate"]=>
48  string(1) "0"
49  ["cdf"]=>
50  string(0) ""
51  ["vbscript"]=>
52  string(0) ""
53  ["javaapplets"]=>
54  string(0) ""
55  ["javascript"]=>
56  string(0) ""
57  ["activexcontrols"]=>
58  string(0) ""
59  ["stripper"]=>
60  string(0) ""
61  ["isbanned"]=>
62  string(0) ""
63  ["wap"]=>
64  string(0) ""
65  ["ismobiledevice"]=>
66  string(0) ""
67  ["issyndicationreader"]=>
68  string(0) ""
69  ["crawler"]=>
70  string(0) ""
71  ["css"]=>
72  string(1) "0"
73  ["cssversion"]=>
74  string(1) "0"
75  ["supportscss"]=>
76  string(0) ""
77  ["aol"]=>
78  string(0) ""
79  ["aolversion"]=>
80  string(1) "0"
81}
82