Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
hook_requirements initializes its return array as $requirements = array('varnish');
.
This adds 0 => 'varnish'
instead iof the desired 'varnish' => array(),
I noticed this using tha nagios module which invokes hook_requirements
The attached patch fixes this.
Comment | File | Size | Author |
---|---|---|---|
#5 | 0001-Issue-1358276-fixed-incorrect-return-from-varnish_re.patch | 824 bytes | fgm |
varnish-hook_requirements_zero_key.patch | 481 bytes | helmo |
Comments
Comment #1
helmo CreditAttribution: helmo commentedComment #2
fabsor CreditAttribution: fabsor commentedCommited. Thanks!
Comment #4
fgmThis needs to be ported to D6 where the problem also exists.
Comment #5
fgmSuggested patch.
Comment #6
Outi CreditAttribution: Outi commentedI tested it and it works fine for me.
Comment #8
MiSc CreditAttribution: MiSc commentedThanks, committed to latest dev.