From:             wcucn at hotmail dot com
Operating system: WindowsXP
PHP version:      5.0.0RC2
PHP Bug Type:     PHP options/info functions
Bug description:  browscap ini directive not set

Description:
------------
I works on php 4 while I used

[browscap]
browscap = browscap.ini

and put the browscap.ini to the php directory

however, it does not work in php 5 with the message below

Warning: get_browser() [function.get-browser]: browscap ini directive not
set. in d:\Apache\htdocs\curtis\agent.php on line 2

Reproduce code:
---------------
The testing code is below
<?
$_SERVER['HTTP_USER_AGENT']=get_browser();

foreach($_SERVER['HTTP_USER_AGENT'] as $name=>$value){
        echo"<b>$name</b> $value <br />\n";
}

if($_SERVER['HTTP_USER_AGENT']->javascript==1){
        echo"javascript enabled";
}
else{
        echo"javascript disabled";
}
?>


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

Reply via email to