From: [EMAIL PROTECTED] Operating system: All Win PHP version: 4.2.3 PHP Bug Type: Scripting Engine problem Bug description: browscap.ini parsing error
Hello Bug Report reader. <?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); ?> The browser information will be output together with the following message appended: PHP: Error parsing [drive]:\[path]\browscap.ini on line 8206 browscap.ini at line position 8206 reads: browser=AE/2.1(Linux) Changing "AE/2.1(Linux)" to "AE/2.1 Linux" solves the parsing error. The parsing procedure seems to "dislike" brackets [(,)]. This problem is quite old, but still persists with PHP 4.2.3. Suggestion: Update browscap.ini for PHP distributions accordingly. Kind regards Juri -- Edit bug report at http://bugs.php.net/?id=19902&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=19902&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=19902&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=19902&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=19902&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=19902&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=19902&r=support Expected behavior: http://bugs.php.net/fix.php?id=19902&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=19902&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=19902&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=19902&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=19902&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=19902&r=dst IIS Stability: http://bugs.php.net/fix.php?id=19902&r=isapi