using ereg* functions

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
meba's picture

I just noticed 35 occurences of ereg* functions in Drupal code (most of them in modules, 4.6.6).
This short story is just a memo to advise all developers NOT to use ereg* functions and use preg_match instead, which is significantly faster. I would also like to do same stats in Drupal 4.7 and collect some volunteers to provide patches replacing ereg with preg_match.

bash-3.00$ grep -Ri "ereg" * | wc -l
35
bash-3.00$

Any volunteers?

Comments

First one to go...

meba's picture

First patch: http://drupal.org/node/64967 (file.inc)