From: andrew_chel at ua dot fm Operating system: Linux PHP version: 4.3.4 PHP Bug Type: PHP options/info functions Bug description: browscap.ini : may be error in order of reg. expressions
Description: ------------ I got the latest version of the browsecap.ini file from http://www.garykeith.com/browsers/downloads.asp (link on this page was in PHP.chm documentation file) $HTTP_SERVER_VARS['HTTP_USER_AGENT'] is: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322) but get_browser() return netclr='' instead netclr='1' if I swap (expression with .NET CLR* become first) following lines in browscap.ini all work correctly and get_browser() return netclr='1': [Mozilla/4.0 (compatible; MSIE 6.0*;*Windows NT 5.0*)*] parent=IE 6.0 platform=Win2000 [Mozilla/4.0 (compatible; MSIE 6.0*;*Windows NT 5.0*.NET CLR*)*] parent=IE 6.0 platform=Win2000 netclr=True -- Edit bug report at http://bugs.php.net/?id=28703&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28703&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28703&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=28703&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=28703&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=28703&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=28703&r=needscript Try newer version: http://bugs.php.net/fix.php?id=28703&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=28703&r=support Expected behavior: http://bugs.php.net/fix.php?id=28703&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=28703&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=28703&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=28703&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28703&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=28703&r=dst IIS Stability: http://bugs.php.net/fix.php?id=28703&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=28703&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=28703&r=float