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.
If you pass no arguments (or empty arguments) to file_load_multiple() it'll try to load every file in the database. Found this when working on comment_load_multiple() which was a straight cut and paste but had a test exposing the bug.
Comment | File | Size | Author |
---|---|---|---|
#3 | file_504422.patch | 1.46 KB | drewish |
file_load_multiple.patch | 2.28 KB | catch | |
Comments
Comment #2
catchComment #3
drewish CreditAttribution: drewish commentedgood call. personally though i think it's better to fail early.
Comment #4
Dries CreditAttribution: Dries commentedThat makes (enough) sense to me. Committed.