ID:               19393
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Feedback
 Bug Type:         PHP options/info functions
 Operating System: Suse Linux 8.0
 PHP Version:      4.2.1
 New Comment:

Check your Apache's error log for error messages pertaining to PHP's
ability to parse browscap.ini, these errors would only occur on Apache
start.
Since php's browscap.ini parser will stop parsing the file if it
encounters an error, the effect is the same as not having a
browscap.ini in the first place.
The solution in this case would be to either fix the lines PHP's parser
complains about or remove them from the file all together.


Previous Comments:
------------------------------------------------------------------------

[2002-09-13 11:40:46] [EMAIL PROTECTED]

Hi Gurus !

(Running PHP 4.2.1 with a Apache/1.3.26 server installed from the Suse
Linux 8.0 disks).

Using the following script found in the documentation :

<?php
function list_array ($array) {
    while (list ($key, $value) = each ($array)) {
    $str .= "<b>$key:</b> $value<br>\n";
    }
    return $str;
}
echo "$HTTP_USER_AGENT<hr>\n";
$browser = get_browser();
echo list_array ((array) $browser);
?>

I only get the $HTTP_USER_AGENT value and nothing more, the
get_browser() function returns FALSE.

My php.ini file point to the browscap.ini file. This is confirmed by
executing phpinfo()

Looking at the bug history I saw that this seems to be a recurent
problem. Anything you can do ?

Thanks !

Philippe

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=19393&edit=1

Reply via email to