Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.6.0a3

Request #7139 PHP 5.1.1 Datetime Constants
Submitted: 2006-03-17 05:13 UTC
From: rwaldock at gmail dot com Assigned: arpad
Status: Closed Package: PHP_Compat (version 1.5.0)
PHP Version: Irrelevant OS: Irrelevant
Roadmaps: 1.6.0a1    
Subscription  


 [2006-03-17 05:13 UTC] rwaldock at gmail dot com (Rhett Waldock)
Description: ------------ PHP 5.1.1 offers new constants for several standard date representations that are very handy. Convenience link: http://php.net/manual/en/ref.datetime.php#datetime.constants I've retrofitted my local install of PHP_Compat with a constants/DATE.php file that emulates these new constants. Since it has been helpful to me, I'd like to offer it up for inclusion in future PHP_COMPAT packages, if you are interested. Test script: --------------- Since the code is longer than 20 lines, I uploaded a PHPS file for your review: http://clients.clearsiteinternet.com/PHP_Compat_Date/DATE.phps Expected result: ---------------- The new datetime constants will be available to versions of PHP earlier than 5.1.1

Comments

 [2006-04-17 04:36 UTC] arpad (Arpad Ray)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.