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 commentedThe patch..
Comment #2
rjbrown99 commentedThere's a patch, changing status.
Comment #3
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.