Re: New Module - CDate
| From: | Pierre | Date: | Wed, 07 Jun 2006 03:07:48 +0000 |
| Subject: | Re: New Module - CDate | ||
| References: | 1 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-3860@lists.php.net to get a copy of this message | ||
Hello,
On 6/7/06, Tim Ansell <mithro@mithis.com> wrote:
Hello, I am in the process of writing a PECL module which is designed to be function compatible with the PEAR Date module. I hope to make this module a drop in replacement so anyone who was using the PEAR Date module can just use the PECL Date module.I don't think making a drop in replacement of PEAR::Date is a good idea, acutally it is a bad idea. It may make sense, for BC reasons, to create a PHP package with similar APIs as PEAR::Date for php5-1+, but anything more than than is a mistake. Why? The PEAR::Date API suffers from design flaws, it is not easy to extend or enhance. So I'm basically opposed to have it in pecl, or not associated with PEAR::Date as it is a package I maintain and I already announced many times what would be its future. I'm also in the process since quiet a long time. The Developement has been somehow suspended for some times due to some external reasons (one of them being the ext/date in php itself...). The very first version has already been commited. More about this topic later this summer. But the idea is to create a complete new package both in pear and in pecl, pear::Date2 for pear (major version) and only for php5.1+. We may add a compatibility layer to ease the translation, but this is a very low priority. If you like to do it, you are welcome :-) Regards, --Pierre