From:             klaus_kuehne at t-online dot de
Operating system: Win 2000
PHP version:      4.3.6
PHP Bug Type:     Arrays related
Bug description:  Problem with PHP's get_browser()

Description:
------------
Hello,

following happens in PHP 4.3.6:
(1)
$browser = get_browser();
foreach ($browser as $key => $val) print "$key = $val, ";
delivers: ..., cookies = 1, ... (correctly)
(2)
$browser = get_browser();
print $browser["cookies"];
delivers NULL !!!! 
(3)
$browser = get_browser();
$arr = array();
foreach ($browser as $key => $val) $arr[$key] = $val;
print $arr["cookies"];
delivers 1.

I don't understand the NULL-result of (2).

Greetings Klaus Kühne


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

Reply via email to