Re: Date class conflicting withPHP 5.1
| From: | Pierre | Date: | Thu, 10 Aug 2006 09:30:19 +0000 |
| Subject: | Re: Date class conflicting withPHP 5.1 | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-24874@lists.php.net to get a copy of this message | ||
Hello,
On 8/10/06, Phil Gyford <gyford@gmail.com> wrote:
I've just moved to a new server that has PHP 5.1 on it. Unfortunately some of my pages that use the PEAR Date class now give me "Fatal error: Cannot redeclare class date in /usr/local/share/pear/Date.php on line 88".If this server has 5.1.0, I strongly recommend to update to 5.1.4. There were many security problems fixed in 5.1.1-4.
What's the best way around this, so I can continue using the PEAR Date class?This class has been disabled in 5.1.1. The conflict (not only with pear::date) was one of the reason of the 5.1.1 release. It will be enabled again in 5.2.0 but with a different name, DateTime. --Pierre