Re: [PHP4BETA] CVS update: php4/ext/pcre

From: Date: Tue, 25 May 1999 19:48:15 +0000
Subject: Re: [PHP4BETA] CVS update: php4/ext/pcre
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-1028@lists.php.net to get a copy of this message
> I think having aliases when not for backwards compatibility is a bad thing > to do. We should decide on one set of function names and stick to them. > Personally I prefer the preg over pcre. I think it'll be more intuitive for > users. I agree completely on the aliases thing. But it sort of was for backward compatibility purposes. We have ereg() and ereg_replace() currently. The proposal was to introduce: preg_match() and preg_replace() where preg_match() would be equivalent in functionality to ereg(). This is where I suggested we might want to make an alias such that preg() did the same as preg_match() to help the folks who would expect the preg() function to exist. I guess not a pure backward compatibility alias, but close. I definitely wasn't suggesting aliasing pcre_* to preg_* -Rasmus -- PHP 4 Beta

« previous php.version4 (#1028) next »