Mantis - Quercus
Viewing Issue Advanced Details
3698 minor always 09-27-09 14:24 09-27-09 14:24
pablorg  
 
normal  
new 4.0.0  
open  
none    
none  
0003698: get_browser different from php's
There are several differences in the output of this function between php and Quercus. Notably, Parent & Platform array keys should be lower-cased.

Quercus:
stdClass Object ( [Parent] => Chrome 3.0 [Platform] => WinVista [browser_name_pattern] => Mozilla/5.0 (Windows; U; Windows NT 6.0; *) AppleWebKit/* (KHTML, like Gecko) Chrome/3.0.* Safari/* [browser_name_regex] => Mozilla/5\.0 \(Windows; U; Windows NT 6\.0; .*\) AppleWebKit/.* \(KHTML, like Gecko\) Chrome/3\.0\..* Safari/.* )

PHP:
stdClass Object ( [browser_name_regex] => ^mozilla/5\.0 (windows; u; windows nt 6\.0; .*) applewebkit/.* (khtml, like gecko) chrome/3\.0\..* safari/.*$ [browser_name_pattern] => Mozilla/5.0 (Windows; U; Windows NT 6.0; *) AppleWebKit/* (KHTML, like Gecko) Chrome/3.0.* Safari/* [parent] => Chrome 3.0 [platform] => WinVista [browser] => Chrome [version] => 3.0 [majorver] => 3 [win32] => 1 [frames] => 1 [iframes] => 1 [tables] => 1 [cookies] => 1 [javaapplets] => 1 [javascript] => 1 [cssversion] => 3 [supportscss] => 1 [minorver] => 0 [alpha] => [beta] => [win16] => [win64] => [backgroundsounds] => [cdf] => [vbscript] => [activexcontrols] => [isbanned] => [ismobiledevice] => [issyndicationreader] => [crawler] => [aol] => [aolversion] => 0 )

There are no notes attached to this issue.