Since branch 2, Browscap is not a bootstrap module.

Is there a valid reason or forgotten the bootstrap feature?

The currently (not bootsrap) situation produces errors on modules that uses the (non-exist) bootstrap feature of Browscap.

For an example for such errors please take a look at this issue: http://drupal.org/node/1848416#comment-6775550

Comments

devin carlson’s picture

Status: Active » Closed (works as designed)

For a short time, Browscap implemented hook_boot() to enable some basic user agent recording functionality. With the development of much more advanced and fully featured statistics modules, such as Better Statistics, the functionality was removed from Browscap in #1795920: Remove useragent recording functionality, along with the implementation of hook_boot().

If you're using Browscap on cached pages, you'll want to do a <a href="http://api.drupal.org/api/drupal/includes%21bootstrap.inc/function/drupal_load/7">drupal_load</a> to ensure that the module is loaded.

It's also a good idea to check to ensure that the browscap_get_browser() function is available before using it by doing a <a href="http://php.net/manual/en/function.function-exists.php">function_exists()</a>.