Re: Why is ereg being deprecated?
| From: | Christian Schneider | Date: | Mon, 12 Oct 2009 17:12:43 +0000 |
| Subject: | Re: Why is ereg being deprecated? | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-45758@lists.php.net to get a copy of this message | ||
Mark Krenz wrote:
> But I'm willing to bet that the majority of people are using ereg, not
> PCRE. I've known about PCRE in PHP for a while now, but I continue to
> use ereg because I thought it had better support in PHP and that it was
> the more "official" function. Guess I was wrong. I'm sure I'm not the
I guess that's exactly the reason why it is deprecated now: To indicate
that preg_* are the way to go.
> Again, this isn't a debate on which is better, I only want to STRONGLY
> stress that I think its a big mistake to remove it in 6.0. If you wanted
As far as I understand ereg will be moved to a PECL-extension to keep it
around for people who can't switch.
> If ereg isn't ready yet then 6.0 should be delayed until it is ready.
It probably never will be...
Don't get too worked up on this because (as far as I understand the
messages on internals) PHP 6 will not be a drop-in replacement for PHP
5.3 anyway. Hosters will have to configure it (like installing the
PECL-extension), developers will have to adapt some code.
I'm not sure if I'm right but that's how I understand the plans,
- Chris