Closed (fixed)
Project:
Boost
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Feb 2010 at 14:38 UTC
Updated:
23 Aug 2011 at 12:59 UTC
When hook_boost_is_cacheable is invoked a compare is done using '!= NULL'. This since false != NULL results in false.
Some debugging showed me that my hook implementation had no effect which I fixed by changing the != to !== (see attached patch).
| Comment | File | Size | Author |
|---|---|---|---|
| boost-hook_boost_is_cacheable.patch | 511 bytes | helmo |
Comments
Comment #1
mikeytown2 commentedComment #2
mikeytown2 commentedcommitted
Comment #4
firebus commentedwhy do we have
when we could have
Comment #5
helmo commented@firebus: Your example would need an additional ! to make it correct. The code has already changed to "return $result".