From: Scott MacVicar Date: Fri, 14 Dec 2007 14:49:15 +0000 (+0000) Subject: Change createFromTimestamp to setTimestamp X-Git-Tag: RELEASE_1_3_1~505 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d4bbbc0eabb6e871a4af527b1ca6675be9385533;p=php Change createFromTimestamp to setTimestamp --- diff --git a/NEWS b/NEWS index 0d51ed9f6d..2770bfd459 100644 --- a/NEWS +++ b/NEWS @@ -23,7 +23,7 @@ PHP NEWS (Etienne Kneuss) - Added "compact" handler for Zend MM storage. (Dmitry) - Added "+" and "*" specifiers to zend_parse_parameters(). (Andrei) -- Added DateTime::createFromTimestamp() to set a unix timestamp without +- Added DateTime::setTimestamp() to set a unix timestamp without invoking the date parser. (Scott) - Upgraded PCRE to version 7.4 (Nuno) diff --git a/ext/date/php_date.c b/ext/date/php_date.c index 5b7d582c68..85f359fa1b 100644 --- a/ext/date/php_date.c +++ b/ext/date/php_date.c @@ -209,7 +209,7 @@ const zend_function_entry date_funcs_date[] = { PHP_ME_MAPPING(setTime, date_time_set, NULL, 0) PHP_ME_MAPPING(setDate, date_date_set, NULL, 0) PHP_ME_MAPPING(setISODate, date_isodate_set, NULL, 0) - PHP_ME_MAPPING(createFromTimestamp, date_timestamp_set, NULL, 0) + PHP_ME_MAPPING(setTimestamp, date_timestamp_set, NULL, 0) {NULL, NULL, NULL} };