From:             cvachon at bluenodes-technologies dot com
Operating system: XP
PHP version:      4.3.5RC3
PHP Bug Type:     Output Control
Bug description:  get_browser

Description:
------------
Hi!

I downloaded the latest "browsecap.ini" (2004-02-29 23:03:10 GMT

) file yesterday and it generates a bug within PHP function "get_browser".
This function is supposed to return an Object but with this file version,
it returns nothing.  I have PHP 4.3.5RC3 under XP. And I even tried
downgrading to my last PHP version (4.3.4RC3) and the result is the
same... 



My conclusion is based on the fact that I downgraded to an ancient version
of the file "browsecap.ini" (2003-09-21 22:04:18 GMT) and it's working
with this one...



Thanks!

Reproduce code:
---------------
$browser = get_browser($_SERVER["HTTP_USER_AGENT"]);



Expected result:
----------------
Object

Actual result:
--------------
//* $browser is null and does not have any properties set.

-- 
Edit bug report at http://bugs.php.net/?id=27500&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=27500&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=27500&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=27500&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=27500&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=27500&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=27500&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=27500&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=27500&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=27500&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=27500&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=27500&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=27500&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27500&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=27500&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=27500&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=27500&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=27500&r=float

Reply via email to