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