Posted by meba on May 20, 2006 at 4:55pm
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...
First patch: http://drupal.org/node/64967 (file.inc)