Open ammont opened 10 years ago
Hi, I can't do anything with it unless you tell me what user agent is this for.
so when it does not recognize the browser will return 'Default Browser'?
Firefox 25.0.1 on OSX
It's funny... cause that's not even documented in http://php.net/get_browser and yet I always assumed everybody knew that :)
Yes, 'Default Browser' means that the browser was not recognized.
Can you please paste the user agent string here?
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:25.0) Gecko/20100101 Firefox/25.0 FirePHP/0.7.4
these were not recoginzed as well for me Mozilla/5.0 (Windows NT 6.1; WOW64; rv:25.0) Gecko/20100101 Firefox/25.0 Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko
Firefox 25 and Explorer 11 on Windows 7
I have too return 'Default Browser' Chrome 31: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36
IE 11: Mozilla\/5.0 (Windows NT 6.3; WOW64; Trident\/7.0; rv:11.0) like Gecko
Opera 18: Mozilla\/5.0 (Windows NT 6.3; WOW64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/31.0.1650.57 Safari\/537.36 OPR\/18.0.1284.49
Me too.
Firefox 26: Mozilla/5.0 (Windows NT 5.1; rv:26.0) Gecko/20100101 Firefox/26.0
And the object returned by getBrowser() contains almost nothing.
But on my Chrome 31 it works OK. Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36
Getting the same here, but after manually retrieving the actual latest browscap.ini (5021-rc1), I do get the correct results....
Looks like there is something amok with the retrieval of the 'latest' version of browscap.ini...
I think the main issue is that http://tempdownloads.browserscap.com/ no longer contains the latest version, but http://browscap.org/ does.
so you can easily fix it: $browscap = new Browscap($cache_dir); $browscap->remoteIniUrl = "http://browscap.org/stream?q=Full_PHP_BrowsCapINI"; $browscap->remoteVerUrl = "http://browscap.org/version";
of course this should be done in the current source code.
That's already in the current version...
I get my checkout with composer and the latest version I had did not link to the new url.
Aha! Updated. Try now. Packagist doesn't update automatically for this project though.
browscap_obj->getBrowser()->Browser returns 'Default Browser'