Error log is filled with the following
TYPE php
DATE Wednesday, 27 October, 2010 - 17:48
USER admin
LOCATION admin/reports/dblog
REFERRER admin/reports
MESSAGE Warning: preg_match(): No ending delimiter '^' found in file_scan_directory() (line 1969 of file.inc).
SEVERITY warning
HOSTNAME xxx.xxx.xxx.xxx
OPERATIONS
Comments
Comment #1
indigoblue commentedI am seeing the same issue when file_scan_directory is used in D7Beta3.
Comment #2
indigoblue commentedOK, I took a little time to look at the code and can see what is happening. The call to preg_match in file_scan_directory is failing because the mask parameter is not being passed correctly. This is a PHP error and the problem is that $mask expects the regex to properly delimited with '/..../'.
When calling file_scan_directory ensure that the $mask parameter is properly formatted. Check preg_match php docs for more info.
This is not a bug so am changing the status to closed works as designed.