xref: /PHP-7.3/ext/standard/tests/misc/bug65550.phpt (revision 2139918e)
1--TEST--
2Bug #65550 (get_browser() incorrectly parses entries with "+" sign)
3--INI--
4browscap={PWD}/browscap.ini
5--SKIPIF--
6<?php
7if (!is_readable(ini_get('browscap'))) die('skip browscap.ini file ' . ini_get('browscap') . ' not readable');
8?>
9--FILE--
10<?php
11$user_agent = 'Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-US) AppleWebKit/522+ (KHTML, like Gecko, Safari/522) OmniWeb/v613';
12$caps = get_browser($user_agent, true);
13var_dump($caps['browser'], $caps['version']);
14?>
15==DONE==
16--EXPECT--
17string(7) "OmniWeb"
18string(3) "5.6"
19==DONE==
20