xref: /PHP-8.3/ext/standard/tests/misc/bug65550.phpt (revision a555cc0b)
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--EXPECT--
12string(7) "OmniWeb"
13string(3) "5.6"
14