using ereg* functions

Events happening in the community are now at Drupal community events on www.drupal.org.
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?

Categories: , ,

Comments

First one to go...

Posted by meba on May 22, 2006 at 8:49pm

High performance

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

AltStyle によって変換されたページ (->オリジナル) /