forked from php/php-src
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbug69983.phpt
49 lines (49 loc) · 969 Bytes
/
bug69983.phpt
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
--TEST--
Bug #69983 (get_browser fails with user agent of null)
--INI--
browscap={PWD}/browscap.ini
--ENV--
HTTP_USER_AGENT="Opera/7.11 (Windows NT 5.1; U) [en]"
--FILE--
<?php
$browser=get_browser(NULL, true);
print_r($browser);
?>
--EXPECT--
Array
(
[browser_name_regex] => ~^.*$~
[browser_name_pattern] => *
[browser] => Default Browser
[version] => 0
[majorver] => 0
[minorver] => 0
[platform] => unknown
[alpha] =>
[beta] =>
[win16] =>
[win32] =>
[win64] =>
[frames] => 1
[iframes] =>
[tables] => 1
[cookies] =>
[backgroundsounds] =>
[authenticodeupdate] => 0
[cdf] =>
[vbscript] =>
[javaapplets] =>
[javascript] =>
[activexcontrols] =>
[stripper] =>
[isbanned] =>
[wap] =>
[ismobiledevice] =>
[issyndicationreader] =>
[crawler] =>
[css] => 0
[cssversion] => 0
[supportscss] =>
[aol] =>
[aolversion] => 0
)