note 93055 deleted from dateinterval.createfromdatestring by danbrown
| From: | danbrown@php.net | Date: | Fri, 21 Aug 2009 13:36:37 +0000 |
| Subject: | note 93055 deleted from dateinterval.createfromdatestring by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-159747@lists.php.net to get a copy of this message | ||
Note Submitter: Bill Getas
----
In PHP 5.3.0:
DateInterval::createFromDateString()
seems to use different internals than
strtotime()
Example:
echo strtotime( '+0week sunday' );
correctly returns the timestamp of sunday this week.
but
$objDateTimeInterval = DateInterval::createFromDateString( '+0week sunday' );
hangs the process until timeout