I was blocked today because I didn't realise ereg doesn't use regex pattern delimiters. I think we should add a little bit of doxygen to explain that the 6.x version of file_scan_directory used ereg, rather than preg.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

psynaptic’s picture

Status: Active » Needs review
FileSize
930 bytes

Here's the patch.

manarth’s picture

Status: Needs review » Reviewed & tested by the community

Useful patch - ereg is very different to preg_match, and in my experience devs expect PCRE rather than posix regex, so ereg is unexpected, and the docs should reflect this.

Gábor Hojtsy’s picture

Status: Reviewed & tested by the community » Needs work

Sounds a bit too informal to me. I understand it is to the point, but it clearly assumes a certain view with the "Posix not PCRE" explanation. Would be great to make it a more general explanation on what is this.

grendzy’s picture

Status: Needs work » Closed (won't fix)
Gábor Hojtsy’s picture

Status: Closed (won't fix) » Needs work

@grendzy: How would you imagine that while keeping backwards compatibility? Unless we have a plan for that, let's fix the docs instead (reopening for that).

psynaptic’s picture

Status: Needs work » Needs review
FileSize
930 bytes

Let's try again...

psynaptic’s picture

FileSize
899 bytes

Wrong file in last post. Here's the correct one.

Status: Needs review » Closed (outdated)

Automatically closed because Drupal 6 is no longer supported. If the issue verifiably applies to later versions, please reopen with details and update the version.