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.
Problem/Motivation
Calls to httprl_queue_background_callback() with only a single $arg value passed to it, like linkchecker does in its hook_cron always fail. This is because calls to httprl_async_page() get a serialized empty array 'a:0:{}', which is equal to FALSE when using only '=='. See #2374945: workaround unserialize errors where this logic was introduced.
Proposed resolution
The check for a serialized failure is a little too loose. Let's tighten it up a little and do a strict equality check here.
Remaining tasks
Review patch
User interface changes
n/a
API changes
n/a
Comment | File | Size | Author |
---|---|---|---|
#1 | httprl-batch_failures-2475421-1.patch | 1.4 KB | heddn |
Comments
Comment #1
heddnComment #2
heddnComment #3
hass CreditAttribution: hass commentedBreaks linkchecker integration for unknown reasons.
Comment #5
mikeytown2 CreditAttribution: mikeytown2 commentedThanks for the patch, it has been committed.