Closed (fixed)
Project:
Documentation
Component:
New documentation
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
15 Jun 2008 at 16:05 UTC
Updated:
18 Jan 2009 at 18:50 UTC
PHP offers two different types of regex matching functions, preg and ereg. ereg is substantially slower and is also slated for removal in PHP6. It would be wise to standardize on preg_* functions as they're faster, makes reading the code easier, and aren't deprecated.
There's already an issue seeking to update the ereg_* calls to preg_* calls and it should be worked on if this becomes a coding standard:
#64967: Replace ereg with preg
Comments
Comment #1
heather commentedChanged the component to reflect the new component categorization. See http://drupal.org/node/301443
Comment #2
dries commented[#64967: Replace ereg with preg] was committed to CVS HEAD. We should probably add a note to the upgrade instructions.
Comment #3
dawehnerthis not was written here: http://drupal.org/node/224333#preg_match