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.
In D6 the $mask paramater to file_scan_directory() should not contain the wrapping "/" characters because D6 uses ereg instead of preg_match like D7. I'm testing in Pressflow 6 which definitely has issues, from looking at the code I reckon stock Drupal 6 also has this problem.
Comment | File | Size | Author |
---|---|---|---|
#1 | 1238562-1-autoload_file_scan_directory_fix.patch | 476 bytes | James Andres |
Comments
Comment #1
James Andres CreditAttribution: James Andres commentedThe patch..
Comment #2
rjbrown99 CreditAttribution: rjbrown99 commentedThere's a patch, changing status.
Comment #3
PatchRanger CreditAttribution: PatchRanger commentedPatch works, thanks.
To reproduce it easily just paste this code into PHP execution devel-block:
returns an empty array, while
returns an array of inclusions as it should.