Re: [PHP4BETA] More On PREG/EREG/PCRE
| From: | Bjorn Borud | Date: | Wed, 26 May 1999 14:31:33 +0000 |
| Subject: | Re: [PHP4BETA] More On PREG/EREG/PCRE | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-1067@lists.php.net to get a copy of this message | ||
[Boris Erdmann]
|
| ereg_match | aliasing to whatever was
| ereg_replace |--> chosen to be default at
| ereg_split | compile time
|
that is guaranteed to break code at some point and it will lead to
incredible amounts of confusion. you do NOT change the semantics of
language constructs unless you really. really have to.
I think that pcre_* is the name that should be used and I do not think
PHP should alias these functions to something else "for convenience".
aliasing is evil. if users dislike the function names they can create
wrappers in PHP.
pcre is the name of the library, so prefixing the function names with
pcre seems both appropriate and convenient.
-Bjørn
--
PHP 4 Beta