Posted by miro_dietiker on December 10, 2008 at 6:34pm
4 followers
| Project: | Drupal core |
| Version: | 7.x-dev |
| Component: | base system |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (works as designed) |
Issue Summary
While reading
http://api.drupal.org/api/function/_registry_check_code/7
There's a potential of $cache_update_needed bein uninitialized when ($type == REGISTRY_WRITE_LOOKUP_CACHE)
This is only called in includes/common.inc in drupal_page_footer and $cache_update_needed makes sense only on that location if it was initially set to FALSE.
Comments
#2
...or maybe wrap it in
empty()?#3
We haven't seen any warnings... does that mean that this optimisation is broken (ie. would
$cache_update_neededalways be true when entering_registry_check_code(REGISTRY_WRITE_LOOKUP_CACHE))?#4
I believe the report above is incorrect the value in question is a static and hence initialised to NULL. NULL can be testing in an if happily.