You can just extend Datetime with your current class.
Migrating from PHP 5.1.x to PHP 5.2.x
Inhaltsverzeichnis
- What has changed in PHP 5.2.x
- Backward Incompatible Changes
- New Error Messages
- Changes in PHP datetime support
- New Parameters
- New Functions
- New Methods
- Removed Extensions
- New Extensions
- New Classes
- New Global Constants
- New Class Constants
- New INI Configuration Directives
- Error Reporting
- Other Enhancements
Siehe auch die Migrationsleitfäden für PHP-Versionen 5.0.x, 5.1.x and 5.3.x.
Migrating from PHP 5.1.x to PHP 5.2.x
sam at silverstripe dot com
28-Jul-2007 05:22
28-Jul-2007 05:22
PHP 5.2 introduced a new class, Datetime. If you already had a class in your app called Datetime then you're in trouble.
